Command Reference
sfdt ships 35 commands. They are grouped here by area. Every command accepts --help, and
most operational commands accept --json for scripting and --dry-run to preview.
Core & DeploymentMetadata & Source ControlTesting & QualityAI & IntelligenceOrg Health & OperationsConfig & UtilitiesPlatform & Bridge
Core & Deployment
| Command | Description |
|---|---|
sfdt init | Initialize .sfdt/ config (interactive) |
sfdt deploy | Deploy metadata to a Salesforce org |
sfdt preflight | Run pre-deployment validation checks |
sfdt rollback | Roll back a deployment (with pre-rollback backup) |
sfdt smoke | Post-deploy smoke tests |
sfdt release | Generate a release manifest + optional AI release notes |
sfdt test | Run Apex tests with the enhanced runner |
sfdt pull | Pull metadata from the configured org (incremental) |
Metadata & Source Control
| Command | Description |
|---|---|
sfdt manifest | Build package.xml from git diffs |
sfdt drift | Detect metadata drift between local source and an org |
sfdt compare | Compare metadata between two orgs or local vs org |
sfdt scan | Fetch a full metadata inventory from an org |
Testing & Quality
| Command | Description |
|---|---|
sfdt test | Run Apex tests; optional AI failure analysis |
sfdt quality | Code & test quality analysis; optional stubs / fix plan |
sfdt changelog | Manage changelog files (generate, release, check) |
AI & Intelligence
| Command | Description |
|---|---|
sfdt explain | Analyze a deployment error log (AI + heuristics) |
sfdt review | AI code review of current branch changes |
sfdt pr-description | Generate a PR description or Slack message |
sfdt ai prompt | Run an ad-hoc prompt through the configured provider |
Org Health & Operations
| Command | Description |
|---|---|
sfdt audit | Diagnose org health |
sfdt monitor | Monitor limits, errors, health; metadata backup |
sfdt docs | Generate docs and ER diagrams |
sfdt data | Manage data sets via sf data tree |
sfdt scratch | Create/delete/list scratch orgs and pools |
sfdt notify | Send Slack deployment notifications |
Config & Utilities
| Command | Description |
|---|---|
sfdt config | Read/write config values (dot notation) |
sfdt completion | Print a shell completion script |
sfdt version | Print the current version |
sfdt update | Update sfdt from npm |
Platform & Bridge
| Command | Description |
|---|---|
sfdt ui | Launch the local web dashboard |
sfdt extension | Manage the Chrome native messaging host |
sfdt feature-flags | Manage the extension kill-switch |
sfdt doctor | Diagnose the extension stack |
sfdt mcp | Start / clean up the MCP server |
sfdt plugin | Scaffold a new CLI plugin |
sfdt skills | Export agent skills to IDE configs |
Last updated on