@@ -122,6 +122,7 @@ Congrats, you are debugging!
122122- [ ` sf template generate apex class ` ] ( #sf-template-generate-apex-class )
123123- [ ` sf template generate apex trigger ` ] ( #sf-template-generate-apex-trigger )
124124- [ ` sf template generate digital-experience site ` ] ( #sf-template-generate-digital-experience-site )
125+ - [ ` sf template generate flexipage ` ] ( #sf-template-generate-flexipage )
125126- [ ` sf template generate lightning app ` ] ( #sf-template-generate-lightning-app )
126127- [ ` sf template generate lightning component ` ] ( #sf-template-generate-lightning-component )
127128- [ ` sf template generate lightning event ` ] ( #sf-template-generate-lightning-event )
@@ -174,7 +175,7 @@ FLAG DESCRIPTIONS
174175 directory.
175176```
176177
177- _ See code: [ src/commands/template/generate/analytics/template.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/analytics/template.ts ) _
178+ _ See code: [ src/commands/template/generate/analytics/template.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/analytics/template.ts ) _
178179
179180## ` sf template generate apex class `
180181
@@ -234,7 +235,7 @@ FLAG DESCRIPTIONS
234235 Supplied parameter values or default values are filled into a copy of the template.
235236```
236237
237- _ See code: [ src/commands/template/generate/apex/class.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/apex/class.ts ) _
238+ _ See code: [ src/commands/template/generate/apex/class.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/apex/class.ts ) _
238239
239240## ` sf template generate apex trigger `
240241
@@ -304,7 +305,7 @@ FLAG DESCRIPTIONS
304305 Supplied parameter values or default values are filled into a copy of the template.
305306```
306307
307- _ See code: [ src/commands/template/generate/apex/trigger.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/apex/trigger.ts ) _
308+ _ See code: [ src/commands/template/generate/apex/trigger.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/apex/trigger.ts ) _
308309
309310## ` sf template generate digital-experience site `
310311
@@ -354,7 +355,89 @@ FLAG DESCRIPTIONS
354355 project, defaults to the current directory.
355356```
356357
357- _ See code: [ src/commands/template/generate/digital-experience/site.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2/src/commands/template/generate/digital-experience/site.ts ) _
358+ _ See code: [ src/commands/template/generate/digital-experience/site.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0/src/commands/template/generate/digital-experience/site.ts ) _
359+
360+ ## ` sf template generate flexipage `
361+
362+ Generate a FlexiPage, also known as a Lightning page.
363+
364+ ```
365+ USAGE
366+ $ sf template generate flexipage -n <value> -t RecordPage|AppPage|HomePage [--json] [--flags-dir <value>] [-d <value>]
367+ [--api-version <value>] [--label <value>] [--description <value>] [-s <value>] [--primary-field <value>]
368+ [--secondary-fields <value>...] [--detail-fields <value>...]
369+
370+ FLAGS
371+ -d, --output-dir=<value> [default: .] Directory for saving the created files.
372+ -n, --name=<value> (required) Name of the FlexiPage.
373+ -s, --sobject=<value> API name of the Salesforce object; required when creating a RecordPage.
374+ -t, --template=<option> (required) Template type for the FlexiPage.
375+ <options: RecordPage|AppPage|HomePage>
376+ --api-version=<value> Override the api version used for api requests made by this command
377+ --description=<value> Description for the FlexiPage, which provides context about its purpose.
378+ --detail-fields=<value>... Fields to display in the Details tab. Specify multiple fields separated by commas.
379+ Fields are split into two columns. Used only with RecordPage.
380+ --label=<value> Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.
381+ --primary-field=<value> Primary field for the dynamic highlights header; typically 'Name'. Used only with
382+ RecordPage.
383+ --secondary-fields=<value>... Secondary fields shown in the dynamic highlights header. Specify multiple fields
384+ separated by commas. Maximum of 11 fields. Used only with RecordPage.
385+
386+ GLOBAL FLAGS
387+ --flags-dir=<value> Import flag values from a directory.
388+ --json Format output as json.
389+
390+ DESCRIPTION
391+ Generate a FlexiPage, also known as a Lightning page.
392+
393+ FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen
394+ made up of regions containing Lightning components.
395+
396+ You can use this command to generate these types of FlexiPages; specify the type with the --template flag:
397+
398+ - AppPage: A Lightning page used as the home page for a custom app or a standalone application page.
399+ - HomePage: A Lightning page used to override the Home page in Lightning Experience.
400+ - RecordPage: A Lightning page used to override an object record page in Lightning Experience. Requires that you
401+ specify the object name with the --sobject flag.
402+
403+ EXAMPLES
404+ Generate a RecordPage FlexiPage for the Account object in the current directory:
405+
406+ $ sf template generate flexipage --name Account_Record_Page --template RecordPage --sobject Account
407+
408+ Generate an AppPage FlexiPage in the "force-app/main/default/flexipages" directory:
409+
410+ $ sf template generate flexipage --name Sales_Dashboard --template AppPage --output-dir \
411+ force-app/main/default/flexipages
412+
413+ Generate a HomePage FlexiPage with a custom label:
414+
415+ $ sf template generate flexipage --name Custom_Home --template HomePage --label "Sales Home Page"
416+
417+ Generate a RecordPage with dynamic highlights and detail fields:
418+
419+ $ sf template generate flexipage --name Property_Page --template RecordPage --sobject Rental_Property__c \
420+ --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields \
421+ Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c
422+
423+ FLAG DESCRIPTIONS
424+ -d, --output-dir=<value> Directory for saving the created files.
425+
426+ The location can be an absolute path or relative to the current working directory. The default is the current
427+ directory.
428+
429+ -n, --name=<value> Name of the FlexiPage.
430+
431+ The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or
432+ contain two consecutive underscores.
433+
434+ -s, --sobject=<value> API name of the Salesforce object; required when creating a RecordPage.
435+
436+ For RecordPage FlexiPages, you must specify the associated object API name, such as 'Account', 'Opportunity', or
437+ 'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
438+ ```
439+
440+ _ See code: [ src/commands/template/generate/flexipage/index.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0/src/commands/template/generate/flexipage/index.ts ) _
358441
359442## ` sf template generate lightning app `
360443
@@ -410,7 +493,7 @@ FLAG DESCRIPTIONS
410493 Supplied parameter values or default values are filled into a copy of the template.
411494```
412495
413- _ See code: [ src/commands/template/generate/lightning/app.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/lightning/app.ts ) _
496+ _ See code: [ src/commands/template/generate/lightning/app.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/lightning/app.ts ) _
414497
415498## ` sf template generate lightning component `
416499
@@ -480,7 +563,7 @@ FLAG DESCRIPTIONS
480563 Supplied parameter values or default values are filled into a copy of the template.
481564```
482565
483- _ See code: [ src/commands/template/generate/lightning/component.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/lightning/component.ts ) _
566+ _ See code: [ src/commands/template/generate/lightning/component.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/lightning/component.ts ) _
484567
485568## ` sf template generate lightning event `
486569
@@ -536,7 +619,7 @@ FLAG DESCRIPTIONS
536619 Supplied parameter values or default values are filled into a copy of the template.
537620```
538621
539- _ See code: [ src/commands/template/generate/lightning/event.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/lightning/event.ts ) _
622+ _ See code: [ src/commands/template/generate/lightning/event.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/lightning/event.ts ) _
540623
541624## ` sf template generate lightning interface `
542625
@@ -592,7 +675,7 @@ FLAG DESCRIPTIONS
592675 Supplied parameter values or default values are filled into a copy of the template.
593676```
594677
595- _ See code: [ src/commands/template/generate/lightning/interface.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/lightning/interface.ts ) _
678+ _ See code: [ src/commands/template/generate/lightning/interface.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/lightning/interface.ts ) _
596679
597680## ` sf template generate lightning test `
598681
@@ -648,7 +731,7 @@ FLAG DESCRIPTIONS
648731 Supplied parameter values or default values are filled into a copy of the template.
649732```
650733
651- _ See code: [ src/commands/template/generate/lightning/test.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/lightning/test.ts ) _
734+ _ See code: [ src/commands/template/generate/lightning/test.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/lightning/test.ts ) _
652735
653736## ` sf template generate project `
654737
@@ -754,7 +837,7 @@ FLAG DESCRIPTIONS
754837 Override the api version used for api requests made by this command
755838```
756839
757- _ See code: [ src/commands/template/generate/project/index.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/project/index.ts ) _
840+ _ See code: [ src/commands/template/generate/project/index.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/project/index.ts ) _
758841
759842## ` sf template generate static-resource `
760843
@@ -817,7 +900,7 @@ FLAG DESCRIPTIONS
817900 etc.
818901```
819902
820- _ See code: [ src/commands/template/generate/static-resource/index.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/static-resource/index.ts ) _
903+ _ See code: [ src/commands/template/generate/static-resource/index.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/static-resource/index.ts ) _
821904
822905## ` sf template generate visualforce component `
823906
@@ -874,7 +957,7 @@ FLAG DESCRIPTIONS
874957 Supplied parameter values or default values are filled into a copy of the template.
875958```
876959
877- _ See code: [ src/commands/template/generate/visualforce/component.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/visualforce/component.ts ) _
960+ _ See code: [ src/commands/template/generate/visualforce/component.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/visualforce/component.ts ) _
878961
879962## ` sf template generate visualforce page `
880963
@@ -925,6 +1008,6 @@ FLAG DESCRIPTIONS
9251008 The name can be up to 40 characters and must start with a letter.
9261009```
9271010
928- _ See code: [ src/commands/template/generate/visualforce/page.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.7.2 /src/commands/template/generate/visualforce/page.ts ) _
1011+ _ See code: [ src/commands/template/generate/visualforce/page.ts] ( https://github.com/salesforcecli/plugin-templates/blob/56.8.0 /src/commands/template/generate/visualforce/page.ts ) _
9291012
9301013<!-- commandsstop -->
0 commit comments