dataset Commands

Manage Analytics datasets.

Displays an Analytics dataset’s details.

sf analytics dataset display

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-i DATASETID]

[-n DATASETNAME]

--json

Optional

Format output as JSON.

Type: boolean

--api-version APIVERSION

Optional

Override the API version used for API requests made by this command.

Type: string

-o TARGETORG

Required

Username or alias of the target org. Not required if the target-org configuration variable is set.

Type: string

-i | --datasetid DATASETID

Optional

Dataset ID.

Type: id

-n | --datasetname DATASETNAME

Optional

Dataset api name.

Type: string

Lists Analytics datasets in the specified target org.

sf analytics dataset list

[--json]

[--api-version APIVERSION]

-o TARGETORG

--json

Optional

Format output as JSON.

Type: boolean

--api-version APIVERSION

Optional

Override the API version used for API requests made by this command.

Type: string

-o TARGETORG

Required

Username or alias of the target org. Not required if the target-org configuration variable is set.

Type: string

Fetch the rows of an Analytics dataset.

sf analytics dataset rows fetch

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-i DATASETID]

[-n DATASETNAME]

[--limit LIMIT]

[-r RESULTFORMAT]

--json

Optional

Format output as JSON.

Type: boolean

--loglevel LOGLEVEL

Optional

The logging level for this command invocation. Logs are stored in $HOME/.sfdx/sfdx.log.

Type: enum

Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL

Default value: warn

-u | --targetusername TARGETUSERNAME

Optional

A username or alias for the target org. Overrides the default target org.

Type: string

--apiversion APIVERSION

Optional

Override the API version used for API requests made by this command.

Type: string

-o TARGETORG

Required

Username or alias of the target org. Not required if the target-org configuration variable is set.

Type: string

-i | --datasetid DATASETID

Optional

Dataset ID.

Type: id

-n | --datasetname DATASETNAME

Optional

Dataset api name.

Type: string

--limit LIMIT

Optional

The maximum number of rows to include.

Type: number

-r | --resultformat RESULTFORMAT

Optional

Result format emitted to stdout.

Type: enum

Valid values are: human, csv, or json

Default value: human