@salesforce/plugin-templates 57.4.12 → 57.5.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 +100 -16
- package/lib/commands/template/generate/lightning-out/index.d.ts +0 -2
- package/lib/commands/template/generate/lightning-out/index.js +12 -9
- package/lib/commands/template/generate/lightning-out/index.js.map +1 -1
- package/messages/lightningOut.md +22 -10
- package/oclif.manifest.json +248 -248
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -124,6 +124,7 @@ Congrats, you are debugging!
|
|
|
124
124
|
- [`sf template generate apex trigger`](#sf-template-generate-apex-trigger)
|
|
125
125
|
- [`sf template generate digital-experience site`](#sf-template-generate-digital-experience-site)
|
|
126
126
|
- [`sf template generate flexipage`](#sf-template-generate-flexipage)
|
|
127
|
+
- [`sf template generate lightning-out`](#sf-template-generate-lightning-out)
|
|
127
128
|
- [`sf template generate lightning app`](#sf-template-generate-lightning-app)
|
|
128
129
|
- [`sf template generate lightning component`](#sf-template-generate-lightning-component)
|
|
129
130
|
- [`sf template generate lightning event`](#sf-template-generate-lightning-event)
|
|
@@ -178,7 +179,7 @@ FLAG DESCRIPTIONS
|
|
|
178
179
|
directory.
|
|
179
180
|
```
|
|
180
181
|
|
|
181
|
-
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
182
|
+
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/analytics/template.ts)_
|
|
182
183
|
|
|
183
184
|
## `sf template generate apex class`
|
|
184
185
|
|
|
@@ -240,7 +241,7 @@ FLAG DESCRIPTIONS
|
|
|
240
241
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
241
242
|
```
|
|
242
243
|
|
|
243
|
-
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
244
|
+
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/apex/class.ts)_
|
|
244
245
|
|
|
245
246
|
## `sf template generate apex trigger`
|
|
246
247
|
|
|
@@ -310,7 +311,7 @@ FLAG DESCRIPTIONS
|
|
|
310
311
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
311
312
|
```
|
|
312
313
|
|
|
313
|
-
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
314
|
+
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/apex/trigger.ts)_
|
|
314
315
|
|
|
315
316
|
## `sf template generate digital-experience site`
|
|
316
317
|
|
|
@@ -364,7 +365,7 @@ FLAG DESCRIPTIONS
|
|
|
364
365
|
project, defaults to the current directory.
|
|
365
366
|
```
|
|
366
367
|
|
|
367
|
-
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
368
|
+
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/digital-experience/site.ts)_
|
|
368
369
|
|
|
369
370
|
## `sf template generate flexipage`
|
|
370
371
|
|
|
@@ -446,7 +447,90 @@ FLAG DESCRIPTIONS
|
|
|
446
447
|
'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
|
|
447
448
|
```
|
|
448
449
|
|
|
449
|
-
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
450
|
+
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/flexipage/index.ts)_
|
|
451
|
+
|
|
452
|
+
## `sf template generate lightning-out`
|
|
453
|
+
|
|
454
|
+
Generate the required metadata to scaffold a Lightning Out 2.0 app.
|
|
455
|
+
|
|
456
|
+
```
|
|
457
|
+
USAGE
|
|
458
|
+
$ sf template generate lightning-out [--json] [--flags-dir <value>] [--app-name <value>] [--eca-name <value>] [--runtime
|
|
459
|
+
LWR_CORE|CLWR] [--host-domains <value>...] [--components <value>...] [--eca-contact-email <value>]
|
|
460
|
+
[--eca-callback-url <value>] [--definition-file <value>] [-d <value>]
|
|
461
|
+
|
|
462
|
+
FLAGS
|
|
463
|
+
-d, --output-dir=<value> [default: .] Directory for saving the created files.
|
|
464
|
+
--app-name=<value> Developer name of the new Lightning Out 2.0 app.
|
|
465
|
+
--components=<value>... Name of a Lightning web component exposed by the app. Repeat the flag to specify more
|
|
466
|
+
than one. Replaces, rather than merges with, any components in the --definition-file.
|
|
467
|
+
--definition-file=<value> Path to a JSON file describing the Lightning Out 2.0 app. Individual flags, when
|
|
468
|
+
supplied, override the corresponding value in this file.
|
|
469
|
+
--eca-callback-url=<value> OAuth callback URL for the External Client Application.
|
|
470
|
+
--eca-contact-email=<value> Contact email for the External Client Application.
|
|
471
|
+
--eca-name=<value> Developer name of the External Client Application associated with the app.
|
|
472
|
+
--host-domains=<value>... HTTP or HTTPS origin of an external host page that embeds the app. Repeat the flag to
|
|
473
|
+
specify more than one. Replaces, rather than merges with, any hostDomains in the
|
|
474
|
+
--definition-file. For CLWR apps, host domains are used only for CORS, which
|
|
475
|
+
authenticated users need. Set up framing for the site in Experience Builder.
|
|
476
|
+
--runtime=<option> Runtime that serves the app.
|
|
477
|
+
<options: LWR_CORE|CLWR>
|
|
478
|
+
|
|
479
|
+
GLOBAL FLAGS
|
|
480
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
481
|
+
--json Format output as json.
|
|
482
|
+
|
|
483
|
+
DESCRIPTION
|
|
484
|
+
Generate the required metadata to scaffold a Lightning Out 2.0 app.
|
|
485
|
+
|
|
486
|
+
Lightning Out 2.0 lets you embed custom Lightning web components (LWCs) into your external, non-Salesforce apps.
|
|
487
|
+
|
|
488
|
+
This command gets you started by generating the seven metadata artifact types that a Lightning Out 2.0 app requires
|
|
489
|
+
into your Salesforce DX project: LightningOutApp, MyDomain and Security settings, one CorsWhitelistOrigin per host
|
|
490
|
+
domain, and the three External Client Application OAuth components (ExternalClientApplication,
|
|
491
|
+
ExtlClntAppGlobalOauthSettings, ExtlClntAppOauthSettings). The command only generates files. It doesn't deploy any
|
|
492
|
+
metadata to an org.
|
|
493
|
+
|
|
494
|
+
Inputs can come from a --definition-file JSON, individual flags, or both. Flag values take precedence over the file on
|
|
495
|
+
a per-key basis. The command validates the types of definition-file fields; the underlying generator performs the
|
|
496
|
+
remaining structural validation, such as required fields and formats.
|
|
497
|
+
|
|
498
|
+
EXAMPLES
|
|
499
|
+
Generate a Lightning Out 2.0 app using individual flags to specify the values:
|
|
500
|
+
|
|
501
|
+
$ sf template generate lightning-out --app-name MyLoApp --runtime LWR_CORE --host-domains https://example.com \
|
|
502
|
+
--eca-name MyLoAppEca --eca-contact-email dev@example.com --eca-callback-url https://example.com/cb
|
|
503
|
+
|
|
504
|
+
Generate an app using the values in a JSON definition file called lo-def.json:
|
|
505
|
+
|
|
506
|
+
$ sf template generate lightning-out --definition-file lo-def.json
|
|
507
|
+
|
|
508
|
+
Generate the app into a specific directory:
|
|
509
|
+
|
|
510
|
+
$ sf template generate lightning-out --definition-file lo-def.json --output-dir force-app/main/default
|
|
511
|
+
|
|
512
|
+
Generate a CLWR app for an Experience Cloud site using a definition file:
|
|
513
|
+
|
|
514
|
+
$ sf template generate lightning-out --runtime CLWR --definition-file lo-def.json
|
|
515
|
+
|
|
516
|
+
Generate the app using most of the values from a definition file, but the --host-domains value overrides its
|
|
517
|
+
equivalent in the file:
|
|
518
|
+
|
|
519
|
+
$ sf template generate lightning-out --definition-file lo-def.json --host-domains https://staging.example.com
|
|
520
|
+
|
|
521
|
+
FLAG DESCRIPTIONS
|
|
522
|
+
-d, --output-dir=<value> Directory for saving the created files.
|
|
523
|
+
|
|
524
|
+
The location can be an absolute path or relative to the current working directory. The default is the current
|
|
525
|
+
directory.
|
|
526
|
+
|
|
527
|
+
--runtime=LWR_CORE|CLWR Runtime that serves the app.
|
|
528
|
+
|
|
529
|
+
LWR_CORE serves the app from your Salesforce org to authenticated users. CLWR serves it from an Experience Cloud
|
|
530
|
+
site to guest and authenticated users. After you deploy a CLWR app, link it to your site in Setup.
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
_See code: [src/commands/template/generate/lightning-out/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning-out/index.ts)_
|
|
450
534
|
|
|
451
535
|
## `sf template generate lightning app`
|
|
452
536
|
|
|
@@ -504,7 +588,7 @@ FLAG DESCRIPTIONS
|
|
|
504
588
|
field in the DX project's "sfdx-project.json" file.
|
|
505
589
|
```
|
|
506
590
|
|
|
507
|
-
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
591
|
+
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning/app.ts)_
|
|
508
592
|
|
|
509
593
|
## `sf template generate lightning component`
|
|
510
594
|
|
|
@@ -581,7 +665,7 @@ FLAG DESCRIPTIONS
|
|
|
581
665
|
field in the DX project's "sfdx-project.json" file.
|
|
582
666
|
```
|
|
583
667
|
|
|
584
|
-
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
668
|
+
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning/component.ts)_
|
|
585
669
|
|
|
586
670
|
## `sf template generate lightning event`
|
|
587
671
|
|
|
@@ -639,7 +723,7 @@ FLAG DESCRIPTIONS
|
|
|
639
723
|
field in the DX project's "sfdx-project.json" file.
|
|
640
724
|
```
|
|
641
725
|
|
|
642
|
-
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
726
|
+
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning/event.ts)_
|
|
643
727
|
|
|
644
728
|
## `sf template generate lightning interface`
|
|
645
729
|
|
|
@@ -697,7 +781,7 @@ FLAG DESCRIPTIONS
|
|
|
697
781
|
field in the DX project's "sfdx-project.json" file.
|
|
698
782
|
```
|
|
699
783
|
|
|
700
|
-
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
784
|
+
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning/interface.ts)_
|
|
701
785
|
|
|
702
786
|
## `sf template generate lightning test`
|
|
703
787
|
|
|
@@ -755,7 +839,7 @@ FLAG DESCRIPTIONS
|
|
|
755
839
|
field in the DX project's "sfdx-project.json" file.
|
|
756
840
|
```
|
|
757
841
|
|
|
758
|
-
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
842
|
+
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/lightning/test.ts)_
|
|
759
843
|
|
|
760
844
|
## `sf template generate project`
|
|
761
845
|
|
|
@@ -887,7 +971,7 @@ FLAG DESCRIPTIONS
|
|
|
887
971
|
server-side type stripping.
|
|
888
972
|
```
|
|
889
973
|
|
|
890
|
-
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
974
|
+
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/project/index.ts)_
|
|
891
975
|
|
|
892
976
|
## `sf template generate static-resource`
|
|
893
977
|
|
|
@@ -950,7 +1034,7 @@ FLAG DESCRIPTIONS
|
|
|
950
1034
|
etc.
|
|
951
1035
|
```
|
|
952
1036
|
|
|
953
|
-
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
1037
|
+
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/static-resource/index.ts)_
|
|
954
1038
|
|
|
955
1039
|
## `sf template generate ui-bundle`
|
|
956
1040
|
|
|
@@ -1045,7 +1129,7 @@ FLAG DESCRIPTIONS
|
|
|
1045
1129
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1046
1130
|
```
|
|
1047
1131
|
|
|
1048
|
-
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
1132
|
+
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/ui-bundle/index.ts)_
|
|
1049
1133
|
|
|
1050
1134
|
## `sf template generate ui-embedding`
|
|
1051
1135
|
|
|
@@ -1124,7 +1208,7 @@ FLAG DESCRIPTIONS
|
|
|
1124
1208
|
(announced by screen readers).
|
|
1125
1209
|
```
|
|
1126
1210
|
|
|
1127
|
-
_See code: [src/commands/template/generate/ui-embedding/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
1211
|
+
_See code: [src/commands/template/generate/ui-embedding/index.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/ui-embedding/index.ts)_
|
|
1128
1212
|
|
|
1129
1213
|
## `sf template generate visualforce component`
|
|
1130
1214
|
|
|
@@ -1181,7 +1265,7 @@ FLAG DESCRIPTIONS
|
|
|
1181
1265
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1182
1266
|
```
|
|
1183
1267
|
|
|
1184
|
-
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
1268
|
+
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/visualforce/component.ts)_
|
|
1185
1269
|
|
|
1186
1270
|
## `sf template generate visualforce page`
|
|
1187
1271
|
|
|
@@ -1232,6 +1316,6 @@ FLAG DESCRIPTIONS
|
|
|
1232
1316
|
The name can be up to 40 characters and must start with a letter.
|
|
1233
1317
|
```
|
|
1234
1318
|
|
|
1235
|
-
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.
|
|
1319
|
+
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/57.5.0/src/commands/template/generate/visualforce/page.ts)_
|
|
1236
1320
|
|
|
1237
1321
|
<!-- commandsstop -->
|
|
@@ -41,8 +41,6 @@ export default class LightningOut extends SfCommand<CreateOutput> {
|
|
|
41
41
|
static readonly summary: string;
|
|
42
42
|
static readonly description: string;
|
|
43
43
|
static readonly examples: string[];
|
|
44
|
-
static readonly state = "beta";
|
|
45
|
-
static readonly hidden = true;
|
|
46
44
|
static readonly flags: {
|
|
47
45
|
'app-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
48
46
|
'eca-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -124,14 +124,13 @@ export default class LightningOut extends SfCommand {
|
|
|
124
124
|
static summary = messages.getMessage('summary');
|
|
125
125
|
static description = messages.getMessage('description');
|
|
126
126
|
static examples = messages.getMessages('examples');
|
|
127
|
-
static state = 'beta';
|
|
128
|
-
static hidden = true;
|
|
129
127
|
static flags = {
|
|
130
128
|
'app-name': Flags.string({ summary: messages.getMessage('flags.app-name.summary'), required: false }),
|
|
131
129
|
'eca-name': Flags.string({ summary: messages.getMessage('flags.eca-name.summary'), required: false }),
|
|
132
130
|
runtime: Flags.option({
|
|
133
131
|
options: ['LWR_CORE', 'CLWR'],
|
|
134
132
|
summary: messages.getMessage('flags.runtime.summary'),
|
|
133
|
+
description: messages.getMessage('flags.runtime.description'),
|
|
135
134
|
})(),
|
|
136
135
|
'host-domains': Flags.string({ summary: messages.getMessage('flags.host-domains.summary'), multiple: true }),
|
|
137
136
|
components: Flags.string({ summary: messages.getMessage('flags.components.summary'), multiple: true }),
|
|
@@ -159,20 +158,24 @@ export default class LightningOut extends SfCommand {
|
|
|
159
158
|
if (belowFloor) {
|
|
160
159
|
this.warn(messages.getMessage('warning.source-api-version', [String(projApi)]));
|
|
161
160
|
}
|
|
162
|
-
//
|
|
161
|
+
// The org-wide settings notice is a warning, so it also appears in the --json `warnings` array.
|
|
162
|
+
this.warn(messages.getMessage('warning.org-settings'));
|
|
163
|
+
// Success guidance (log/info are suppressed automatically under --json).
|
|
163
164
|
// Only pin --api-version to the 68.0 deploy floor when the project is below it; otherwise omit
|
|
164
165
|
// the optional flag so the user's own (>= floor) project default applies rather than being downgraded.
|
|
165
166
|
const outputDir = opts.outputdir ?? '.';
|
|
166
167
|
const apiVersionSuffix = belowFloor ? ' --api-version 68.0' : '';
|
|
167
|
-
this.log(messages.getMessage('success.next-step', [outputDir, shellQuoteArg(outputDir), apiVersionSuffix]));
|
|
168
|
-
this.info(messages.getMessage('success.app-id'));
|
|
169
|
-
this.info(messages.getMessage('success.dont-delete'));
|
|
170
|
-
this.info(messages.getMessage('success.eca-overwrite', [opts.eca.name ?? '']));
|
|
171
168
|
this.info(messages.getMessage('success.components-exist'));
|
|
172
|
-
|
|
169
|
+
this.log(messages.getMessage('success.next-step', [outputDir, shellQuoteArg(outputDir), apiVersionSuffix]));
|
|
170
|
+
// CLWR finds the app through the site link; app-id only applies to LWR_CORE.
|
|
173
171
|
if (opts.runtime === 'CLWR') {
|
|
174
|
-
this.info(messages.getMessage('success.
|
|
172
|
+
this.info(messages.getMessage('success.clwr-site'));
|
|
175
173
|
}
|
|
174
|
+
else {
|
|
175
|
+
this.info(messages.getMessage('success.app-id'));
|
|
176
|
+
}
|
|
177
|
+
this.info(messages.getMessage('success.dont-delete'));
|
|
178
|
+
this.info(messages.getMessage('success.eca-overwrite', [opts.eca.name ?? '']));
|
|
176
179
|
return result; // --json returns the full CreateOutput (created[])
|
|
177
180
|
}
|
|
178
181
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/lightning-out/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAqC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,cAAc,CAAC,CAAC;AAcvF,kGAAkG;AAClG,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,QAAQ,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,IAAI,EAAG,CAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IACzF,CAAC;IACD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,MAAM,QAAQ,CAAC,WAAW,CAAC,k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,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACnD,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAE/E,OAAO,MAAM,CAAC,CAAC,mDAAmD;IACpE,CAAC"}
|
package/messages/lightningOut.md
CHANGED
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
<%= config.bin %> <%= command.id %> --definition-file lo-def.json --output-dir force-app/main/default
|
|
14
14
|
|
|
15
|
+
- Generate a CLWR app for an Experience Cloud site using a definition file:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --runtime CLWR --definition-file lo-def.json
|
|
18
|
+
|
|
15
19
|
- Generate the app using most of the values from a definition file, but the --host-domains value overrides its equivalent in the file:
|
|
16
20
|
|
|
17
21
|
<%= config.bin %> <%= command.id %> --definition-file lo-def.json --host-domains https://staging.example.com
|
|
@@ -24,9 +28,9 @@ Generate the required metadata to scaffold a Lightning Out 2.0 app.
|
|
|
24
28
|
|
|
25
29
|
Lightning Out 2.0 lets you embed custom Lightning web components (LWCs) into your external, non-Salesforce apps.
|
|
26
30
|
|
|
27
|
-
This command gets you started by generating the seven metadata artifact types that a Lightning Out 2.0 app requires into your Salesforce DX project: LightningOutApp, MyDomain and Security settings, one CorsWhitelistOrigin per host domain, and the three External Client Application OAuth components (ExternalClientApplication, ExtlClntAppGlobalOauthSettings, ExtlClntAppOauthSettings). The command
|
|
31
|
+
This command gets you started by generating the seven metadata artifact types that a Lightning Out 2.0 app requires into your Salesforce DX project: LightningOutApp, MyDomain and Security settings, one CorsWhitelistOrigin per host domain, and the three External Client Application OAuth components (ExternalClientApplication, ExtlClntAppGlobalOauthSettings, ExtlClntAppOauthSettings). The command only generates files. It doesn't deploy any metadata to an org.
|
|
28
32
|
|
|
29
|
-
Inputs
|
|
33
|
+
Inputs can come from a --definition-file JSON, individual flags, or both. Flag values take precedence over the file on a per-key basis. The command validates the types of definition-file fields; the underlying generator performs the remaining structural validation, such as required fields and formats.
|
|
30
34
|
|
|
31
35
|
# flags.app-name.summary
|
|
32
36
|
|
|
@@ -38,11 +42,15 @@ Developer name of the External Client Application associated with the app.
|
|
|
38
42
|
|
|
39
43
|
# flags.runtime.summary
|
|
40
44
|
|
|
41
|
-
Runtime
|
|
45
|
+
Runtime that serves the app.
|
|
46
|
+
|
|
47
|
+
# flags.runtime.description
|
|
48
|
+
|
|
49
|
+
LWR_CORE serves the app from your Salesforce org to authenticated users. CLWR serves it from an Experience Cloud site to guest and authenticated users. After you deploy a CLWR app, link it to your site in Setup.
|
|
42
50
|
|
|
43
51
|
# flags.host-domains.summary
|
|
44
52
|
|
|
45
|
-
HTTP or HTTPS origin of an external host page that embeds the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any hostDomains in the --definition-file.
|
|
53
|
+
HTTP or HTTPS origin of an external host page that embeds the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any hostDomains in the --definition-file. For CLWR apps, host domains are used only for CORS, which authenticated users need. Set up framing for the site in Experience Builder.
|
|
46
54
|
|
|
47
55
|
# flags.components.summary
|
|
48
56
|
|
|
@@ -80,26 +88,30 @@ Ignoring unrecognized key "%s" in --definition-file.
|
|
|
80
88
|
|
|
81
89
|
Your local project's sourceApiVersion (%s) is below 68.0, the minimum API version this scaffold supports for deployment. Set sourceApiVersion to 68.0 or later in sfdx-project.json, or pass --api-version 68.0 or later when you deploy.
|
|
82
90
|
|
|
91
|
+
# warning.org-settings
|
|
92
|
+
|
|
93
|
+
Deploying the generated MyDomain and Security settings changes two org-wide settings: isFirstPartyCookieUseRequired is set to false (Require first-party use of Salesforce cookies) and enableOauthCorsPolicy is set to true (Enable CORS for OAuth endpoints). These settings affect every app in the org, so review them before you deploy to a production org.
|
|
94
|
+
|
|
83
95
|
# success.next-step
|
|
84
96
|
|
|
85
97
|
Scaffold generated in %s. Deploy it with: sf project deploy start --source-dir %s%s
|
|
86
98
|
|
|
87
99
|
# success.app-id
|
|
88
100
|
|
|
89
|
-
After deploying,
|
|
101
|
+
After deploying, from Setup, in the Quick Find box, enter Lightning Out, and then select "Lightning Out 2.0 App Manager". Copy the App ID and set it as the "app-id" attribute on the <lightning-out-application> tag on your host page. Without it, your host domains aren't added to the CSP frame-ancestors directive, and the browser blocks the app from loading on your host page.
|
|
90
102
|
|
|
91
103
|
# success.dont-delete
|
|
92
104
|
|
|
93
|
-
Don't delete the generated
|
|
105
|
+
Don't delete the generated External Client Application after deploying. Lightning Out 2.0 uses it for OAuth at runtime.
|
|
94
106
|
|
|
95
107
|
# success.eca-overwrite
|
|
96
108
|
|
|
97
|
-
Re-running this command overwrites the generated files for the "%s" External Client Application
|
|
109
|
+
Re-running this command overwrites the generated files for the "%s" External Client Application. Back up local edits first.
|
|
98
110
|
|
|
99
111
|
# success.components-exist
|
|
100
112
|
|
|
101
|
-
Verify that every component you referenced already exists and is exposed for Lightning Out before deploying.
|
|
113
|
+
Verify that every component you referenced already exists and is exposed for Lightning Out 2.0 before deploying.
|
|
102
114
|
|
|
103
|
-
# success.
|
|
115
|
+
# success.clwr-site
|
|
104
116
|
|
|
105
|
-
|
|
117
|
+
Link the app to your Experience Cloud site after deploying. From Setup, in the Quick Find box, enter Lightning Out, and then select "Lightning Out 2.0 App Manager". Edit the app, select your site on the "Linked Communities Site" tab, and save. Then follow the steps in the "Complete Deployment in Experience Builder" dialog, which include publishing the site. On your host page, set the "site-prefix" attribute on the <lightning-out-application> tag to your site's URL path prefix, for example "/mysite". For host-page setup, see "Use Components Outside Salesforce with Lightning Out 2.0" in the Lightning Web Components Developer Guide.
|
package/oclif.manifest.json
CHANGED
|
@@ -841,6 +841,149 @@
|
|
|
841
841
|
"flexipage:generate:template"
|
|
842
842
|
]
|
|
843
843
|
},
|
|
844
|
+
"template:generate:lightning-out": {
|
|
845
|
+
"aliases": [],
|
|
846
|
+
"args": {},
|
|
847
|
+
"description": "Lightning Out 2.0 lets you embed custom Lightning web components (LWCs) into your external, non-Salesforce apps.\n\nThis command gets you started by generating the seven metadata artifact types that a Lightning Out 2.0 app requires into your Salesforce DX project: LightningOutApp, MyDomain and Security settings, one CorsWhitelistOrigin per host domain, and the three External Client Application OAuth components (ExternalClientApplication, ExtlClntAppGlobalOauthSettings, ExtlClntAppOauthSettings). The command only generates files. It doesn't deploy any metadata to an org.\n\nInputs can come from a --definition-file JSON, individual flags, or both. Flag values take precedence over the file on a per-key basis. The command validates the types of definition-file fields; the underlying generator performs the remaining structural validation, such as required fields and formats.",
|
|
848
|
+
"examples": [
|
|
849
|
+
"Generate a Lightning Out 2.0 app using individual flags to specify the values:\n<%= config.bin %> <%= command.id %> --app-name MyLoApp --runtime LWR_CORE --host-domains https://example.com --eca-name MyLoAppEca --eca-contact-email dev@example.com --eca-callback-url https://example.com/cb",
|
|
850
|
+
"Generate an app using the values in a JSON definition file called lo-def.json:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json",
|
|
851
|
+
"Generate the app into a specific directory:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json --output-dir force-app/main/default",
|
|
852
|
+
"Generate a CLWR app for an Experience Cloud site using a definition file:\n<%= config.bin %> <%= command.id %> --runtime CLWR --definition-file lo-def.json",
|
|
853
|
+
"Generate the app using most of the values from a definition file, but the --host-domains value overrides its equivalent in the file:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json --host-domains https://staging.example.com"
|
|
854
|
+
],
|
|
855
|
+
"flags": {
|
|
856
|
+
"json": {
|
|
857
|
+
"description": "Format output as json.",
|
|
858
|
+
"helpGroup": "GLOBAL",
|
|
859
|
+
"name": "json",
|
|
860
|
+
"allowNo": false,
|
|
861
|
+
"type": "boolean"
|
|
862
|
+
},
|
|
863
|
+
"flags-dir": {
|
|
864
|
+
"helpGroup": "GLOBAL",
|
|
865
|
+
"name": "flags-dir",
|
|
866
|
+
"summary": "Import flag values from a directory.",
|
|
867
|
+
"hasDynamicHelp": false,
|
|
868
|
+
"multiple": false,
|
|
869
|
+
"type": "option"
|
|
870
|
+
},
|
|
871
|
+
"app-name": {
|
|
872
|
+
"name": "app-name",
|
|
873
|
+
"required": false,
|
|
874
|
+
"summary": "Developer name of the new Lightning Out 2.0 app.",
|
|
875
|
+
"hasDynamicHelp": false,
|
|
876
|
+
"multiple": false,
|
|
877
|
+
"type": "option"
|
|
878
|
+
},
|
|
879
|
+
"eca-name": {
|
|
880
|
+
"name": "eca-name",
|
|
881
|
+
"required": false,
|
|
882
|
+
"summary": "Developer name of the External Client Application associated with the app.",
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"runtime": {
|
|
888
|
+
"description": "LWR_CORE serves the app from your Salesforce org to authenticated users. CLWR serves it from an Experience Cloud site to guest and authenticated users. After you deploy a CLWR app, link it to your site in Setup.",
|
|
889
|
+
"name": "runtime",
|
|
890
|
+
"summary": "Runtime that serves the app.",
|
|
891
|
+
"hasDynamicHelp": false,
|
|
892
|
+
"multiple": false,
|
|
893
|
+
"options": [
|
|
894
|
+
"LWR_CORE",
|
|
895
|
+
"CLWR"
|
|
896
|
+
],
|
|
897
|
+
"type": "option"
|
|
898
|
+
},
|
|
899
|
+
"host-domains": {
|
|
900
|
+
"name": "host-domains",
|
|
901
|
+
"summary": "HTTP or HTTPS origin of an external host page that embeds the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any hostDomains in the --definition-file. For CLWR apps, host domains are used only for CORS, which authenticated users need. Set up framing for the site in Experience Builder.",
|
|
902
|
+
"hasDynamicHelp": false,
|
|
903
|
+
"multiple": true,
|
|
904
|
+
"type": "option"
|
|
905
|
+
},
|
|
906
|
+
"components": {
|
|
907
|
+
"name": "components",
|
|
908
|
+
"summary": "Name of a Lightning web component exposed by the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any components in the --definition-file.",
|
|
909
|
+
"hasDynamicHelp": false,
|
|
910
|
+
"multiple": true,
|
|
911
|
+
"type": "option"
|
|
912
|
+
},
|
|
913
|
+
"eca-contact-email": {
|
|
914
|
+
"name": "eca-contact-email",
|
|
915
|
+
"summary": "Contact email for the External Client Application.",
|
|
916
|
+
"hasDynamicHelp": false,
|
|
917
|
+
"multiple": false,
|
|
918
|
+
"type": "option"
|
|
919
|
+
},
|
|
920
|
+
"eca-callback-url": {
|
|
921
|
+
"name": "eca-callback-url",
|
|
922
|
+
"summary": "OAuth callback URL for the External Client Application.",
|
|
923
|
+
"hasDynamicHelp": false,
|
|
924
|
+
"multiple": false,
|
|
925
|
+
"type": "option"
|
|
926
|
+
},
|
|
927
|
+
"definition-file": {
|
|
928
|
+
"name": "definition-file",
|
|
929
|
+
"summary": "Path to a JSON file describing the Lightning Out 2.0 app. Individual flags, when supplied, override the corresponding value in this file.",
|
|
930
|
+
"hasDynamicHelp": false,
|
|
931
|
+
"multiple": false,
|
|
932
|
+
"type": "option"
|
|
933
|
+
},
|
|
934
|
+
"output-dir": {
|
|
935
|
+
"aliases": [
|
|
936
|
+
"outputdir"
|
|
937
|
+
],
|
|
938
|
+
"char": "d",
|
|
939
|
+
"deprecateAliases": true,
|
|
940
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
941
|
+
"name": "output-dir",
|
|
942
|
+
"summary": "Directory for saving the created files.",
|
|
943
|
+
"default": ".",
|
|
944
|
+
"hasDynamicHelp": false,
|
|
945
|
+
"multiple": false,
|
|
946
|
+
"type": "option"
|
|
947
|
+
},
|
|
948
|
+
"loglevel": {
|
|
949
|
+
"deprecated": {
|
|
950
|
+
"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 `SF_LOG_LEVEL` environment variable."
|
|
951
|
+
},
|
|
952
|
+
"hidden": true,
|
|
953
|
+
"name": "loglevel",
|
|
954
|
+
"hasDynamicHelp": false,
|
|
955
|
+
"multiple": false,
|
|
956
|
+
"type": "option"
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
"hasDynamicHelp": false,
|
|
960
|
+
"hiddenAliases": [],
|
|
961
|
+
"id": "template:generate:lightning-out",
|
|
962
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
963
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
964
|
+
"pluginType": "core",
|
|
965
|
+
"strict": true,
|
|
966
|
+
"summary": "Generate the required metadata to scaffold a Lightning Out 2.0 app.",
|
|
967
|
+
"enableJsonFlag": true,
|
|
968
|
+
"isESM": true,
|
|
969
|
+
"relativePath": [
|
|
970
|
+
"lib",
|
|
971
|
+
"commands",
|
|
972
|
+
"template",
|
|
973
|
+
"generate",
|
|
974
|
+
"lightning-out",
|
|
975
|
+
"index.js"
|
|
976
|
+
],
|
|
977
|
+
"aliasPermutations": [],
|
|
978
|
+
"permutations": [
|
|
979
|
+
"template:generate:lightning-out",
|
|
980
|
+
"generate:template:lightning-out",
|
|
981
|
+
"generate:lightning-out:template",
|
|
982
|
+
"template:lightning-out:generate",
|
|
983
|
+
"lightning-out:template:generate",
|
|
984
|
+
"lightning-out:generate:template"
|
|
985
|
+
]
|
|
986
|
+
},
|
|
844
987
|
"template:generate:lightning:app": {
|
|
845
988
|
"aliases": [
|
|
846
989
|
"force:lightning:app:create",
|
|
@@ -1739,149 +1882,6 @@
|
|
|
1739
1882
|
"test:lightning:generate:template"
|
|
1740
1883
|
]
|
|
1741
1884
|
},
|
|
1742
|
-
"template:generate:lightning-out": {
|
|
1743
|
-
"aliases": [],
|
|
1744
|
-
"args": {},
|
|
1745
|
-
"description": "Lightning Out 2.0 lets you embed custom Lightning web components (LWCs) into your external, non-Salesforce apps.\n\nThis command gets you started by generating the seven metadata artifact types that a Lightning Out 2.0 app requires into your Salesforce DX project: LightningOutApp, MyDomain and Security settings, one CorsWhitelistOrigin per host domain, and the three External Client Application OAuth components (ExternalClientApplication, ExtlClntAppGlobalOauthSettings, ExtlClntAppOauthSettings). The command is generate-only; it doesn't deploy any metadata to an org.\n\nInputs may come from a --definition-file JSON, individual flags, or both. Flag values take precedence over the file on a per-key basis. The command validates the types of definition-file fields; the underlying generator performs the remaining structural validation, such as required fields and formats.",
|
|
1746
|
-
"examples": [
|
|
1747
|
-
"Generate a Lightning Out 2.0 app using individual flags to specify the values:\n<%= config.bin %> <%= command.id %> --app-name MyLoApp --runtime LWR_CORE --host-domains https://example.com --eca-name MyLoAppEca --eca-contact-email dev@example.com --eca-callback-url https://example.com/cb",
|
|
1748
|
-
"Generate an app using the values in a JSON definition file called lo-def.json:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json",
|
|
1749
|
-
"Generate the app into a specific directory:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json --output-dir force-app/main/default",
|
|
1750
|
-
"Generate the app using most of the values from a definition file, but the --host-domains value overrides its equivalent in the file:\n<%= config.bin %> <%= command.id %> --definition-file lo-def.json --host-domains https://staging.example.com"
|
|
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
|
-
"app-name": {
|
|
1769
|
-
"name": "app-name",
|
|
1770
|
-
"required": false,
|
|
1771
|
-
"summary": "Developer name of the new Lightning Out 2.0 app.",
|
|
1772
|
-
"hasDynamicHelp": false,
|
|
1773
|
-
"multiple": false,
|
|
1774
|
-
"type": "option"
|
|
1775
|
-
},
|
|
1776
|
-
"eca-name": {
|
|
1777
|
-
"name": "eca-name",
|
|
1778
|
-
"required": false,
|
|
1779
|
-
"summary": "Developer name of the External Client Application associated with the app.",
|
|
1780
|
-
"hasDynamicHelp": false,
|
|
1781
|
-
"multiple": false,
|
|
1782
|
-
"type": "option"
|
|
1783
|
-
},
|
|
1784
|
-
"runtime": {
|
|
1785
|
-
"name": "runtime",
|
|
1786
|
-
"summary": "Runtime the app targets. LWR_CORE serves from your Salesforce org for authenticated users; CLWR serves from an Experience Cloud site (guest access, extra site-deployment step).",
|
|
1787
|
-
"hasDynamicHelp": false,
|
|
1788
|
-
"multiple": false,
|
|
1789
|
-
"options": [
|
|
1790
|
-
"LWR_CORE",
|
|
1791
|
-
"CLWR"
|
|
1792
|
-
],
|
|
1793
|
-
"type": "option"
|
|
1794
|
-
},
|
|
1795
|
-
"host-domains": {
|
|
1796
|
-
"name": "host-domains",
|
|
1797
|
-
"summary": "HTTP or HTTPS origin of an external host page that embeds the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any hostDomains in the --definition-file.",
|
|
1798
|
-
"hasDynamicHelp": false,
|
|
1799
|
-
"multiple": true,
|
|
1800
|
-
"type": "option"
|
|
1801
|
-
},
|
|
1802
|
-
"components": {
|
|
1803
|
-
"name": "components",
|
|
1804
|
-
"summary": "Name of a Lightning web component exposed by the app. Repeat the flag to specify more than one. Replaces, rather than merges with, any components in the --definition-file.",
|
|
1805
|
-
"hasDynamicHelp": false,
|
|
1806
|
-
"multiple": true,
|
|
1807
|
-
"type": "option"
|
|
1808
|
-
},
|
|
1809
|
-
"eca-contact-email": {
|
|
1810
|
-
"name": "eca-contact-email",
|
|
1811
|
-
"summary": "Contact email for the External Client Application.",
|
|
1812
|
-
"hasDynamicHelp": false,
|
|
1813
|
-
"multiple": false,
|
|
1814
|
-
"type": "option"
|
|
1815
|
-
},
|
|
1816
|
-
"eca-callback-url": {
|
|
1817
|
-
"name": "eca-callback-url",
|
|
1818
|
-
"summary": "OAuth callback URL for the External Client Application.",
|
|
1819
|
-
"hasDynamicHelp": false,
|
|
1820
|
-
"multiple": false,
|
|
1821
|
-
"type": "option"
|
|
1822
|
-
},
|
|
1823
|
-
"definition-file": {
|
|
1824
|
-
"name": "definition-file",
|
|
1825
|
-
"summary": "Path to a JSON file describing the Lightning Out 2.0 app. Individual flags, when supplied, override the corresponding value in this file.",
|
|
1826
|
-
"hasDynamicHelp": false,
|
|
1827
|
-
"multiple": false,
|
|
1828
|
-
"type": "option"
|
|
1829
|
-
},
|
|
1830
|
-
"output-dir": {
|
|
1831
|
-
"aliases": [
|
|
1832
|
-
"outputdir"
|
|
1833
|
-
],
|
|
1834
|
-
"char": "d",
|
|
1835
|
-
"deprecateAliases": true,
|
|
1836
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
1837
|
-
"name": "output-dir",
|
|
1838
|
-
"summary": "Directory for saving the created files.",
|
|
1839
|
-
"default": ".",
|
|
1840
|
-
"hasDynamicHelp": false,
|
|
1841
|
-
"multiple": false,
|
|
1842
|
-
"type": "option"
|
|
1843
|
-
},
|
|
1844
|
-
"loglevel": {
|
|
1845
|
-
"deprecated": {
|
|
1846
|
-
"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 `SF_LOG_LEVEL` environment variable."
|
|
1847
|
-
},
|
|
1848
|
-
"hidden": true,
|
|
1849
|
-
"name": "loglevel",
|
|
1850
|
-
"hasDynamicHelp": false,
|
|
1851
|
-
"multiple": false,
|
|
1852
|
-
"type": "option"
|
|
1853
|
-
}
|
|
1854
|
-
},
|
|
1855
|
-
"hasDynamicHelp": false,
|
|
1856
|
-
"hidden": true,
|
|
1857
|
-
"hiddenAliases": [],
|
|
1858
|
-
"id": "template:generate:lightning-out",
|
|
1859
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
1860
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
1861
|
-
"pluginType": "core",
|
|
1862
|
-
"state": "beta",
|
|
1863
|
-
"strict": true,
|
|
1864
|
-
"summary": "Generate the required metadata to scaffold a Lightning Out 2.0 app.",
|
|
1865
|
-
"enableJsonFlag": true,
|
|
1866
|
-
"isESM": true,
|
|
1867
|
-
"relativePath": [
|
|
1868
|
-
"lib",
|
|
1869
|
-
"commands",
|
|
1870
|
-
"template",
|
|
1871
|
-
"generate",
|
|
1872
|
-
"lightning-out",
|
|
1873
|
-
"index.js"
|
|
1874
|
-
],
|
|
1875
|
-
"aliasPermutations": [],
|
|
1876
|
-
"permutations": [
|
|
1877
|
-
"template:generate:lightning-out",
|
|
1878
|
-
"generate:template:lightning-out",
|
|
1879
|
-
"generate:lightning-out:template",
|
|
1880
|
-
"template:lightning-out:generate",
|
|
1881
|
-
"lightning-out:template:generate",
|
|
1882
|
-
"lightning-out:generate:template"
|
|
1883
|
-
]
|
|
1884
|
-
},
|
|
1885
1885
|
"template:generate:project": {
|
|
1886
1886
|
"aliases": [
|
|
1887
1887
|
"force:project:create",
|
|
@@ -2075,18 +2075,16 @@
|
|
|
2075
2075
|
"project:generate:template"
|
|
2076
2076
|
]
|
|
2077
2077
|
},
|
|
2078
|
-
"template:generate:
|
|
2079
|
-
"aliases": [
|
|
2080
|
-
"force:staticresource:create",
|
|
2081
|
-
"static-resource:generate"
|
|
2082
|
-
],
|
|
2078
|
+
"template:generate:ui-bundle": {
|
|
2079
|
+
"aliases": [],
|
|
2083
2080
|
"args": {},
|
|
2084
|
-
"
|
|
2085
|
-
"description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
|
|
2081
|
+
"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 specific UI framework, such as React or Angular. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
|
|
2086
2082
|
"examples": [
|
|
2087
|
-
"Generate
|
|
2088
|
-
"
|
|
2089
|
-
"Generate
|
|
2083
|
+
"Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
|
|
2084
|
+
"Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
|
|
2085
|
+
"Generate an Angular-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyAngularApp --template angularbasic",
|
|
2086
|
+
"Generate a Vue-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyVueApp --template vuebasic",
|
|
2087
|
+
"Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles"
|
|
2090
2088
|
],
|
|
2091
2089
|
"flags": {
|
|
2092
2090
|
"json": {
|
|
@@ -2105,76 +2103,65 @@
|
|
|
2105
2103
|
"type": "option"
|
|
2106
2104
|
},
|
|
2107
2105
|
"name": {
|
|
2108
|
-
"aliases": [
|
|
2109
|
-
"resourcename"
|
|
2110
|
-
],
|
|
2111
2106
|
"char": "n",
|
|
2112
|
-
"deprecateAliases": true,
|
|
2113
2107
|
"description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
|
|
2114
2108
|
"name": "name",
|
|
2115
2109
|
"required": true,
|
|
2116
|
-
"summary": "
|
|
2110
|
+
"summary": "API name of the generated UI bundle.",
|
|
2117
2111
|
"hasDynamicHelp": false,
|
|
2118
2112
|
"multiple": false,
|
|
2119
2113
|
"type": "option"
|
|
2120
2114
|
},
|
|
2121
|
-
"
|
|
2122
|
-
"
|
|
2123
|
-
|
|
2115
|
+
"template": {
|
|
2116
|
+
"char": "t",
|
|
2117
|
+
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
2118
|
+
"name": "template",
|
|
2119
|
+
"summary": "Template to use when creating the files for a specific UI framework.",
|
|
2120
|
+
"default": "default",
|
|
2121
|
+
"hasDynamicHelp": false,
|
|
2122
|
+
"multiple": false,
|
|
2123
|
+
"options": [
|
|
2124
|
+
"default",
|
|
2125
|
+
"reactbasic",
|
|
2126
|
+
"angularbasic",
|
|
2127
|
+
"vuebasic"
|
|
2124
2128
|
],
|
|
2125
|
-
"
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
"
|
|
2129
|
-
"
|
|
2129
|
+
"type": "option"
|
|
2130
|
+
},
|
|
2131
|
+
"label": {
|
|
2132
|
+
"char": "l",
|
|
2133
|
+
"description": "If not specified, the label is derived from the name.",
|
|
2134
|
+
"name": "label",
|
|
2135
|
+
"summary": "Master label for the UI bundle.",
|
|
2130
2136
|
"hasDynamicHelp": false,
|
|
2131
2137
|
"multiple": false,
|
|
2132
2138
|
"type": "option"
|
|
2133
2139
|
},
|
|
2134
2140
|
"output-dir": {
|
|
2135
|
-
"aliases": [
|
|
2136
|
-
"outputdir"
|
|
2137
|
-
],
|
|
2138
2141
|
"char": "d",
|
|
2139
|
-
"
|
|
2140
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
2142
|
+
"description": "The location can be an absolute path or relative to the current working directory.\n\nIf not specified, the command reads your sfdx-project.json and defaults to \"uiBundles\" directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.\n\n**Important:** This command automatically ensures the output directory ends with \"uiBundles\". If your specified path doesn't end with \"uiBundles\", it's automatically appended. The UI bundle is created at \"<output-dir>/<name>\".\n\n**Examples:**\n\n- \"--output-dir force-app/main/default\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\"\n- \"--output-dir force-app/main/default/uiBundles\" → Creates a UI bundle at \"force-app/main/default/uiBundles/MyUiBundle/\" (no change)",
|
|
2141
2143
|
"name": "output-dir",
|
|
2142
|
-
"summary": "Directory
|
|
2143
|
-
"default": ".",
|
|
2144
|
+
"summary": "Directory into which the files are created.",
|
|
2144
2145
|
"hasDynamicHelp": false,
|
|
2145
2146
|
"multiple": false,
|
|
2146
2147
|
"type": "option"
|
|
2147
2148
|
},
|
|
2148
2149
|
"api-version": {
|
|
2149
|
-
"aliases": [
|
|
2150
|
-
"apiversion"
|
|
2151
|
-
],
|
|
2152
|
-
"deprecateAliases": true,
|
|
2153
2150
|
"description": "Override the api version used for api requests made by this command",
|
|
2154
2151
|
"name": "api-version",
|
|
2155
2152
|
"hasDynamicHelp": false,
|
|
2156
2153
|
"multiple": false,
|
|
2157
2154
|
"type": "option"
|
|
2158
|
-
},
|
|
2159
|
-
"loglevel": {
|
|
2160
|
-
"deprecated": {
|
|
2161
|
-
"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 `SF_LOG_LEVEL` environment variable."
|
|
2162
|
-
},
|
|
2163
|
-
"hidden": true,
|
|
2164
|
-
"name": "loglevel",
|
|
2165
|
-
"hasDynamicHelp": false,
|
|
2166
|
-
"multiple": false,
|
|
2167
|
-
"type": "option"
|
|
2168
2155
|
}
|
|
2169
2156
|
},
|
|
2170
2157
|
"hasDynamicHelp": false,
|
|
2171
2158
|
"hiddenAliases": [],
|
|
2172
|
-
"id": "template:generate:
|
|
2159
|
+
"id": "template:generate:ui-bundle",
|
|
2173
2160
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
2174
2161
|
"pluginName": "@salesforce/plugin-templates",
|
|
2175
2162
|
"pluginType": "core",
|
|
2176
2163
|
"strict": true,
|
|
2177
|
-
"summary": "Generate a
|
|
2164
|
+
"summary": "Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.",
|
|
2178
2165
|
"enableJsonFlag": true,
|
|
2179
2166
|
"isESM": true,
|
|
2180
2167
|
"relativePath": [
|
|
@@ -2182,38 +2169,31 @@
|
|
|
2182
2169
|
"commands",
|
|
2183
2170
|
"template",
|
|
2184
2171
|
"generate",
|
|
2185
|
-
"
|
|
2172
|
+
"ui-bundle",
|
|
2186
2173
|
"index.js"
|
|
2187
2174
|
],
|
|
2188
|
-
"aliasPermutations": [
|
|
2189
|
-
"force:staticresource:create",
|
|
2190
|
-
"staticresource:force:create",
|
|
2191
|
-
"staticresource:create:force",
|
|
2192
|
-
"force:create:staticresource",
|
|
2193
|
-
"create:force:staticresource",
|
|
2194
|
-
"create:staticresource:force",
|
|
2195
|
-
"static-resource:generate",
|
|
2196
|
-
"generate:static-resource"
|
|
2197
|
-
],
|
|
2175
|
+
"aliasPermutations": [],
|
|
2198
2176
|
"permutations": [
|
|
2199
|
-
"template:generate:
|
|
2200
|
-
"generate:template:
|
|
2201
|
-
"generate:
|
|
2202
|
-
"template:
|
|
2203
|
-
"
|
|
2204
|
-
"
|
|
2177
|
+
"template:generate:ui-bundle",
|
|
2178
|
+
"generate:template:ui-bundle",
|
|
2179
|
+
"generate:ui-bundle:template",
|
|
2180
|
+
"template:ui-bundle:generate",
|
|
2181
|
+
"ui-bundle:template:generate",
|
|
2182
|
+
"ui-bundle:generate:template"
|
|
2205
2183
|
]
|
|
2206
2184
|
},
|
|
2207
|
-
"template:generate:
|
|
2208
|
-
"aliases": [
|
|
2185
|
+
"template:generate:static-resource": {
|
|
2186
|
+
"aliases": [
|
|
2187
|
+
"force:staticresource:create",
|
|
2188
|
+
"static-resource:generate"
|
|
2189
|
+
],
|
|
2209
2190
|
"args": {},
|
|
2210
|
-
"
|
|
2191
|
+
"deprecateAliases": true,
|
|
2192
|
+
"description": "Generates the metadata resource file in the specified directory or the current working directory. Static resource files must be contained in a parent directory called \"staticresources\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
|
|
2211
2193
|
"examples": [
|
|
2212
|
-
"Generate a
|
|
2213
|
-
"
|
|
2214
|
-
"Generate
|
|
2215
|
-
"Generate a Vue-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyVueApp --template vuebasic",
|
|
2216
|
-
"Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles"
|
|
2194
|
+
"Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
|
|
2195
|
+
"Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
|
|
2196
|
+
"Generate the resource file in the \"force-app/main/default/staticresources\" directory:\n<%= config.bin %> <%= command.id %> --name MyResource --output-dir force-app/main/default/staticresources"
|
|
2217
2197
|
],
|
|
2218
2198
|
"flags": {
|
|
2219
2199
|
"json": {
|
|
@@ -2232,65 +2212,76 @@
|
|
|
2232
2212
|
"type": "option"
|
|
2233
2213
|
},
|
|
2234
2214
|
"name": {
|
|
2215
|
+
"aliases": [
|
|
2216
|
+
"resourcename"
|
|
2217
|
+
],
|
|
2235
2218
|
"char": "n",
|
|
2219
|
+
"deprecateAliases": true,
|
|
2236
2220
|
"description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
|
|
2237
2221
|
"name": "name",
|
|
2238
2222
|
"required": true,
|
|
2239
|
-
"summary": "
|
|
2223
|
+
"summary": "Name of the generated static resource.",
|
|
2240
2224
|
"hasDynamicHelp": false,
|
|
2241
2225
|
"multiple": false,
|
|
2242
2226
|
"type": "option"
|
|
2243
2227
|
},
|
|
2244
|
-
"
|
|
2245
|
-
"
|
|
2246
|
-
|
|
2247
|
-
"name": "template",
|
|
2248
|
-
"summary": "Template to use when creating the files for a specific UI framework.",
|
|
2249
|
-
"default": "default",
|
|
2250
|
-
"hasDynamicHelp": false,
|
|
2251
|
-
"multiple": false,
|
|
2252
|
-
"options": [
|
|
2253
|
-
"default",
|
|
2254
|
-
"reactbasic",
|
|
2255
|
-
"angularbasic",
|
|
2256
|
-
"vuebasic"
|
|
2228
|
+
"type": {
|
|
2229
|
+
"aliases": [
|
|
2230
|
+
"contenttype"
|
|
2257
2231
|
],
|
|
2258
|
-
"
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
"
|
|
2262
|
-
"
|
|
2263
|
-
"name": "label",
|
|
2264
|
-
"summary": "Master label for the UI bundle.",
|
|
2232
|
+
"deprecateAliases": true,
|
|
2233
|
+
"description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
|
|
2234
|
+
"name": "type",
|
|
2235
|
+
"summary": "Content type (mime type) of the generated static resource.",
|
|
2236
|
+
"default": "application/zip",
|
|
2265
2237
|
"hasDynamicHelp": false,
|
|
2266
2238
|
"multiple": false,
|
|
2267
2239
|
"type": "option"
|
|
2268
2240
|
},
|
|
2269
2241
|
"output-dir": {
|
|
2242
|
+
"aliases": [
|
|
2243
|
+
"outputdir"
|
|
2244
|
+
],
|
|
2270
2245
|
"char": "d",
|
|
2271
|
-
"
|
|
2246
|
+
"deprecateAliases": true,
|
|
2247
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
2272
2248
|
"name": "output-dir",
|
|
2273
|
-
"summary": "Directory
|
|
2249
|
+
"summary": "Directory for saving the created files.",
|
|
2250
|
+
"default": ".",
|
|
2274
2251
|
"hasDynamicHelp": false,
|
|
2275
2252
|
"multiple": false,
|
|
2276
2253
|
"type": "option"
|
|
2277
2254
|
},
|
|
2278
2255
|
"api-version": {
|
|
2256
|
+
"aliases": [
|
|
2257
|
+
"apiversion"
|
|
2258
|
+
],
|
|
2259
|
+
"deprecateAliases": true,
|
|
2279
2260
|
"description": "Override the api version used for api requests made by this command",
|
|
2280
2261
|
"name": "api-version",
|
|
2281
2262
|
"hasDynamicHelp": false,
|
|
2282
2263
|
"multiple": false,
|
|
2283
2264
|
"type": "option"
|
|
2265
|
+
},
|
|
2266
|
+
"loglevel": {
|
|
2267
|
+
"deprecated": {
|
|
2268
|
+
"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 `SF_LOG_LEVEL` environment variable."
|
|
2269
|
+
},
|
|
2270
|
+
"hidden": true,
|
|
2271
|
+
"name": "loglevel",
|
|
2272
|
+
"hasDynamicHelp": false,
|
|
2273
|
+
"multiple": false,
|
|
2274
|
+
"type": "option"
|
|
2284
2275
|
}
|
|
2285
2276
|
},
|
|
2286
2277
|
"hasDynamicHelp": false,
|
|
2287
2278
|
"hiddenAliases": [],
|
|
2288
|
-
"id": "template:generate:
|
|
2279
|
+
"id": "template:generate:static-resource",
|
|
2289
2280
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
2290
2281
|
"pluginName": "@salesforce/plugin-templates",
|
|
2291
2282
|
"pluginType": "core",
|
|
2292
2283
|
"strict": true,
|
|
2293
|
-
"summary": "Generate a
|
|
2284
|
+
"summary": "Generate a static resource.",
|
|
2294
2285
|
"enableJsonFlag": true,
|
|
2295
2286
|
"isESM": true,
|
|
2296
2287
|
"relativePath": [
|
|
@@ -2298,17 +2289,26 @@
|
|
|
2298
2289
|
"commands",
|
|
2299
2290
|
"template",
|
|
2300
2291
|
"generate",
|
|
2301
|
-
"
|
|
2292
|
+
"static-resource",
|
|
2302
2293
|
"index.js"
|
|
2303
2294
|
],
|
|
2304
|
-
"aliasPermutations": [
|
|
2295
|
+
"aliasPermutations": [
|
|
2296
|
+
"force:staticresource:create",
|
|
2297
|
+
"staticresource:force:create",
|
|
2298
|
+
"staticresource:create:force",
|
|
2299
|
+
"force:create:staticresource",
|
|
2300
|
+
"create:force:staticresource",
|
|
2301
|
+
"create:staticresource:force",
|
|
2302
|
+
"static-resource:generate",
|
|
2303
|
+
"generate:static-resource"
|
|
2304
|
+
],
|
|
2305
2305
|
"permutations": [
|
|
2306
|
-
"template:generate:
|
|
2307
|
-
"generate:template:
|
|
2308
|
-
"generate:
|
|
2309
|
-
"template:
|
|
2310
|
-
"
|
|
2311
|
-
"
|
|
2306
|
+
"template:generate:static-resource",
|
|
2307
|
+
"generate:template:static-resource",
|
|
2308
|
+
"generate:static-resource:template",
|
|
2309
|
+
"template:static-resource:generate",
|
|
2310
|
+
"static-resource:template:generate",
|
|
2311
|
+
"static-resource:generate:template"
|
|
2312
2312
|
]
|
|
2313
2313
|
},
|
|
2314
2314
|
"template:generate:ui-embedding": {
|
|
@@ -2815,5 +2815,5 @@
|
|
|
2815
2815
|
]
|
|
2816
2816
|
}
|
|
2817
2817
|
},
|
|
2818
|
-
"version": "57.
|
|
2818
|
+
"version": "57.5.0"
|
|
2819
2819
|
}
|
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": "57.
|
|
4
|
+
"version": "57.5.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"@salesforce/templates": "^66.17.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@oclif/plugin-command-snapshot": "^6.0.
|
|
15
|
+
"@oclif/plugin-command-snapshot": "^6.0.6",
|
|
16
16
|
"@salesforce/cli-plugins-testkit": "^5.3.76",
|
|
17
17
|
"@salesforce/dev-scripts": "^15.0.0",
|
|
18
|
-
"@salesforce/plugin-command-reference": "^3.1.
|
|
18
|
+
"@salesforce/plugin-command-reference": "^3.1.142",
|
|
19
19
|
"@types/chai": "^4.3.17",
|
|
20
20
|
"@types/mocha": "^10.0.10",
|
|
21
21
|
"@types/node": "^18",
|
|
22
22
|
"@types/sinon": "^10.0.20",
|
|
23
23
|
"@types/yeoman-assert": "^3.1.4",
|
|
24
24
|
"eslint": "^10.12.0",
|
|
25
|
-
"eslint-config-salesforce-typescript": "^7.0.
|
|
25
|
+
"eslint-config-salesforce-typescript": "^7.0.1",
|
|
26
26
|
"eslint-plugin-sf-plugin": "^3.0.1",
|
|
27
27
|
"oclif": "^5.0.2",
|
|
28
28
|
"ts-node": "^10.9.2",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"exports": "./lib/index.js",
|
|
260
260
|
"type": "module",
|
|
261
261
|
"sfdx": {
|
|
262
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.
|
|
263
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.
|
|
262
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.5.0.crt",
|
|
263
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.5.0.sig"
|
|
264
264
|
}
|
|
265
265
|
}
|