lens Commands

Manage Analytics lenses.

analytics lens history list 

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

Examples for analytics lens history list 

1sf analytics lens history list --lensid <lensid>

Command Syntax 

sf analytics lens history list

[--json]

[--api-version APIVERSION]

-o TARGETORG

-i LENSID

Parameters 

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

analytics lens history revert 

Revert to a specified history record.

Examples for analytics lens history revert 

1sf analytics dashboard history revert -i <dashboardid> -y <historyid> -l <historyLabel>

Command Syntax 

sf analytics lens history revert

[--json]

[--api-version APIVERSION]

-o TARGETORG

-i LENSID

-y HISTORYID

[-l LABEL]

Parameters 

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

analytics lens list 

Lists Analytics lenses in the specified target org.

Examples for analytics lens list 

1sf analytics lens list

Command Syntax 

sf analytics lens list

[--json]

[--api-version APIVERSION]

-o TARGETORG

Parameters 

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