lens Commands

Manage Analytics lenses.

Lists history records for Analytics lenses in the specified target org.

sf analytics lens history list

[--json]

[--api-version APIVERSION]

-o TARGETORG

-i LENSID

--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 | --lensid LENSID

Required

The ID of the lens to show history records.

Type: id

Revert to a specified history record.

sf analytics lens history revert

[--json]

[--api-version APIVERSION]

-o TARGETORG

-i LENSID

-y HISTORYID

[-l LABEL]

--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 | --lensid LENSID

Required

The ID of the dashboard to show history records.

Type: id

-y | --historyid HISTORYID

Required

The ID of the dashboard history records.

Type: id

-l | --label LABEL

Optional

Label for new reverted history record.

Type: string

Lists Analytics lenses in the specified target org.

sf analytics lens list

[--json]

[--api-version APIVERSION]

-o TARGETORG

  • --json

    • Optional
    • Format output as JSON.
    • Type: boolean
  • --loglevel LOGLEVEL

  • --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