generate Commands

Generate simple Analytics assets.

analytics generate template 

Generate a simple app template.

Examples for analytics generate template 

Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:

1sf analytics generate template --name myTemplate --output-dir force-app/main/default/waveTemplates

Command Syntax 

sf analytics generate template

[--json]

[--flags-dir]

[--api-version APIVERSION]

-o TARGETORG

[-d OUTPUTDIR]

[-n NAME]

Parameters 

--json

Optional

Format output as JSON.

Type: boolean

--flags-dir

Optional

Import flag values from a directory.

Type: filepath

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

-d | --output-dir OUTPUTDIR

Optional

The location can be an absolute path or relative to the current working directory. The default is the current directory

Type: filepath

-n | --name NAME

Required

The name to give to the generated Analytics template.

Type: string