Dextora Documentation
Dextora is an open-source Python CLI toolkit designed to detect and diagnose project setup, environment configuration, dependency mismatches, and common version control pitfalls.
Installation & Prerequisites
Prerequisites: Python 3.11 or newer is required to execute the CLI (declared as requires-python = ">=3.11" in pyproject.toml).
pip install dextoraThe `doctor` Command
The primary diagnostic command. Analyzes project manifests, virtual environments, dependencies, .env templates, and git status.
dextora doctor [path]Scans target directory. If path is omitted, defaults to the current working directory.
CI & Automation Flags
Emits unadorned, machine-readable JSON representation of all scan results. Includes error counts, findings list, evidence snippets, and remediation commands.
dextora doctor --jsonBy default, Dextora exits with code 1 only on ERROR. With --strict, any warning will also exit with code 1.
dextora doctor --strictThe `init` Command
Creates a minimal project-level .dextora.toml configuration. Refuses to overwrite an existing configuration without the --force flag.
dextora init [path] [--force]Configuration Spec (.dextora.toml)
When present in the project root, Dextora loads rule configurations, severity thresholds, and diagnostic overrides:
Execution Safety Model
Doctor scans never mutate, write to, or delete files in target repositories.
Secret values from .env files are never parsed into memory, logged, or exposed in output.