Generate a FlexiPage, also known as a Lightning page.
This feature is a Beta Service. Customers may opt to try such Beta Service in its sole discretion. Any use of the Beta Service is subject to the applicable Beta Services Terms provided at Agreements and Terms.
Note
Description for template generate flexipage
FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen made up of regions containing Lightning components.
You can use this command to generate these types of FlexiPages; specify the type with the –template flag:
AppPage: A Lightning page used as the home page for a custom app or a standalone application page.
HomePage: A Lightning page used to override the Home page in Lightning Experience.
RecordPage: A Lightning page used to override an object record page in Lightning Experience. Requires that you specify the object name with the --sobject flag.
Flags
Flag Name (Long)
Flag Name (Short)
Description
‑‑api‑version
N/A
Type: Value
Override the api version used for api requests made by this command
‑‑description
N/A
Type: Value
Description for the FlexiPage, which provides context about its purpose.
‑‑detail‑fields
N/A
Type: Value
Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.
‑‑flags‑dir
N/A
Type: Value
Import flag values from a directory.
‑‑json
N/A
Type: Boolean
Format output as json.
‑‑label
N/A
Type: Value
Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.
‑‑name
‑n
Type: Value Required
Name of the FlexiPage.
The name can contain only alphanumeric characters, must start with a letter, and can’t end with an underscore or contain two consecutive underscores.
‑‑output‑dir
‑d
Type: Value Default value:.
Directory for saving the created files.
The location can be an absolute path or relative to the current working directory. The default is the current directory.
‑‑primary‑field
N/A
Type: Value
Primary field for the dynamic highlights header; typically ‘Name’. Used only with RecordPage.
‑‑secondary‑fields
N/A
Type: Value
Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.
‑‑sobject
‑s
Type: Value
API name of the Salesforce object; required when creating a RecordPage.
For RecordPage FlexiPages, you must specify the associated object API name, such as ‘Account’, ‘Opportunity’, or ‘Custom_Object__c’. This sets the sobjectType field in the FlexiPage metadata.
‑‑template
‑t
Type: Value Required Valid Values:RecordPage, AppPage, HomePage
Template type for the FlexiPage.
Examples for template generate flexipage
Generate a RecordPage FlexiPage for the Account object in the current directory: