Skip to Content
CLICommand ReferenceOverview

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 & Deployment

CommandDescription
sfdt initInitialize .sfdt/ config (interactive)
sfdt deployDeploy metadata to a Salesforce org
sfdt preflightRun pre-deployment validation checks
sfdt rollbackRoll back a deployment (with pre-rollback backup)
sfdt smokePost-deploy smoke tests
sfdt releaseGenerate a release manifest + optional AI release notes
sfdt testRun Apex tests with the enhanced runner
sfdt pullPull metadata from the configured org (incremental)

Metadata & Source Control

CommandDescription
sfdt manifestBuild package.xml from git diffs
sfdt driftDetect metadata drift between local source and an org
sfdt compareCompare metadata between two orgs or local vs org
sfdt scanFetch a full metadata inventory from an org

Testing & Quality

CommandDescription
sfdt testRun Apex tests; optional AI failure analysis
sfdt qualityCode & test quality analysis; optional stubs / fix plan
sfdt changelogManage changelog files (generate, release, check)

AI & Intelligence

CommandDescription
sfdt explainAnalyze a deployment error log (AI + heuristics)
sfdt reviewAI code review of current branch changes
sfdt pr-descriptionGenerate a PR description or Slack message
sfdt ai promptRun an ad-hoc prompt through the configured provider

Org Health & Operations

CommandDescription
sfdt auditDiagnose org health
sfdt monitorMonitor limits, errors, health; metadata backup
sfdt docsGenerate docs and ER diagrams
sfdt dataManage data sets via sf data tree
sfdt scratchCreate/delete/list scratch orgs and pools
sfdt notifySend Slack deployment notifications

Config & Utilities

CommandDescription
sfdt configRead/write config values (dot notation)
sfdt completionPrint a shell completion script
sfdt versionPrint the current version
sfdt updateUpdate sfdt from npm

Platform & Bridge

CommandDescription
sfdt uiLaunch the local web dashboard
sfdt extensionManage the Chrome native messaging host
sfdt feature-flagsManage the extension kill-switch
sfdt doctorDiagnose the extension stack
sfdt mcpStart / clean up the MCP server
sfdt pluginScaffold a new CLI plugin
sfdt skillsExport agent skills to IDE configs
Last updated on