@salesforce/plugin-templates 56.13.3 → 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 +30 -20
- package/lib/commands/template/generate/project/index.d.ts +1 -0
- package/lib/commands/template/generate/project/index.js +8 -0
- package/lib/commands/template/generate/project/index.js.map +1 -1
- package/lib/commands/template/generate/ui-bundle/index.d.ts +0 -1
- package/lib/commands/template/generate/ui-bundle/index.js +0 -1
- package/lib/commands/template/generate/ui-bundle/index.js.map +1 -1
- package/messages/project.md +12 -0
- package/oclif.manifest.json +361 -353
- package/package.json +4 -7
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
|
[](https://snyk.io/test/github/salesforcecli/plugin-templates)
|
|
6
6
|
[](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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -952,9 +965,6 @@ DESCRIPTION
|
|
|
952
965
|
Use the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out
|
|
953
966
|
the README.md file in the generated "uiBundles/<bundlename>" directory for more information about the template.
|
|
954
967
|
|
|
955
|
-
ALIASES
|
|
956
|
-
$ sf ui-bundle generate
|
|
957
|
-
|
|
958
968
|
EXAMPLES
|
|
959
969
|
Generate a UI bundle called MyUiBundle in the current directory:
|
|
960
970
|
|
|
@@ -1000,7 +1010,7 @@ FLAG DESCRIPTIONS
|
|
|
1000
1010
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1001
1011
|
```
|
|
1002
1012
|
|
|
1003
|
-
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
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)_
|
|
1004
1014
|
|
|
1005
1015
|
## `sf template generate visualforce component`
|
|
1006
1016
|
|
|
@@ -1057,7 +1067,7 @@ FLAG DESCRIPTIONS
|
|
|
1057
1067
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1058
1068
|
```
|
|
1059
1069
|
|
|
1060
|
-
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
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)_
|
|
1061
1071
|
|
|
1062
1072
|
## `sf template generate visualforce page`
|
|
1063
1073
|
|
|
@@ -1108,6 +1118,6 @@ FLAG DESCRIPTIONS
|
|
|
1108
1118
|
The name can be up to 40 characters and must start with a letter.
|
|
1109
1119
|
```
|
|
1110
1120
|
|
|
1111
|
-
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
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)_
|
|
1112
1122
|
|
|
1113
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;A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AAa,EAAE,KAAK,CAAC,aAAa,CAAC;YACjC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;SAC1D,CAAC;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"}
|
|
@@ -5,7 +5,6 @@ export default class UiBundleGenerate extends SfCommand<CreateOutput> {
|
|
|
5
5
|
static readonly summary: string;
|
|
6
6
|
static readonly description: string;
|
|
7
7
|
static readonly examples: string[];
|
|
8
|
-
static readonly aliases: string[];
|
|
9
8
|
static readonly flags: {
|
|
10
9
|
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
10
|
template: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -16,7 +16,6 @@ export default class UiBundleGenerate extends SfCommand {
|
|
|
16
16
|
static summary = messages.getMessage('summary');
|
|
17
17
|
static description = messages.getMessage('description');
|
|
18
18
|
static examples = messages.getMessages('examples');
|
|
19
|
-
static aliases = ['ui-bundle:generate'];
|
|
20
19
|
static flags = {
|
|
21
20
|
name: Flags.string({
|
|
22
21
|
char: 'n',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAiC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAExF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,oBAAoB,CAAC,CAAC;AAE7F,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAuB;IAC5D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IA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AoB;YACtC,UAAU,EAAE,KAAK,CAAC,IAAI;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,WAAW,EAAE,KAAK,CAAC,KAAK;YACxB,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;QAEF,OAAO,YAAY,CAAC;YAClB,YAAY,EAAE,YAAY,CAAC,QAAQ;YACnC,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"}
|
package/messages/project.md
CHANGED
|
@@ -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'.
|
package/oclif.manifest.json
CHANGED
|
@@ -153,134 +153,6 @@
|
|
|
153
153
|
"template:analytics:generate:template"
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
|
-
"template:generate:digital-experience:site": {
|
|
157
|
-
"aliases": [],
|
|
158
|
-
"args": {},
|
|
159
|
-
"description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
|
|
160
|
-
"examples": [
|
|
161
|
-
"Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
|
|
162
|
-
"Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
|
|
163
|
-
],
|
|
164
|
-
"flags": {
|
|
165
|
-
"json": {
|
|
166
|
-
"description": "Format output as json.",
|
|
167
|
-
"helpGroup": "GLOBAL",
|
|
168
|
-
"name": "json",
|
|
169
|
-
"allowNo": false,
|
|
170
|
-
"type": "boolean"
|
|
171
|
-
},
|
|
172
|
-
"flags-dir": {
|
|
173
|
-
"helpGroup": "GLOBAL",
|
|
174
|
-
"name": "flags-dir",
|
|
175
|
-
"summary": "Import flag values from a directory.",
|
|
176
|
-
"hasDynamicHelp": false,
|
|
177
|
-
"multiple": false,
|
|
178
|
-
"type": "option"
|
|
179
|
-
},
|
|
180
|
-
"target-org": {
|
|
181
|
-
"char": "o",
|
|
182
|
-
"name": "target-org",
|
|
183
|
-
"noCacheDefault": true,
|
|
184
|
-
"summary": "Username or alias of the target org.",
|
|
185
|
-
"hasDynamicHelp": true,
|
|
186
|
-
"multiple": false,
|
|
187
|
-
"type": "option"
|
|
188
|
-
},
|
|
189
|
-
"name": {
|
|
190
|
-
"char": "n",
|
|
191
|
-
"name": "name",
|
|
192
|
-
"required": true,
|
|
193
|
-
"summary": "Name of the Experience Cloud site to generate.",
|
|
194
|
-
"hasDynamicHelp": false,
|
|
195
|
-
"multiple": false,
|
|
196
|
-
"type": "option"
|
|
197
|
-
},
|
|
198
|
-
"template-name": {
|
|
199
|
-
"char": "t",
|
|
200
|
-
"name": "template-name",
|
|
201
|
-
"required": true,
|
|
202
|
-
"summary": "Template to use when generating the site.",
|
|
203
|
-
"hasDynamicHelp": false,
|
|
204
|
-
"multiple": false,
|
|
205
|
-
"options": [
|
|
206
|
-
"Build Your Own (LWR)"
|
|
207
|
-
],
|
|
208
|
-
"type": "option"
|
|
209
|
-
},
|
|
210
|
-
"url-path-prefix": {
|
|
211
|
-
"char": "p",
|
|
212
|
-
"name": "url-path-prefix",
|
|
213
|
-
"summary": "URL path prefix for the site; must contain only alphanumeric characters.",
|
|
214
|
-
"default": "",
|
|
215
|
-
"hasDynamicHelp": false,
|
|
216
|
-
"multiple": false,
|
|
217
|
-
"type": "option"
|
|
218
|
-
},
|
|
219
|
-
"admin-email": {
|
|
220
|
-
"char": "e",
|
|
221
|
-
"name": "admin-email",
|
|
222
|
-
"summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
|
|
223
|
-
"hasDynamicHelp": false,
|
|
224
|
-
"multiple": false,
|
|
225
|
-
"type": "option"
|
|
226
|
-
},
|
|
227
|
-
"output-dir": {
|
|
228
|
-
"char": "d",
|
|
229
|
-
"description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
|
|
230
|
-
"name": "output-dir",
|
|
231
|
-
"summary": "Directory to generate the site files in.",
|
|
232
|
-
"hasDynamicHelp": false,
|
|
233
|
-
"multiple": false,
|
|
234
|
-
"type": "option"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"hasDynamicHelp": true,
|
|
238
|
-
"hiddenAliases": [],
|
|
239
|
-
"id": "template:generate:digital-experience:site",
|
|
240
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
241
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
242
|
-
"pluginType": "core",
|
|
243
|
-
"state": "preview",
|
|
244
|
-
"strict": true,
|
|
245
|
-
"summary": "Generate an Experience Cloud site.",
|
|
246
|
-
"enableJsonFlag": true,
|
|
247
|
-
"isESM": true,
|
|
248
|
-
"relativePath": [
|
|
249
|
-
"lib",
|
|
250
|
-
"commands",
|
|
251
|
-
"template",
|
|
252
|
-
"generate",
|
|
253
|
-
"digital-experience",
|
|
254
|
-
"site.js"
|
|
255
|
-
],
|
|
256
|
-
"aliasPermutations": [],
|
|
257
|
-
"permutations": [
|
|
258
|
-
"template:generate:digital-experience:site",
|
|
259
|
-
"generate:template:digital-experience:site",
|
|
260
|
-
"generate:digital-experience:template:site",
|
|
261
|
-
"generate:digital-experience:site:template",
|
|
262
|
-
"template:digital-experience:generate:site",
|
|
263
|
-
"digital-experience:template:generate:site",
|
|
264
|
-
"digital-experience:generate:template:site",
|
|
265
|
-
"digital-experience:generate:site:template",
|
|
266
|
-
"template:digital-experience:site:generate",
|
|
267
|
-
"digital-experience:template:site:generate",
|
|
268
|
-
"digital-experience:site:template:generate",
|
|
269
|
-
"digital-experience:site:generate:template",
|
|
270
|
-
"template:generate:site:digital-experience",
|
|
271
|
-
"generate:template:site:digital-experience",
|
|
272
|
-
"generate:site:template:digital-experience",
|
|
273
|
-
"generate:site:digital-experience:template",
|
|
274
|
-
"template:site:generate:digital-experience",
|
|
275
|
-
"site:template:generate:digital-experience",
|
|
276
|
-
"site:generate:template:digital-experience",
|
|
277
|
-
"site:generate:digital-experience:template",
|
|
278
|
-
"template:site:digital-experience:generate",
|
|
279
|
-
"site:template:digital-experience:generate",
|
|
280
|
-
"site:digital-experience:template:generate",
|
|
281
|
-
"site:digital-experience:generate:template"
|
|
282
|
-
]
|
|
283
|
-
},
|
|
284
156
|
"template:generate:apex:class": {
|
|
285
157
|
"aliases": [
|
|
286
158
|
"force:apex:class:create",
|
|
@@ -767,37 +639,341 @@
|
|
|
767
639
|
"multiple": false,
|
|
768
640
|
"type": "option"
|
|
769
641
|
},
|
|
770
|
-
"primary-field": {
|
|
771
|
-
"name": "primary-field",
|
|
772
|
-
"summary": "Primary field for the dynamic highlights header; typically 'Name'. Used only with RecordPage.",
|
|
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
|
+
},
|
|
673
|
+
"loglevel": {
|
|
674
|
+
"deprecated": {
|
|
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."
|
|
676
|
+
},
|
|
677
|
+
"hidden": true,
|
|
678
|
+
"name": "loglevel",
|
|
679
|
+
"hasDynamicHelp": false,
|
|
680
|
+
"multiple": false,
|
|
681
|
+
"type": "option"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"hasDynamicHelp": false,
|
|
685
|
+
"hiddenAliases": [],
|
|
686
|
+
"id": "template:generate:flexipage",
|
|
687
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
688
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
689
|
+
"pluginType": "core",
|
|
690
|
+
"state": "beta",
|
|
691
|
+
"strict": true,
|
|
692
|
+
"summary": "Generate a FlexiPage, also known as a Lightning page.",
|
|
693
|
+
"enableJsonFlag": true,
|
|
694
|
+
"MAX_SECONDARY_FIELDS": 11,
|
|
695
|
+
"isESM": true,
|
|
696
|
+
"relativePath": [
|
|
697
|
+
"lib",
|
|
698
|
+
"commands",
|
|
699
|
+
"template",
|
|
700
|
+
"generate",
|
|
701
|
+
"flexipage",
|
|
702
|
+
"index.js"
|
|
703
|
+
],
|
|
704
|
+
"aliasPermutations": [],
|
|
705
|
+
"permutations": [
|
|
706
|
+
"template:generate:flexipage",
|
|
707
|
+
"generate:template:flexipage",
|
|
708
|
+
"generate:flexipage:template",
|
|
709
|
+
"template:flexipage:generate",
|
|
710
|
+
"flexipage:template:generate",
|
|
711
|
+
"flexipage:generate:template"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
"template:generate:digital-experience:site": {
|
|
715
|
+
"aliases": [],
|
|
716
|
+
"args": {},
|
|
717
|
+
"description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
|
|
718
|
+
"examples": [
|
|
719
|
+
"Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
|
|
720
|
+
"Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
|
|
721
|
+
],
|
|
722
|
+
"flags": {
|
|
723
|
+
"json": {
|
|
724
|
+
"description": "Format output as json.",
|
|
725
|
+
"helpGroup": "GLOBAL",
|
|
726
|
+
"name": "json",
|
|
727
|
+
"allowNo": false,
|
|
728
|
+
"type": "boolean"
|
|
729
|
+
},
|
|
730
|
+
"flags-dir": {
|
|
731
|
+
"helpGroup": "GLOBAL",
|
|
732
|
+
"name": "flags-dir",
|
|
733
|
+
"summary": "Import flag values from a directory.",
|
|
734
|
+
"hasDynamicHelp": false,
|
|
735
|
+
"multiple": false,
|
|
736
|
+
"type": "option"
|
|
737
|
+
},
|
|
738
|
+
"target-org": {
|
|
739
|
+
"char": "o",
|
|
740
|
+
"name": "target-org",
|
|
741
|
+
"noCacheDefault": true,
|
|
742
|
+
"summary": "Username or alias of the target org.",
|
|
743
|
+
"hasDynamicHelp": true,
|
|
744
|
+
"multiple": false,
|
|
745
|
+
"type": "option"
|
|
746
|
+
},
|
|
747
|
+
"name": {
|
|
748
|
+
"char": "n",
|
|
749
|
+
"name": "name",
|
|
750
|
+
"required": true,
|
|
751
|
+
"summary": "Name of the Experience Cloud site to generate.",
|
|
752
|
+
"hasDynamicHelp": false,
|
|
753
|
+
"multiple": false,
|
|
754
|
+
"type": "option"
|
|
755
|
+
},
|
|
756
|
+
"template-name": {
|
|
757
|
+
"char": "t",
|
|
758
|
+
"name": "template-name",
|
|
759
|
+
"required": true,
|
|
760
|
+
"summary": "Template to use when generating the site.",
|
|
761
|
+
"hasDynamicHelp": false,
|
|
762
|
+
"multiple": false,
|
|
763
|
+
"options": [
|
|
764
|
+
"Build Your Own (LWR)"
|
|
765
|
+
],
|
|
766
|
+
"type": "option"
|
|
767
|
+
},
|
|
768
|
+
"url-path-prefix": {
|
|
769
|
+
"char": "p",
|
|
770
|
+
"name": "url-path-prefix",
|
|
771
|
+
"summary": "URL path prefix for the site; must contain only alphanumeric characters.",
|
|
772
|
+
"default": "",
|
|
773
|
+
"hasDynamicHelp": false,
|
|
774
|
+
"multiple": false,
|
|
775
|
+
"type": "option"
|
|
776
|
+
},
|
|
777
|
+
"admin-email": {
|
|
778
|
+
"char": "e",
|
|
779
|
+
"name": "admin-email",
|
|
780
|
+
"summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
|
|
781
|
+
"hasDynamicHelp": false,
|
|
782
|
+
"multiple": false,
|
|
783
|
+
"type": "option"
|
|
784
|
+
},
|
|
785
|
+
"output-dir": {
|
|
786
|
+
"char": "d",
|
|
787
|
+
"description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
|
|
788
|
+
"name": "output-dir",
|
|
789
|
+
"summary": "Directory to generate the site files in.",
|
|
790
|
+
"hasDynamicHelp": false,
|
|
791
|
+
"multiple": false,
|
|
792
|
+
"type": "option"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
"hasDynamicHelp": true,
|
|
796
|
+
"hiddenAliases": [],
|
|
797
|
+
"id": "template:generate:digital-experience:site",
|
|
798
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
799
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
800
|
+
"pluginType": "core",
|
|
801
|
+
"state": "preview",
|
|
802
|
+
"strict": true,
|
|
803
|
+
"summary": "Generate an Experience Cloud site.",
|
|
804
|
+
"enableJsonFlag": true,
|
|
805
|
+
"isESM": true,
|
|
806
|
+
"relativePath": [
|
|
807
|
+
"lib",
|
|
808
|
+
"commands",
|
|
809
|
+
"template",
|
|
810
|
+
"generate",
|
|
811
|
+
"digital-experience",
|
|
812
|
+
"site.js"
|
|
813
|
+
],
|
|
814
|
+
"aliasPermutations": [],
|
|
815
|
+
"permutations": [
|
|
816
|
+
"template:generate:digital-experience:site",
|
|
817
|
+
"generate:template:digital-experience:site",
|
|
818
|
+
"generate:digital-experience:template:site",
|
|
819
|
+
"generate:digital-experience:site:template",
|
|
820
|
+
"template:digital-experience:generate:site",
|
|
821
|
+
"digital-experience:template:generate:site",
|
|
822
|
+
"digital-experience:generate:template:site",
|
|
823
|
+
"digital-experience:generate:site:template",
|
|
824
|
+
"template:digital-experience:site:generate",
|
|
825
|
+
"digital-experience:template:site:generate",
|
|
826
|
+
"digital-experience:site:template:generate",
|
|
827
|
+
"digital-experience:site:generate:template",
|
|
828
|
+
"template:generate:site:digital-experience",
|
|
829
|
+
"generate:template:site:digital-experience",
|
|
830
|
+
"generate:site:template:digital-experience",
|
|
831
|
+
"generate:site:digital-experience:template",
|
|
832
|
+
"template:site:generate:digital-experience",
|
|
833
|
+
"site:template:generate:digital-experience",
|
|
834
|
+
"site:generate:template:digital-experience",
|
|
835
|
+
"site:generate:digital-experience:template",
|
|
836
|
+
"template:site:digital-experience:generate",
|
|
837
|
+
"site:template:digital-experience:generate",
|
|
838
|
+
"site:digital-experience:template:generate",
|
|
839
|
+
"site:digital-experience:generate:template"
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
"template:generate:project": {
|
|
843
|
+
"aliases": [
|
|
844
|
+
"force:project:create",
|
|
845
|
+
"project:generate"
|
|
846
|
+
],
|
|
847
|
+
"args": {},
|
|
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\".",
|
|
850
|
+
"examples": [
|
|
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"
|
|
856
|
+
],
|
|
857
|
+
"flags": {
|
|
858
|
+
"json": {
|
|
859
|
+
"description": "Format output as json.",
|
|
860
|
+
"helpGroup": "GLOBAL",
|
|
861
|
+
"name": "json",
|
|
862
|
+
"allowNo": false,
|
|
863
|
+
"type": "boolean"
|
|
864
|
+
},
|
|
865
|
+
"flags-dir": {
|
|
866
|
+
"helpGroup": "GLOBAL",
|
|
867
|
+
"name": "flags-dir",
|
|
868
|
+
"summary": "Import flag values from a directory.",
|
|
869
|
+
"hasDynamicHelp": false,
|
|
870
|
+
"multiple": false,
|
|
871
|
+
"type": "option"
|
|
872
|
+
},
|
|
873
|
+
"name": {
|
|
874
|
+
"aliases": [
|
|
875
|
+
"projectname"
|
|
876
|
+
],
|
|
877
|
+
"char": "n",
|
|
878
|
+
"deprecateAliases": true,
|
|
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.",
|
|
880
|
+
"name": "name",
|
|
881
|
+
"required": true,
|
|
882
|
+
"summary": "Name of the generated project.",
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"template": {
|
|
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.",
|
|
890
|
+
"name": "template",
|
|
891
|
+
"summary": "Template to use for project creation.",
|
|
892
|
+
"default": "standard",
|
|
893
|
+
"hasDynamicHelp": false,
|
|
894
|
+
"multiple": false,
|
|
895
|
+
"options": [
|
|
896
|
+
"standard",
|
|
897
|
+
"empty",
|
|
898
|
+
"analytics",
|
|
899
|
+
"reactinternalapp",
|
|
900
|
+
"reactexternalapp",
|
|
901
|
+
"agent"
|
|
902
|
+
],
|
|
903
|
+
"type": "option"
|
|
904
|
+
},
|
|
905
|
+
"output-dir": {
|
|
906
|
+
"aliases": [
|
|
907
|
+
"outputdir"
|
|
908
|
+
],
|
|
909
|
+
"char": "d",
|
|
910
|
+
"deprecateAliases": true,
|
|
911
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
912
|
+
"name": "output-dir",
|
|
913
|
+
"summary": "Directory for saving the created files.",
|
|
914
|
+
"default": ".",
|
|
915
|
+
"hasDynamicHelp": false,
|
|
916
|
+
"multiple": false,
|
|
917
|
+
"type": "option"
|
|
918
|
+
},
|
|
919
|
+
"namespace": {
|
|
920
|
+
"char": "s",
|
|
921
|
+
"name": "namespace",
|
|
922
|
+
"summary": "Namespace associated with this project and any connected scratch orgs.",
|
|
923
|
+
"default": "",
|
|
924
|
+
"hasDynamicHelp": false,
|
|
925
|
+
"multiple": false,
|
|
926
|
+
"type": "option"
|
|
927
|
+
},
|
|
928
|
+
"default-package-dir": {
|
|
929
|
+
"aliases": [
|
|
930
|
+
"defaultpackagedir"
|
|
931
|
+
],
|
|
932
|
+
"char": "p",
|
|
933
|
+
"deprecateAliases": true,
|
|
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",
|
|
938
|
+
"hasDynamicHelp": false,
|
|
939
|
+
"multiple": false,
|
|
940
|
+
"type": "option"
|
|
941
|
+
},
|
|
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"
|
|
949
|
+
},
|
|
950
|
+
"login-url": {
|
|
951
|
+
"aliases": [
|
|
952
|
+
"loginurl"
|
|
953
|
+
],
|
|
954
|
+
"char": "l",
|
|
955
|
+
"deprecateAliases": true,
|
|
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",
|
|
961
|
+
"hasDynamicHelp": false,
|
|
962
|
+
"multiple": false,
|
|
963
|
+
"type": "option"
|
|
964
|
+
},
|
|
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:
|
|
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
|
|
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
|
-
"
|
|
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:
|
|
835
|
-
"generate:template:
|
|
836
|
-
"generate:
|
|
837
|
-
"template:
|
|
838
|
-
"
|
|
839
|
-
"
|
|
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",
|
|
@@ -2043,9 +2056,7 @@
|
|
|
2043
2056
|
]
|
|
2044
2057
|
},
|
|
2045
2058
|
"template:generate:ui-bundle": {
|
|
2046
|
-
"aliases": [
|
|
2047
|
-
"ui-bundle:generate"
|
|
2048
|
-
],
|
|
2059
|
+
"aliases": [],
|
|
2049
2060
|
"args": {},
|
|
2050
2061
|
"description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a speciic UI framework, such as React. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
|
|
2051
2062
|
"examples": [
|
|
@@ -2137,10 +2148,7 @@
|
|
|
2137
2148
|
"ui-bundle",
|
|
2138
2149
|
"index.js"
|
|
2139
2150
|
],
|
|
2140
|
-
"aliasPermutations": [
|
|
2141
|
-
"ui-bundle:generate",
|
|
2142
|
-
"generate:ui-bundle"
|
|
2143
|
-
],
|
|
2151
|
+
"aliasPermutations": [],
|
|
2144
2152
|
"permutations": [
|
|
2145
2153
|
"template:generate:ui-bundle",
|
|
2146
2154
|
"generate:template:ui-bundle",
|
|
@@ -2506,5 +2514,5 @@
|
|
|
2506
2514
|
]
|
|
2507
2515
|
}
|
|
2508
2516
|
},
|
|
2509
|
-
"version": "56.
|
|
2517
|
+
"version": "56.14.0"
|
|
2510
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.
|
|
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.
|
|
12
|
+
"@salesforce/templates": "^66.7.6"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@oclif/plugin-command-snapshot": "^5.3.13",
|
|
@@ -90,9 +90,6 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
},
|
|
94
|
-
"ui-bundle": {
|
|
95
|
-
"description": "Work with UI bundles."
|
|
96
93
|
}
|
|
97
94
|
},
|
|
98
95
|
"flexibleTaxonomy": true,
|
|
@@ -252,7 +249,7 @@
|
|
|
252
249
|
"exports": "./lib/index.js",
|
|
253
250
|
"type": "module",
|
|
254
251
|
"sfdx": {
|
|
255
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.
|
|
256
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.
|
|
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"
|
|
257
254
|
}
|
|
258
255
|
}
|