analytics query
Execute an Analytics query.
sf analytics query[
--json][
--apiversionAPIVERSION]-oTARGETORG[
-fQUERYFILE][
-qQUERY][
--nomapnames][
--sql][
-tTIMEZONE][
--connectorCONNECTOR][
--limitLIMIT][
-rRESULTFORMAT]
--jsonOptional
Format output as JSON.
Type: boolean
--api-versionAPIVERSIONOptional
Override the API version used for API requests made by this command.
Type: string
-oTARGETORGRequired
Username or alias of the target org. Not required if the target-org configuration variable is set.
Type: string
-f|--queryfileQUERYFILEOptional
Path to the file containing the query to execute.
Type: filepath
-q|--queryQUERYOptional
The query to execute.
Type: string
--nomapnamesOptional
Skip mapping dataset names in the SAQL query to ids.
Type: boolean
--sqlOptional
Execute the query as SQL.
Type: boolean
-t|--timezoneTIMEZONEOptional
The timezone for the query.
Type: string
--connectorCONNECTOROptional
Execute the SQL query against this external data connector id or name.
Type: string
--limitLIMITOptional
The maximum number of rows to include.
Type: number
-r|--resultformatRESULTFORMATOptional
Result format emitted to stdout.
Type: enum
Permissible values are: human, csv, json
Default value: human