Skip to Content

Commands

Every command is available from the Command Palette (Cmd/Ctrl+Shift+P). Each one spawns the sfdt CLI with SFDT_NON_INTERACTIVE=true, streams output to the SFDT output channel, and refreshes the Org Health sidebar when it finishes.

Command reference

Command idPalette titleNotes
sfdt.refreshSFDT: Refresh Org HealthRe-reads the audit/monitor snapshots and updates the tree + status bar
sfdt.setOrgSFDT: Set Default OrgPrompts for an org alias and saves it to sfdt.defaultOrg (workspace)
sfdt.openDashboardSFDT: Open DashboardSpawns sfdt ui and embeds it in an editor tab
sfdt.auditSFDT: Run Org AuditRuns sfdt audit all (read-only)
sfdt.monitorSFDT: Run Org MonitorRuns sfdt monitor all (read-only)
sfdt.backupSFDT: Backup Org MetadataRuns sfdt monitor backup
sfdt.preflightSFDT: Run Preflight ChecksRuns sfdt preflight
sfdt.deploySFDT: DeployDestructive — requires a modal confirmation before running
sfdt.docsSFDT: Generate DocumentationRuns sfdt docs generate
sfdt.runCommandSFDT: Run Command…Quick-pick of the full command catalog, including drift, scan, and quality

SFDT: Deploy can modify your org, so it always prompts with a modal confirmation first. Read-only commands (audit, monitor, preflight, drift, scan, quality) run without confirmation.

Org targeting

When sfdt.defaultOrg is set, the extension appends --org <alias> to each command. When it’s empty, the CLI falls back to the project’s configured default org (from .sfdt/config.json or sfdx-project.json).

How output is rendered

The extension does not parse command stdout to build the sidebar. Instead, after any command completes, it re-reads the JSON snapshots the CLI writes — logs/audit-latest.json and logs/monitor-latest.json — and rebuilds the tree from those. Progress is shown as a VS Code notification, and full output streams to the SFDT output channel.

Last updated on