Skip to content

Commit 271b6b3

Browse files
committed
chore(release): 56.8.0 [skip ci]
1 parent 78bd2d7 commit 271b6b3

3 files changed

Lines changed: 112 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# [56.8.0](https://github.com/salesforcecli/plugin-templates/compare/56.7.2...56.8.0) (2026-02-12)
2+
3+
### Bug Fixes
4+
5+
- address PR feedback - validate RecordPage-only flags and fix \_\_c formatting ([7b24c4d](https://github.com/salesforcecli/plugin-templates/commit/7b24c4da9b2d01605bf4bff9fb6fdfd703703afb))
6+
- address PR review feedback ([95e959f](https://github.com/salesforcecli/plugin-templates/commit/95e959f76d14405dcd07a72af5534d4a0e004a58))
7+
- correct \_\_c formatting in custom field examples ([f947bb0](https://github.com/salesforcecli/plugin-templates/commit/f947bb076b9e94c87624a22a26e07431176b37f5))
8+
- remove alias ([584bc37](https://github.com/salesforcecli/plugin-templates/commit/584bc379ef419a0b3d056e10b118e9af388c0069))
9+
- remove invalid force:flexipage:create alias and unused import ([a740471](https://github.com/salesforcecli/plugin-templates/commit/a740471e8712608d9fea82b1d4157aa950a72a53))
10+
11+
### Features
12+
13+
- add beta state and secondary fields limit validation ([33cbb37](https://github.com/salesforcecli/plugin-templates/commit/33cbb372d87fd9a902edb6239b2e8a7ca9a954ee))
14+
- add sf flexipage generate command ([1ddc620](https://github.com/salesforcecli/plugin-templates/commit/1ddc62030eb10d201134280aacc4ab6116fbfc1c))
15+
116
## [56.7.2](https://github.com/salesforcecli/plugin-templates/compare/56.7.1...56.7.2) (2026-02-12)
217

318
### Bug Fixes

README.md

Lines changed: 96 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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 -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-templates",
33
"description": "Commands to create metadata from a default or custom template",
4-
"version": "56.7.2",
4+
"version": "56.8.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
77
"enableO11y": true,

0 commit comments

Comments
 (0)