All apps/Salesforce CLI

Salesforce CLI

sfdx

Salesforce CLI simplifies development and build automation when working with your Salesforce org.

Runs as sfdx, sf|macOS, Linux, Windows|developer.salesforce.com

Command form

ai-draft · 3 tasks · 13 fields

Run a SOQL query or deploy source with the legacy sfdx force commands. Other sfdx commands, auth flows and the newer sf command are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui sfdx

sfdx force:data:soql:query

Run a SOQL query

Execute a SOQL query against an org and print the result.

Run a SOQL queryExample values, fixed in this page — nothing here reaches a terminal
Basic
SOQL query*
string
Target org
string
Result format
3 choicesenum
TasksEach one presets the form for one job
Run a query
querytarget_orgresult_format
ParametersOnly these flags are editable in the form
SOQL query
SOQL query to execute.
string
--query-q
Target org
Username or alias for the target org; overrides the default.
string
--targetusername-u
Use Tooling API
Execute the query with the Tooling API.
boolean
--usetoolingapi-t
Result format
Result format emitted to stdout.
enum
--resultformat-rhumancsvjson
JSON output
Format output as json.
boolean
--json

sfdx force:source:deploy

Deploy source

Deploy source-format metadata to an org. Choose source path, metadata names or a manifest.

Deploy sourceExample values, fixed in this page — nothing here reaches a terminal
Basic
Target org
string
Source paths*
string
Test level
string
Wait (minutes)
integer
TasksEach one presets the form for one job
Validate a source path
sourcepathtarget_orgtestlevelwait
Deploy a source path
sourcepathtarget_orgtestlevelwait
ParametersOnly these flags are editable in the form
Target org
Username or alias for the target org; overrides the default.
string
--targetusername-u
Source paths
Comma-separated list of source file paths to deploy.
string
--sourcepath-p
Metadata components
Comma-separated list of metadata component names.
string
--metadata-m
Manifest (package.xml)
File path for manifest of components to deploy.
path
--manifest-x
Validate only
Validate deploy but do not save to the org.
boolean
--checkonly-c
Test level
Deployment testing level.
string
--testlevel-lNoTestRunRunSpecifiedTestsRunLocalTestsRunAllTestsInOrg
Wait (minutes)
Wait time for command to finish in minutes.
integer
--wait-w
Verbose
Verbose output of deploy result.
boolean
--verbose
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed sfdx against its version. A form that does not match your version is not offered.