template Commands

Create and manage Analytics templates.

analytics template create 

Creates Analytics templates.

Examples for analytics template create 

1sf analytics template create -f folderid
1sf analytics template create -f folderid -r "recipeid1, recipeid2"

Command Syntax 

sf analytics template create

[--json]

[--api-version APIVERSION]

-o TARGETORG

-f FOLDERID

[-r RECIPEIDS]

[-l LABEL]

[-d DATATRANSFORMIDS]

[--description DESCRIPTION]

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

-f | --folderid FOLDERID

Required

The ID of the folder that contains the template data.

Type: id

-r | --recipeids RECIPEIDS

Optional

A comma-separated list of recipe IDs to include with the template.

Type: array

-l | --label LABEL

Optional

The label for the Analytics template (defaults to the app label).

Type: string

-d | --datatransformids DATATRANSFORMIDS

Optional

A comma-separated list of data transform IDs to include with the template.

Type: array

--description DESCRIPTION

Optional

The description for the Analytics template (defaults to the app description).

Type: string

analytics template delete 

Deletes Analytics templates.

Examples for analytics template delete 

1sf analytics template delete -t templateid

Command Syntax 

sf analytics template delete

[--json]

[--api-version APIVERSION]

-o TARGETORG

-t TEMPLATEID

[--forcedelete]

[--decouple]

[-p]

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

-t | --templateid TEMPLATEID

Required

The ID of the Analytics template.

Type: id

--forcedelete FORCEDELETE

Optional

Force deletes the Analytics template and all linked Analytics apps.

Type: boolean

--decouple DECOUPLE

Optional

Decouple all linked Analytics apps.

Type: boolean

-p | --noprompt NOPROMPT

Optional

Do not prompt to confirm force delete.

Type: boolean

analytics template display 

Displays an Analytics template’s details.

Examples for analytics template display 

1sf analytics template display -t templateid
1sf analytics template display -n templatename

Command Syntax 

sf analytics template display

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-t TEMPLATEID]

[-n TEMPLATENAME]

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

-t | --templateid TEMPLATEID

Optional

The ID of the Analytics template.

Type: id

-n | --templatename TEMPLATENAME

Optional

The name of the Analytics template.

Type: string

analytics template lint 

Performs a lint check on an Analytics template. Requires either the ID or API name of template.

Examples for analytics template lint 

1sf analytics template lint -t templateId
1sf analytics template lint -n templateApiName

Command Syntax 

sf analytics template lint

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-n TEMPLATENAME]

[-t TEMPLATEID]

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

-n | --templatename TEMPLATENAME

Optional

API name of the template to submit for lint check.

Type: string

-t | --templateid TEMPLATEID

Optional

ID of the template to submit for lint check.

Type: string

analytics template list 

Lists Analytics templates in the specified folder or target org.

Examples for analytics template list 

1sf analytics template list
1sf analytics template list --includembeddedtemplates
1sf analytics template list --includesalesforcetemplates

Command Syntax 

sf analytics template list

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-a]

[-e]

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

-a | --includesalesforcetemplates INCLUDESALESFORCETEMPLATES

Optional

Include Salesforce templates.

Type: boolean

-e | --includembeddedtemplates INCLUDEEMBEDDEDTEMPLATES

Optional

Include EmbeddedApp templates.

Type: boolean

analytics template update 

Updates Analytics templates.

Examples for analytics template update 

1sf analytics template update -t templateid -f folderid
1sf analytics template update -t templateid -f folderid -r "recipeid1, recipeid2"

Command Syntax 

sf analytics template update

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-t TEMPLATEID]

[-n TEMPLATENAME]

[-f FOLDERID]

[-r RECIPEIDS]

[-d DATATRANSFORMIDS]

[-v ASSETVERSION]

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

-t | --templateid TEMPLATEID

Optional

The ID of the Analytics template.

Type: id

-n | --templatename TEMPLATENAME

Optional

The name of the Analytics template.

Type: string

-f | --folderid FOLDERID

Optional

The ID of the folder that contains the template data.

Type: id

-r | --recipeids RECIPEIDS

Optional

A comma-separated list of recipe IDs to include with the template.

Type: array

-d | --datatransformids DATATRANSFORMIDS

Optional

A comma-separated list of data transform IDs to include with the template.

Type: array

-v | --assetversion ASSETVERSION

Optional

Version number for upgrading the template.

Type: integer

analytics template validate 

Performs an org readiness check for an Analytics template. Requires either the ID or API name of template.

Examples for analytics template validate 

1sf analytics template validate -t templateId
1sf analytics template validate -n templateApiName
1sf analytics template validate -n templateApiName -f templateValues.json

Command Syntax 

sf analytics template validate

[--json]

[--api-version APIVERSION]

-o TARGETORG

[-n TEMPLATENAME]

[-t TEMPLATEID]

[-f VALUESFILE]

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

-n | --templatename TEMPLATENAME

Optional

API name of the template to run an org readiness check on.

Type: string

-t | --templateid TEMPLATEID

Optional

ID of the template to run an org readiness check on.

Type: string

-f | --valuesfile VALUESFILE

Optional

The file with values to override the template defaults with.

Type: filepath