visualforce Commands
force:visualforce:component:create
Help for force:visualforce:component: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:
1sfdx force:visualforce:component:create -n mycomponent -l mylabel1sfdx force:visualforce:component:create -n mycomponent -l mylabel -d componentsCommand Syntax
- sfdx force:visualforce:component:create
- [--json]
- [--loglevel LOGLEVEL]
- [-t TEMPLATE]
- [-d OUTPUTDIR]
- -n COMPONENTNAME
- [--apiversion APIVERSION]
- -l LABEL
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -t | --template TEMPLATE
- Optional
-
The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.
- Type: string
- Permissible values are: DefaultVFComponent
- Default value: DefaultVFComponent
- -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: .
- -n | --componentname COMPONENTNAME
- Required
-
The Visualforce component name. The name can be up to 40 characters and must start with a letter.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -l | --label LABEL
- Required
-
The label saved in the metadata for the Visualforce component.
- Type: string
force:visualforce:page:create
Help for force:visualforce:page: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:
1sfdx force:visualforce:page:create -n mypage -l mylabel1sfdx force:visualforce:page:create -n mypage -l mylabel -d pagesCommand Syntax
- sfdx force:visualforce:page:create
- [--json]
- [--loglevel LOGLEVEL]
- [-t TEMPLATE]
- [-d OUTPUTDIR]
- -n PAGENAME
- [--apiversion APIVERSION]
- -l LABEL
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -t | --template TEMPLATE
- Optional
-
The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.
- Type: string
- Permissible values are: DefaultVFPage
- Default value: DefaultVFPage
- -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: .
- -n | --pagename PAGENAME
- Required
-
The Visualforce page name. The name can be up to 40 characters and must start with a letter.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -l | --label LABEL
- Required
-
The label saved in the metadata for the Visualforce page.
- Type: string