Skip to Content

Settings

The extension contributes three settings under the sfdt.* namespace. All are workspace-scoped, so different projects can target different orgs and CLI binaries.

SettingTypeDefaultDescription
sfdt.cliPathstring"sfdt"Path to the sfdt CLI binary. Defaults to sfdt on your PATH; set an absolute path if the CLI isn’t found.
sfdt.defaultOrgstring""Org alias passed to commands via --org. Empty uses the project’s configured defaultOrg.
sfdt.dashboardPortnumber7654Port the sfdt ui dashboard server listens on.

Example settings.json

{ "sfdt.cliPath": "sfdt", "sfdt.defaultOrg": "dev-sandbox", "sfdt.dashboardPort": 7654 }

If sfdt isn’t on your PATH (for example when using a Node version manager), point sfdt.cliPath at the resolved binary:

{ "sfdt.cliPath": "/Users/you/.nvm/versions/node/v22.18.0/bin/sfdt" }

Setting the org interactively

You can set sfdt.defaultOrg without editing JSON: run SFDT: Set Default Org (sfdt.setOrg) and enter an alias. Clear it (set it back to empty) to fall back to the project’s configured default org.

Last updated on