@salesforce/plugin-templates 56.13.4 → 56.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # plugin-templates
2
2
 
3
- This repository provides a series of commands, templates, and generators for various metadata types.
3
+ This repository provides a series of commands, templates, and generators for various metadata types, including support for TypeScript Lightning Web Components.
4
4
 
5
5
  [![Known Vulnerabilities](https://snyk.io/test/github/salesforcecli/plugin-templates/badge.svg)](https://snyk.io/test/github/salesforcecli/plugin-templates)
6
6
  [![License](https://img.shields.io/npm/l/@salesforce/plugin-templates.svg)](https://github.com/salesforcecli/plugin-templates/blob/master/package.json)
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
177
177
  directory.
178
178
  ```
179
179
 
180
- _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/analytics/template.ts)_
180
+ _See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/analytics/template.ts)_
181
181
 
182
182
  ## `sf template generate apex class`
183
183
 
@@ -237,7 +237,7 @@ FLAG DESCRIPTIONS
237
237
  Supplied parameter values or default values are filled into a copy of the template.
238
238
  ```
239
239
 
240
- _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/apex/class.ts)_
240
+ _See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/apex/class.ts)_
241
241
 
242
242
  ## `sf template generate apex trigger`
243
243
 
@@ -307,7 +307,7 @@ FLAG DESCRIPTIONS
307
307
  Supplied parameter values or default values are filled into a copy of the template.
308
308
  ```
309
309
 
310
- _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/apex/trigger.ts)_
310
+ _See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/apex/trigger.ts)_
311
311
 
312
312
  ## `sf template generate digital-experience site`
313
313
 
@@ -361,7 +361,7 @@ FLAG DESCRIPTIONS
361
361
  project, defaults to the current directory.
362
362
  ```
363
363
 
364
- _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/digital-experience/site.ts)_
364
+ _See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/digital-experience/site.ts)_
365
365
 
366
366
  ## `sf template generate flexipage`
367
367
 
@@ -443,7 +443,7 @@ FLAG DESCRIPTIONS
443
443
  'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
444
444
  ```
445
445
 
446
- _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/flexipage/index.ts)_
446
+ _See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/flexipage/index.ts)_
447
447
 
448
448
  ## `sf template generate lightning app`
449
449
 
@@ -499,7 +499,7 @@ FLAG DESCRIPTIONS
499
499
  Supplied parameter values or default values are filled into a copy of the template.
500
500
  ```
501
501
 
502
- _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/app.ts)_
502
+ _See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/app.ts)_
503
503
 
504
504
  ## `sf template generate lightning component`
505
505
 
@@ -569,7 +569,7 @@ FLAG DESCRIPTIONS
569
569
  Supplied parameter values or default values are filled into a copy of the template.
570
570
  ```
571
571
 
572
- _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/component.ts)_
572
+ _See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/component.ts)_
573
573
 
574
574
  ## `sf template generate lightning event`
575
575
 
@@ -625,7 +625,7 @@ FLAG DESCRIPTIONS
625
625
  Supplied parameter values or default values are filled into a copy of the template.
626
626
  ```
627
627
 
628
- _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/event.ts)_
628
+ _See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/event.ts)_
629
629
 
630
630
  ## `sf template generate lightning interface`
631
631
 
@@ -681,7 +681,7 @@ FLAG DESCRIPTIONS
681
681
  Supplied parameter values or default values are filled into a copy of the template.
682
682
  ```
683
683
 
684
- _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/interface.ts)_
684
+ _See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/interface.ts)_
685
685
 
686
686
  ## `sf template generate lightning test`
687
687
 
@@ -737,7 +737,7 @@ FLAG DESCRIPTIONS
737
737
  Supplied parameter values or default values are filled into a copy of the template.
738
738
  ```
739
739
 
740
- _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/lightning/test.ts)_
740
+ _See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/lightning/test.ts)_
741
741
 
742
742
  ## `sf template generate project`
743
743
 
@@ -747,7 +747,7 @@ Generate a Salesforce DX project.
747
747
  USAGE
748
748
  $ sf template generate project -n <value> [--json] [--flags-dir <value>] [-t
749
749
  standard|empty|analytics|reactinternalapp|reactexternalapp|agent] [-d <value>] [-s <value>] [-p <value>] [-x]
750
- [--api-version <value>]
750
+ [--lwc-language javascript|typescript] [--api-version <value>]
751
751
 
752
752
  FLAGS
753
753
  -d, --output-dir=<value> [default: .] Directory for saving the created files.
@@ -758,6 +758,8 @@ FLAGS
758
758
  <options: standard|empty|analytics|reactinternalapp|reactexternalapp|agent>
759
759
  -x, --manifest Generate a manifest (package.xml) for change-set based development.
760
760
  --api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file
761
+ --lwc-language=<option> Default language for Lightning Web Components.
762
+ <options: javascript|typescript>
761
763
 
762
764
  GLOBAL FLAGS
763
765
  --flags-dir=<value> Import flag values from a directory.
@@ -795,6 +797,10 @@ EXAMPLES
795
797
 
796
798
  $ sf template generate project --name mywork --template empty
797
799
 
800
+ Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:
801
+
802
+ $ sf template generate project --name mywork --lwc-language typescript
803
+
798
804
  FLAG DESCRIPTIONS
799
805
  -d, --output-dir=<value> Directory for saving the created files.
800
806
 
@@ -848,9 +854,16 @@ FLAG DESCRIPTIONS
848
854
  --api-version=<value> Will set this version as sourceApiVersion in the sfdx-project.json file
849
855
 
850
856
  Override the api version used for api requests made by this command
857
+
858
+ --lwc-language=javascript|typescript Default language for Lightning Web Components.
859
+
860
+ Sets the default language for Lightning Web Components in this project. When set to 'typescript', generates
861
+ TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware
862
+ ESLint config). TypeScript projects compile locally to a dist/ folder for validation, but deploy raw .ts files to
863
+ Salesforce for server-side type stripping. Defaults to 'javascript'.
851
864
  ```
852
865
 
853
- _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/project/index.ts)_
866
+ _See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/project/index.ts)_
854
867
 
855
868
  ## `sf template generate static-resource`
856
869
 
@@ -913,7 +926,7 @@ FLAG DESCRIPTIONS
913
926
  etc.
914
927
  ```
915
928
 
916
- _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/static-resource/index.ts)_
929
+ _See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/static-resource/index.ts)_
917
930
 
918
931
  ## `sf template generate ui-bundle`
919
932
 
@@ -997,7 +1010,7 @@ FLAG DESCRIPTIONS
997
1010
  Supplied parameter values or default values are filled into a copy of the template.
998
1011
  ```
999
1012
 
1000
- _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/ui-bundle/index.ts)_
1013
+ _See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/ui-bundle/index.ts)_
1001
1014
 
1002
1015
  ## `sf template generate visualforce component`
1003
1016
 
@@ -1054,7 +1067,7 @@ FLAG DESCRIPTIONS
1054
1067
  Supplied parameter values or default values are filled into a copy of the template.
1055
1068
  ```
1056
1069
 
1057
- _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/visualforce/component.ts)_
1070
+ _See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/visualforce/component.ts)_
1058
1071
 
1059
1072
  ## `sf template generate visualforce page`
1060
1073
 
@@ -1105,6 +1118,6 @@ FLAG DESCRIPTIONS
1105
1118
  The name can be up to 40 characters and must start with a letter.
1106
1119
  ```
1107
1120
 
1108
- _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.13.4/src/commands/template/generate/visualforce/page.ts)_
1121
+ _See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.14.0/src/commands/template/generate/visualforce/page.ts)_
1109
1122
 
1110
1123
  <!-- commandsstop -->
@@ -14,6 +14,7 @@ export default class Project extends SfCommand<CreateOutput> {
14
14
  'default-package-dir': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
15
  manifest: import("@oclif/core/interfaces").BooleanFlag<boolean>;
16
16
  'login-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'lwc-language': import("@oclif/core/interfaces").OptionFlag<"javascript" | "typescript" | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
19
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
20
  };
@@ -61,6 +61,11 @@ export default class Project extends SfCommand {
61
61
  aliases: ['loginurl'],
62
62
  deprecateAliases: true,
63
63
  }),
64
+ 'lwc-language': Flags.option({
65
+ summary: messages.getMessage('flags.lwc-language.summary'),
66
+ description: messages.getMessage('flags.lwc-language.description'),
67
+ options: ['javascript', 'typescript'],
68
+ })(),
64
69
  loglevel,
65
70
  'api-version': Flags.orgApiVersion({
66
71
  summary: messages.getMessage('flags.api-version.summary'),
@@ -79,6 +84,9 @@ export default class Project extends SfCommand {
79
84
  defaultpackagedir: flags['default-package-dir'],
80
85
  apiversion: flags['api-version'],
81
86
  };
87
+ if (flags['lwc-language']) {
88
+ flagsAsOptions.lwcLanguage = flags['lwc-language'];
89
+ }
82
90
  return runGenerator({
83
91
  templateType: TemplateType.Project,
84
92
  opts: flagsAsOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/project/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAC7E,O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AC;KACH,CAAC;IACK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAE5C,MAAM,cAAc,GAAmB;YACrC,WAAW,EAAE,KAAK,CAAC,IAAI;YACvB,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;YAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC;YAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,oDAAoD;YACpD,EAAE,EAAE,KAAK,CAAC,SAAS;YACnB,iBAAiB,EAAE,KAAK,CAAC,qBAAqB,CAAC;YAC/C,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;QACF,IAAI,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;YAC1B,cAAc,CAAC,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,YAAY,CAAC;YAClB,YAAY,EAAE,YAAY,CAAC,OAAO;YAClC,IAAI,EAAE,cAAc;YACpB,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC/C,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
@@ -26,6 +26,10 @@ By default, the generated sfdx-project.json file sets the sourceApiVersion prope
26
26
 
27
27
  <%= config.bin %> <%= command.id %> --name mywork --template empty
28
28
 
29
+ - Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:
30
+
31
+ <%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript
32
+
29
33
  # flags.name.summary
30
34
 
31
35
  Name of the generated project.
@@ -93,3 +97,11 @@ Salesforce instance login URL.
93
97
  # flags.login-url.description
94
98
 
95
99
  Normally defaults to https://login.salesforce.com.
100
+
101
+ # flags.lwc-language.summary
102
+
103
+ Default language for Lightning Web Components.
104
+
105
+ # flags.lwc-language.description
106
+
107
+ Sets the default language for Lightning Web Components in this project. When set to 'typescript', generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). TypeScript projects compile locally to a dist/ folder for validation, but deploy raw .ts files to Salesforce for server-side type stripping. Defaults to 'javascript'.
@@ -1,5 +1,158 @@
1
1
  {
2
2
  "commands": {
3
+ "template:generate:analytics:template": {
4
+ "aliases": [
5
+ "force:analytics:template:create",
6
+ "analytics:generate:template"
7
+ ],
8
+ "args": {},
9
+ "deprecateAliases": true,
10
+ "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
11
+ "examples": [
12
+ "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
13
+ ],
14
+ "flags": {
15
+ "json": {
16
+ "description": "Format output as json.",
17
+ "helpGroup": "GLOBAL",
18
+ "name": "json",
19
+ "allowNo": false,
20
+ "type": "boolean"
21
+ },
22
+ "flags-dir": {
23
+ "helpGroup": "GLOBAL",
24
+ "name": "flags-dir",
25
+ "summary": "Import flag values from a directory.",
26
+ "hasDynamicHelp": false,
27
+ "multiple": false,
28
+ "type": "option"
29
+ },
30
+ "output-dir": {
31
+ "aliases": [
32
+ "outputdir"
33
+ ],
34
+ "char": "d",
35
+ "deprecateAliases": true,
36
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
37
+ "name": "output-dir",
38
+ "summary": "Directory for saving the created files.",
39
+ "default": ".",
40
+ "hasDynamicHelp": false,
41
+ "multiple": false,
42
+ "type": "option"
43
+ },
44
+ "api-version": {
45
+ "aliases": [
46
+ "apiversion"
47
+ ],
48
+ "deprecateAliases": true,
49
+ "description": "Override the api version used for api requests made by this command",
50
+ "name": "api-version",
51
+ "hasDynamicHelp": false,
52
+ "multiple": false,
53
+ "type": "option"
54
+ },
55
+ "name": {
56
+ "aliases": [
57
+ "templatename"
58
+ ],
59
+ "char": "n",
60
+ "deprecateAliases": true,
61
+ "name": "name",
62
+ "required": true,
63
+ "summary": "Name of the Analytics template.",
64
+ "hasDynamicHelp": false,
65
+ "multiple": false,
66
+ "type": "option"
67
+ },
68
+ "loglevel": {
69
+ "deprecated": {
70
+ "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
71
+ },
72
+ "hidden": true,
73
+ "name": "loglevel",
74
+ "hasDynamicHelp": false,
75
+ "multiple": false,
76
+ "type": "option"
77
+ }
78
+ },
79
+ "hasDynamicHelp": false,
80
+ "hiddenAliases": [],
81
+ "id": "template:generate:analytics:template",
82
+ "pluginAlias": "@salesforce/plugin-templates",
83
+ "pluginName": "@salesforce/plugin-templates",
84
+ "pluginType": "core",
85
+ "strict": true,
86
+ "summary": "Generate a simple Analytics template.",
87
+ "enableJsonFlag": true,
88
+ "isESM": true,
89
+ "relativePath": [
90
+ "lib",
91
+ "commands",
92
+ "template",
93
+ "generate",
94
+ "analytics",
95
+ "template.js"
96
+ ],
97
+ "aliasPermutations": [
98
+ "force:analytics:template:create",
99
+ "analytics:force:template:create",
100
+ "analytics:template:force:create",
101
+ "analytics:template:create:force",
102
+ "force:template:analytics:create",
103
+ "template:force:analytics:create",
104
+ "template:analytics:force:create",
105
+ "template:analytics:create:force",
106
+ "force:template:create:analytics",
107
+ "template:force:create:analytics",
108
+ "template:create:force:analytics",
109
+ "template:create:analytics:force",
110
+ "force:analytics:create:template",
111
+ "analytics:force:create:template",
112
+ "analytics:create:force:template",
113
+ "analytics:create:template:force",
114
+ "force:create:analytics:template",
115
+ "create:force:analytics:template",
116
+ "create:analytics:force:template",
117
+ "create:analytics:template:force",
118
+ "force:create:template:analytics",
119
+ "create:force:template:analytics",
120
+ "create:template:force:analytics",
121
+ "create:template:analytics:force",
122
+ "analytics:generate:template",
123
+ "generate:analytics:template",
124
+ "generate:template:analytics",
125
+ "analytics:template:generate",
126
+ "template:analytics:generate",
127
+ "template:generate:analytics"
128
+ ],
129
+ "permutations": [
130
+ "template:generate:analytics:template",
131
+ "generate:template:analytics:template",
132
+ "generate:analytics:template:template",
133
+ "generate:analytics:template:template",
134
+ "template:analytics:generate:template",
135
+ "analytics:template:generate:template",
136
+ "analytics:generate:template:template",
137
+ "analytics:generate:template:template",
138
+ "template:analytics:template:generate",
139
+ "analytics:template:template:generate",
140
+ "analytics:template:template:generate",
141
+ "analytics:template:generate:template",
142
+ "template:generate:template:analytics",
143
+ "generate:template:template:analytics",
144
+ "generate:template:template:analytics",
145
+ "generate:template:analytics:template",
146
+ "template:template:generate:analytics",
147
+ "template:template:generate:analytics",
148
+ "template:generate:template:analytics",
149
+ "template:generate:analytics:template",
150
+ "template:template:analytics:generate",
151
+ "template:template:analytics:generate",
152
+ "template:analytics:template:generate",
153
+ "template:analytics:generate:template"
154
+ ]
155
+ },
3
156
  "template:generate:apex:class": {
4
157
  "aliases": [
5
158
  "force:apex:class:create",
@@ -375,16 +528,15 @@
375
528
  "trigger:apex:generate:template"
376
529
  ]
377
530
  },
378
- "template:generate:analytics:template": {
379
- "aliases": [
380
- "force:analytics:template:create",
381
- "analytics:generate:template"
382
- ],
531
+ "template:generate:flexipage": {
532
+ "aliases": [],
383
533
  "args": {},
384
- "deprecateAliases": true,
385
- "description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
534
+ "description": "FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen made up of regions containing Lightning components.\n\nYou can use this command to generate these types of FlexiPages; specify the type with the --template flag:\n\n- AppPage: A Lightning page used as the home page for a custom app or a standalone application page.\n- HomePage: A Lightning page used to override the Home page in Lightning Experience.\n- 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.",
386
535
  "examples": [
387
- "Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
536
+ "Generate a RecordPage FlexiPage for the Account object in the current directory:\n<%= config.bin %> <%= command.id %> --name Account_Record_Page --template RecordPage --sobject Account",
537
+ "Generate an AppPage FlexiPage in the \"force-app/main/default/flexipages\" directory:\n<%= config.bin %> <%= command.id %> --name Sales_Dashboard --template AppPage --output-dir force-app/main/default/flexipages",
538
+ "Generate a HomePage FlexiPage with a custom label:\n<%= config.bin %> <%= command.id %> --name Custom_Home --template HomePage --label \"Sales Home Page\"",
539
+ "Generate a RecordPage with dynamic highlights and detail fields:\n<%= config.bin %> <%= command.id %> --name Property_Page --template RecordPage --sobject Rental_Property__c --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c"
388
540
  ],
389
541
  "flags": {
390
542
  "json": {
@@ -402,6 +554,34 @@
402
554
  "multiple": false,
403
555
  "type": "option"
404
556
  },
557
+ "name": {
558
+ "aliases": [
559
+ "flexipagename"
560
+ ],
561
+ "char": "n",
562
+ "deprecateAliases": true,
563
+ "description": "The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or contain two consecutive underscores.",
564
+ "name": "name",
565
+ "required": true,
566
+ "summary": "Name of the FlexiPage.",
567
+ "hasDynamicHelp": false,
568
+ "multiple": false,
569
+ "type": "option"
570
+ },
571
+ "template": {
572
+ "char": "t",
573
+ "name": "template",
574
+ "required": true,
575
+ "summary": "Template type for the FlexiPage.",
576
+ "hasDynamicHelp": false,
577
+ "multiple": false,
578
+ "options": [
579
+ "RecordPage",
580
+ "AppPage",
581
+ "HomePage"
582
+ ],
583
+ "type": "option"
584
+ },
405
585
  "output-dir": {
406
586
  "aliases": [
407
587
  "outputdir"
@@ -427,19 +607,69 @@
427
607
  "multiple": false,
428
608
  "type": "option"
429
609
  },
430
- "name": {
610
+ "label": {
431
611
  "aliases": [
432
- "templatename"
612
+ "masterlabel"
433
613
  ],
434
- "char": "n",
435
614
  "deprecateAliases": true,
436
- "name": "name",
437
- "required": true,
438
- "summary": "Name of the Analytics template.",
615
+ "name": "label",
616
+ "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
617
+ "hasDynamicHelp": false,
618
+ "multiple": false,
619
+ "type": "option"
620
+ },
621
+ "description": {
622
+ "name": "description",
623
+ "summary": "Description for the FlexiPage, which provides context about its purpose.",
624
+ "hasDynamicHelp": false,
625
+ "multiple": false,
626
+ "type": "option"
627
+ },
628
+ "sobject": {
629
+ "aliases": [
630
+ "entity-name",
631
+ "entity"
632
+ ],
633
+ "char": "s",
634
+ "deprecateAliases": true,
635
+ "description": "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.",
636
+ "name": "sobject",
637
+ "summary": "API name of the Salesforce object; required when creating a RecordPage.",
439
638
  "hasDynamicHelp": false,
440
639
  "multiple": false,
441
640
  "type": "option"
442
641
  },
642
+ "primary-field": {
643
+ "name": "primary-field",
644
+ "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
645
+ "hasDynamicHelp": false,
646
+ "multiple": false,
647
+ "type": "option"
648
+ },
649
+ "secondary-fields": {
650
+ "name": "secondary-fields",
651
+ "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
652
+ "delimiter": ",",
653
+ "hasDynamicHelp": false,
654
+ "multiple": true,
655
+ "type": "option"
656
+ },
657
+ "detail-fields": {
658
+ "name": "detail-fields",
659
+ "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
660
+ "delimiter": ",",
661
+ "hasDynamicHelp": false,
662
+ "multiple": true,
663
+ "type": "option"
664
+ },
665
+ "internal": {
666
+ "char": "i",
667
+ "hidden": true,
668
+ "name": "internal",
669
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
670
+ "allowNo": false,
671
+ "type": "boolean"
672
+ },
443
673
  "loglevel": {
444
674
  "deprecated": {
445
675
  "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
@@ -453,79 +683,32 @@
453
683
  },
454
684
  "hasDynamicHelp": false,
455
685
  "hiddenAliases": [],
456
- "id": "template:generate:analytics:template",
686
+ "id": "template:generate:flexipage",
457
687
  "pluginAlias": "@salesforce/plugin-templates",
458
688
  "pluginName": "@salesforce/plugin-templates",
459
689
  "pluginType": "core",
690
+ "state": "beta",
460
691
  "strict": true,
461
- "summary": "Generate a simple Analytics template.",
692
+ "summary": "Generate a FlexiPage, also known as a Lightning page.",
462
693
  "enableJsonFlag": true,
694
+ "MAX_SECONDARY_FIELDS": 11,
463
695
  "isESM": true,
464
696
  "relativePath": [
465
697
  "lib",
466
698
  "commands",
467
699
  "template",
468
700
  "generate",
469
- "analytics",
470
- "template.js"
471
- ],
472
- "aliasPermutations": [
473
- "force:analytics:template:create",
474
- "analytics:force:template:create",
475
- "analytics:template:force:create",
476
- "analytics:template:create:force",
477
- "force:template:analytics:create",
478
- "template:force:analytics:create",
479
- "template:analytics:force:create",
480
- "template:analytics:create:force",
481
- "force:template:create:analytics",
482
- "template:force:create:analytics",
483
- "template:create:force:analytics",
484
- "template:create:analytics:force",
485
- "force:analytics:create:template",
486
- "analytics:force:create:template",
487
- "analytics:create:force:template",
488
- "analytics:create:template:force",
489
- "force:create:analytics:template",
490
- "create:force:analytics:template",
491
- "create:analytics:force:template",
492
- "create:analytics:template:force",
493
- "force:create:template:analytics",
494
- "create:force:template:analytics",
495
- "create:template:force:analytics",
496
- "create:template:analytics:force",
497
- "analytics:generate:template",
498
- "generate:analytics:template",
499
- "generate:template:analytics",
500
- "analytics:template:generate",
501
- "template:analytics:generate",
502
- "template:generate:analytics"
701
+ "flexipage",
702
+ "index.js"
503
703
  ],
704
+ "aliasPermutations": [],
504
705
  "permutations": [
505
- "template:generate:analytics:template",
506
- "generate:template:analytics:template",
507
- "generate:analytics:template:template",
508
- "generate:analytics:template:template",
509
- "template:analytics:generate:template",
510
- "analytics:template:generate:template",
511
- "analytics:generate:template:template",
512
- "analytics:generate:template:template",
513
- "template:analytics:template:generate",
514
- "analytics:template:template:generate",
515
- "analytics:template:template:generate",
516
- "analytics:template:generate:template",
517
- "template:generate:template:analytics",
518
- "generate:template:template:analytics",
519
- "generate:template:template:analytics",
520
- "generate:template:analytics:template",
521
- "template:template:generate:analytics",
522
- "template:template:generate:analytics",
523
- "template:generate:template:analytics",
524
- "template:generate:analytics:template",
525
- "template:template:analytics:generate",
526
- "template:template:analytics:generate",
527
- "template:analytics:template:generate",
528
- "template:analytics:generate:template"
706
+ "template:generate:flexipage",
707
+ "generate:template:flexipage",
708
+ "generate:flexipage:template",
709
+ "template:flexipage:generate",
710
+ "flexipage:template:generate",
711
+ "flexipage:generate:template"
529
712
  ]
530
713
  },
531
714
  "template:generate:digital-experience:site": {
@@ -656,15 +839,20 @@
656
839
  "site:digital-experience:generate:template"
657
840
  ]
658
841
  },
659
- "template:generate:flexipage": {
660
- "aliases": [],
842
+ "template:generate:project": {
843
+ "aliases": [
844
+ "force:project:create",
845
+ "project:generate"
846
+ ],
661
847
  "args": {},
662
- "description": "FlexiPages are the metadata types associated with a Lightning page. A Lightning page represents a customizable screen made up of regions containing Lightning components.\n\nYou can use this command to generate these types of FlexiPages; specify the type with the --template flag:\n\n- AppPage: A Lightning page used as the home page for a custom app or a standalone application page.\n- HomePage: A Lightning page used to override the Home page in Lightning Experience.\n- 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.",
848
+ "deprecateAliases": true,
849
+ "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
663
850
  "examples": [
664
- "Generate a RecordPage FlexiPage for the Account object in the current directory:\n<%= config.bin %> <%= command.id %> --name Account_Record_Page --template RecordPage --sobject Account",
665
- "Generate an AppPage FlexiPage in the \"force-app/main/default/flexipages\" directory:\n<%= config.bin %> <%= command.id %> --name Sales_Dashboard --template AppPage --output-dir force-app/main/default/flexipages",
666
- "Generate a HomePage FlexiPage with a custom label:\n<%= config.bin %> <%= command.id %> --name Custom_Home --template HomePage --label \"Sales Home Page\"",
667
- "Generate a RecordPage with dynamic highlights and detail fields:\n<%= config.bin %> <%= command.id %> --name Property_Page --template RecordPage --sobject Rental_Property__c --primary-field Name --secondary-fields Property_Address__c,City__c --detail-fields Name,Property_Address__c,City__c,Monthly_Rent__c,Bedrooms__c"
851
+ "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
852
+ "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
853
+ "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
854
+ "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
855
+ "Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
668
856
  ],
669
857
  "flags": {
670
858
  "json": {
@@ -684,29 +872,33 @@
684
872
  },
685
873
  "name": {
686
874
  "aliases": [
687
- "flexipagename"
875
+ "projectname"
688
876
  ],
689
877
  "char": "n",
690
878
  "deprecateAliases": true,
691
- "description": "The name can contain only alphanumeric characters, must start with a letter, and can't end with an underscore or contain two consecutive underscores.",
879
+ "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
692
880
  "name": "name",
693
881
  "required": true,
694
- "summary": "Name of the FlexiPage.",
882
+ "summary": "Name of the generated project.",
695
883
  "hasDynamicHelp": false,
696
884
  "multiple": false,
697
885
  "type": "option"
698
886
  },
699
887
  "template": {
700
888
  "char": "t",
889
+ "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
701
890
  "name": "template",
702
- "required": true,
703
- "summary": "Template type for the FlexiPage.",
891
+ "summary": "Template to use for project creation.",
892
+ "default": "standard",
704
893
  "hasDynamicHelp": false,
705
894
  "multiple": false,
706
895
  "options": [
707
- "RecordPage",
708
- "AppPage",
709
- "HomePage"
896
+ "standard",
897
+ "empty",
898
+ "analytics",
899
+ "reactinternalapp",
900
+ "reactexternalapp",
901
+ "agent"
710
902
  ],
711
903
  "type": "option"
712
904
  },
@@ -724,80 +916,64 @@
724
916
  "multiple": false,
725
917
  "type": "option"
726
918
  },
727
- "api-version": {
728
- "aliases": [
729
- "apiversion"
730
- ],
731
- "deprecateAliases": true,
732
- "description": "Override the api version used for api requests made by this command",
733
- "name": "api-version",
919
+ "namespace": {
920
+ "char": "s",
921
+ "name": "namespace",
922
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
923
+ "default": "",
734
924
  "hasDynamicHelp": false,
735
925
  "multiple": false,
736
926
  "type": "option"
737
927
  },
738
- "label": {
928
+ "default-package-dir": {
739
929
  "aliases": [
740
- "masterlabel"
930
+ "defaultpackagedir"
741
931
  ],
932
+ "char": "p",
742
933
  "deprecateAliases": true,
743
- "name": "label",
744
- "summary": "Label of this FlexiPage; if not specified, uses the FlexiPage name as the label.",
934
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
935
+ "name": "default-package-dir",
936
+ "summary": "Default package directory name.",
937
+ "default": "force-app",
745
938
  "hasDynamicHelp": false,
746
939
  "multiple": false,
747
940
  "type": "option"
748
941
  },
749
- "description": {
750
- "name": "description",
751
- "summary": "Description for the FlexiPage, which provides context about its purpose.",
752
- "hasDynamicHelp": false,
753
- "multiple": false,
754
- "type": "option"
942
+ "manifest": {
943
+ "char": "x",
944
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
945
+ "name": "manifest",
946
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
947
+ "allowNo": false,
948
+ "type": "boolean"
755
949
  },
756
- "sobject": {
950
+ "login-url": {
757
951
  "aliases": [
758
- "entity-name",
759
- "entity"
952
+ "loginurl"
760
953
  ],
761
- "char": "s",
954
+ "char": "l",
762
955
  "deprecateAliases": true,
763
- "description": "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.",
764
- "name": "sobject",
765
- "summary": "API name of the Salesforce object; required when creating a RecordPage.",
956
+ "description": "Normally defaults to https://login.salesforce.com.",
957
+ "hidden": true,
958
+ "name": "login-url",
959
+ "summary": "Salesforce instance login URL.",
960
+ "default": "https://login.salesforce.com",
766
961
  "hasDynamicHelp": false,
767
962
  "multiple": false,
768
963
  "type": "option"
769
964
  },
770
- "primary-field": {
771
- "name": "primary-field",
772
- "summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
965
+ "lwc-language": {
966
+ "description": "Sets the default language for Lightning Web Components in this project. When set to 'typescript', generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). TypeScript projects compile locally to a dist/ folder for validation, but deploy raw .ts files to Salesforce for server-side type stripping. Defaults to 'javascript'.",
967
+ "name": "lwc-language",
968
+ "summary": "Default language for Lightning Web Components.",
773
969
  "hasDynamicHelp": false,
774
970
  "multiple": false,
971
+ "options": [
972
+ "javascript",
973
+ "typescript"
974
+ ],
775
975
  "type": "option"
776
976
  },
777
- "secondary-fields": {
778
- "name": "secondary-fields",
779
- "summary": "Secondary fields shown in the dynamic highlights header. Specify multiple fields separated by commas. Maximum of 11 fields. Used only with RecordPage.",
780
- "delimiter": ",",
781
- "hasDynamicHelp": false,
782
- "multiple": true,
783
- "type": "option"
784
- },
785
- "detail-fields": {
786
- "name": "detail-fields",
787
- "summary": "Fields to display in the Details tab. Specify multiple fields separated by commas. Fields are split into two columns. Used only with RecordPage.",
788
- "delimiter": ",",
789
- "hasDynamicHelp": false,
790
- "multiple": true,
791
- "type": "option"
792
- },
793
- "internal": {
794
- "char": "i",
795
- "hidden": true,
796
- "name": "internal",
797
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
798
- "allowNo": false,
799
- "type": "boolean"
800
- },
801
977
  "loglevel": {
802
978
  "deprecated": {
803
979
  "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
@@ -807,36 +983,51 @@
807
983
  "hasDynamicHelp": false,
808
984
  "multiple": false,
809
985
  "type": "option"
986
+ },
987
+ "api-version": {
988
+ "description": "Override the api version used for api requests made by this command",
989
+ "name": "api-version",
990
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
991
+ "hasDynamicHelp": false,
992
+ "multiple": false,
993
+ "type": "option"
810
994
  }
811
995
  },
812
996
  "hasDynamicHelp": false,
813
997
  "hiddenAliases": [],
814
- "id": "template:generate:flexipage",
998
+ "id": "template:generate:project",
815
999
  "pluginAlias": "@salesforce/plugin-templates",
816
1000
  "pluginName": "@salesforce/plugin-templates",
817
1001
  "pluginType": "core",
818
- "state": "beta",
819
1002
  "strict": true,
820
- "summary": "Generate a FlexiPage, also known as a Lightning page.",
1003
+ "summary": "Generate a Salesforce DX project.",
821
1004
  "enableJsonFlag": true,
822
- "MAX_SECONDARY_FIELDS": 11,
823
1005
  "isESM": true,
824
1006
  "relativePath": [
825
1007
  "lib",
826
1008
  "commands",
827
1009
  "template",
828
1010
  "generate",
829
- "flexipage",
1011
+ "project",
830
1012
  "index.js"
831
1013
  ],
832
- "aliasPermutations": [],
1014
+ "aliasPermutations": [
1015
+ "force:project:create",
1016
+ "project:force:create",
1017
+ "project:create:force",
1018
+ "force:create:project",
1019
+ "create:force:project",
1020
+ "create:project:force",
1021
+ "project:generate",
1022
+ "generate:project"
1023
+ ],
833
1024
  "permutations": [
834
- "template:generate:flexipage",
835
- "generate:template:flexipage",
836
- "generate:flexipage:template",
837
- "template:flexipage:generate",
838
- "flexipage:template:generate",
839
- "flexipage:generate:template"
1025
+ "template:generate:project",
1026
+ "generate:template:project",
1027
+ "generate:project:template",
1028
+ "template:project:generate",
1029
+ "project:template:generate",
1030
+ "project:generate:template"
840
1031
  ]
841
1032
  },
842
1033
  "template:generate:lightning:app": {
@@ -1735,184 +1926,6 @@
1735
1926
  "test:lightning:generate:template"
1736
1927
  ]
1737
1928
  },
1738
- "template:generate:project": {
1739
- "aliases": [
1740
- "force:project:create",
1741
- "project:generate"
1742
- ],
1743
- "args": {},
1744
- "deprecateAliases": true,
1745
- "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
1746
- "examples": [
1747
- "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
1748
- "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
1749
- "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
1750
- "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty"
1751
- ],
1752
- "flags": {
1753
- "json": {
1754
- "description": "Format output as json.",
1755
- "helpGroup": "GLOBAL",
1756
- "name": "json",
1757
- "allowNo": false,
1758
- "type": "boolean"
1759
- },
1760
- "flags-dir": {
1761
- "helpGroup": "GLOBAL",
1762
- "name": "flags-dir",
1763
- "summary": "Import flag values from a directory.",
1764
- "hasDynamicHelp": false,
1765
- "multiple": false,
1766
- "type": "option"
1767
- },
1768
- "name": {
1769
- "aliases": [
1770
- "projectname"
1771
- ],
1772
- "char": "n",
1773
- "deprecateAliases": true,
1774
- "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
1775
- "name": "name",
1776
- "required": true,
1777
- "summary": "Name of the generated project.",
1778
- "hasDynamicHelp": false,
1779
- "multiple": false,
1780
- "type": "option"
1781
- },
1782
- "template": {
1783
- "char": "t",
1784
- "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
1785
- "name": "template",
1786
- "summary": "Template to use for project creation.",
1787
- "default": "standard",
1788
- "hasDynamicHelp": false,
1789
- "multiple": false,
1790
- "options": [
1791
- "standard",
1792
- "empty",
1793
- "analytics",
1794
- "reactinternalapp",
1795
- "reactexternalapp",
1796
- "agent"
1797
- ],
1798
- "type": "option"
1799
- },
1800
- "output-dir": {
1801
- "aliases": [
1802
- "outputdir"
1803
- ],
1804
- "char": "d",
1805
- "deprecateAliases": true,
1806
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1807
- "name": "output-dir",
1808
- "summary": "Directory for saving the created files.",
1809
- "default": ".",
1810
- "hasDynamicHelp": false,
1811
- "multiple": false,
1812
- "type": "option"
1813
- },
1814
- "namespace": {
1815
- "char": "s",
1816
- "name": "namespace",
1817
- "summary": "Namespace associated with this project and any connected scratch orgs.",
1818
- "default": "",
1819
- "hasDynamicHelp": false,
1820
- "multiple": false,
1821
- "type": "option"
1822
- },
1823
- "default-package-dir": {
1824
- "aliases": [
1825
- "defaultpackagedir"
1826
- ],
1827
- "char": "p",
1828
- "deprecateAliases": true,
1829
- "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1830
- "name": "default-package-dir",
1831
- "summary": "Default package directory name.",
1832
- "default": "force-app",
1833
- "hasDynamicHelp": false,
1834
- "multiple": false,
1835
- "type": "option"
1836
- },
1837
- "manifest": {
1838
- "char": "x",
1839
- "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1840
- "name": "manifest",
1841
- "summary": "Generate a manifest (package.xml) for change-set based development.",
1842
- "allowNo": false,
1843
- "type": "boolean"
1844
- },
1845
- "login-url": {
1846
- "aliases": [
1847
- "loginurl"
1848
- ],
1849
- "char": "l",
1850
- "deprecateAliases": true,
1851
- "description": "Normally defaults to https://login.salesforce.com.",
1852
- "hidden": true,
1853
- "name": "login-url",
1854
- "summary": "Salesforce instance login URL.",
1855
- "default": "https://login.salesforce.com",
1856
- "hasDynamicHelp": false,
1857
- "multiple": false,
1858
- "type": "option"
1859
- },
1860
- "loglevel": {
1861
- "deprecated": {
1862
- "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
1863
- },
1864
- "hidden": true,
1865
- "name": "loglevel",
1866
- "hasDynamicHelp": false,
1867
- "multiple": false,
1868
- "type": "option"
1869
- },
1870
- "api-version": {
1871
- "description": "Override the api version used for api requests made by this command",
1872
- "name": "api-version",
1873
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
1874
- "hasDynamicHelp": false,
1875
- "multiple": false,
1876
- "type": "option"
1877
- }
1878
- },
1879
- "hasDynamicHelp": false,
1880
- "hiddenAliases": [],
1881
- "id": "template:generate:project",
1882
- "pluginAlias": "@salesforce/plugin-templates",
1883
- "pluginName": "@salesforce/plugin-templates",
1884
- "pluginType": "core",
1885
- "strict": true,
1886
- "summary": "Generate a Salesforce DX project.",
1887
- "enableJsonFlag": true,
1888
- "isESM": true,
1889
- "relativePath": [
1890
- "lib",
1891
- "commands",
1892
- "template",
1893
- "generate",
1894
- "project",
1895
- "index.js"
1896
- ],
1897
- "aliasPermutations": [
1898
- "force:project:create",
1899
- "project:force:create",
1900
- "project:create:force",
1901
- "force:create:project",
1902
- "create:force:project",
1903
- "create:project:force",
1904
- "project:generate",
1905
- "generate:project"
1906
- ],
1907
- "permutations": [
1908
- "template:generate:project",
1909
- "generate:template:project",
1910
- "generate:project:template",
1911
- "template:project:generate",
1912
- "project:template:generate",
1913
- "project:generate:template"
1914
- ]
1915
- },
1916
1929
  "template:generate:static-resource": {
1917
1930
  "aliases": [
1918
1931
  "force:staticresource:create",
@@ -2501,5 +2514,5 @@
2501
2514
  ]
2502
2515
  }
2503
2516
  },
2504
- "version": "56.13.4"
2517
+ "version": "56.14.0"
2505
2518
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-templates",
3
3
  "description": "Commands to create metadata from a default or custom template",
4
- "version": "56.13.4",
4
+ "version": "56.14.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/salesforcecli/plugin-templates/issues",
7
7
  "enableO11y": true,
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@salesforce/core": "^8.27.1",
11
11
  "@salesforce/sf-plugins-core": "^12",
12
- "@salesforce/templates": "^66.7.4"
12
+ "@salesforce/templates": "^66.7.6"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@oclif/plugin-command-snapshot": "^5.3.13",
@@ -249,7 +249,7 @@
249
249
  "exports": "./lib/index.js",
250
250
  "type": "module",
251
251
  "sfdx": {
252
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.4.crt",
253
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.13.4.sig"
252
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.14.0.crt",
253
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.14.0.sig"
254
254
  }
255
255
  }