sfdx force:data:soql:query
Execute a SOQL query
Options
Name | Description |
---|---|
--json | Format output as json |
--loglevel <loglevel> | Logging level for this command invocation |
-u, --targetusername <targetusername> | Username or alias for the target org; overrides default target org |
--apiversion <apiversion> | Override the api version used for api requests made by this command |
-q, --query <query> | SOQL query to execute |
-t, --usetoolingapi | Execute query with Tooling API |
-r, --resultformat <resultformat> | Result format emitted to stdout; --json flag overrides this parameter |
--perflog | Get API performance data |