analytics Commands

Work with analytics assets.

force:analytics:template:create

Creates a simple Analytics template in the specified directory. If you don’t explicitly set the API version, it defaults to the current API version. The associated metadata files are created.

Command Syntax

sfdx force:analytics:template:create
[--json]
[--loglevel LOGLEVEL]
[-d OUTPUTDIR]
[--apiversion APIVERSION]
-n TEMPLATENAME

Parameters

--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
-d | --outputdir OUTPUTDIR
Optional

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

Type: string
Default value: .
--apiversion APIVERSION
Optional

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

Type: string
-n | --templatename TEMPLATENAME
Required

The name of the Analytics template.

Type: string

Help for force:analytics:template:create

If not supplied, the apiversion, template, and outputdir use default values.

The outputdir can be an absolute path or relative to the current working directory.

Examples:

1$ sfdx force:analytics:template:create -n myTemplate -d outputdir