sfdx force:data:soql:query

Execute a SOQL query


--jsonFormat 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, --usetoolingapiExecute query with Tooling API
-r, --resultformat <resultformat>Result format emitted to stdout; --json flag overrides this parameter
--perflogGet API performance data