@salesforce/plugin-templates 57.4.13 → 57.5.1
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 +159 -159
- package/package.json +7 -7
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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
|
@@ -1,5 +1,158 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"template:generate:analytics:template": {
|
|
4
|
+
"aliases": [
|
|
5
|
+
"force:analytics:template:create",
|
|
6
|
+
"analytics:generate:template"
|
|
7
|
+
],
|
|
8
|
+
"args": {},
|
|
9
|
+
"deprecateAliases": true,
|
|
10
|
+
"description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
11
|
+
"examples": [
|
|
12
|
+
"Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
|
|
13
|
+
],
|
|
14
|
+
"flags": {
|
|
15
|
+
"json": {
|
|
16
|
+
"description": "Format output as json.",
|
|
17
|
+
"helpGroup": "GLOBAL",
|
|
18
|
+
"name": "json",
|
|
19
|
+
"allowNo": false,
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"flags-dir": {
|
|
23
|
+
"helpGroup": "GLOBAL",
|
|
24
|
+
"name": "flags-dir",
|
|
25
|
+
"summary": "Import flag values from a directory.",
|
|
26
|
+
"hasDynamicHelp": false,
|
|
27
|
+
"multiple": false,
|
|
28
|
+
"type": "option"
|
|
29
|
+
},
|
|
30
|
+
"output-dir": {
|
|
31
|
+
"aliases": [
|
|
32
|
+
"outputdir"
|
|
33
|
+
],
|
|
34
|
+
"char": "d",
|
|
35
|
+
"deprecateAliases": true,
|
|
36
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
37
|
+
"name": "output-dir",
|
|
38
|
+
"summary": "Directory for saving the created files.",
|
|
39
|
+
"default": ".",
|
|
40
|
+
"hasDynamicHelp": false,
|
|
41
|
+
"multiple": false,
|
|
42
|
+
"type": "option"
|
|
43
|
+
},
|
|
44
|
+
"api-version": {
|
|
45
|
+
"aliases": [
|
|
46
|
+
"apiversion"
|
|
47
|
+
],
|
|
48
|
+
"deprecateAliases": true,
|
|
49
|
+
"description": "Override the api version used for api requests made by this command",
|
|
50
|
+
"name": "api-version",
|
|
51
|
+
"hasDynamicHelp": false,
|
|
52
|
+
"multiple": false,
|
|
53
|
+
"type": "option"
|
|
54
|
+
},
|
|
55
|
+
"name": {
|
|
56
|
+
"aliases": [
|
|
57
|
+
"templatename"
|
|
58
|
+
],
|
|
59
|
+
"char": "n",
|
|
60
|
+
"deprecateAliases": true,
|
|
61
|
+
"name": "name",
|
|
62
|
+
"required": true,
|
|
63
|
+
"summary": "Name of the Analytics template.",
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
},
|
|
68
|
+
"loglevel": {
|
|
69
|
+
"deprecated": {
|
|
70
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SF_LOG_LEVEL` environment variable."
|
|
71
|
+
},
|
|
72
|
+
"hidden": true,
|
|
73
|
+
"name": "loglevel",
|
|
74
|
+
"hasDynamicHelp": false,
|
|
75
|
+
"multiple": false,
|
|
76
|
+
"type": "option"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"hiddenAliases": [],
|
|
81
|
+
"id": "template:generate:analytics:template",
|
|
82
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
83
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
84
|
+
"pluginType": "core",
|
|
85
|
+
"strict": true,
|
|
86
|
+
"summary": "Generate a simple Analytics template.",
|
|
87
|
+
"enableJsonFlag": true,
|
|
88
|
+
"isESM": true,
|
|
89
|
+
"relativePath": [
|
|
90
|
+
"lib",
|
|
91
|
+
"commands",
|
|
92
|
+
"template",
|
|
93
|
+
"generate",
|
|
94
|
+
"analytics",
|
|
95
|
+
"template.js"
|
|
96
|
+
],
|
|
97
|
+
"aliasPermutations": [
|
|
98
|
+
"force:analytics:template:create",
|
|
99
|
+
"analytics:force:template:create",
|
|
100
|
+
"analytics:template:force:create",
|
|
101
|
+
"analytics:template:create:force",
|
|
102
|
+
"force:template:analytics:create",
|
|
103
|
+
"template:force:analytics:create",
|
|
104
|
+
"template:analytics:force:create",
|
|
105
|
+
"template:analytics:create:force",
|
|
106
|
+
"force:template:create:analytics",
|
|
107
|
+
"template:force:create:analytics",
|
|
108
|
+
"template:create:force:analytics",
|
|
109
|
+
"template:create:analytics:force",
|
|
110
|
+
"force:analytics:create:template",
|
|
111
|
+
"analytics:force:create:template",
|
|
112
|
+
"analytics:create:force:template",
|
|
113
|
+
"analytics:create:template:force",
|
|
114
|
+
"force:create:analytics:template",
|
|
115
|
+
"create:force:analytics:template",
|
|
116
|
+
"create:analytics:force:template",
|
|
117
|
+
"create:analytics:template:force",
|
|
118
|
+
"force:create:template:analytics",
|
|
119
|
+
"create:force:template:analytics",
|
|
120
|
+
"create:template:force:analytics",
|
|
121
|
+
"create:template:analytics:force",
|
|
122
|
+
"analytics:generate:template",
|
|
123
|
+
"generate:analytics:template",
|
|
124
|
+
"generate:template:analytics",
|
|
125
|
+
"analytics:template:generate",
|
|
126
|
+
"template:analytics:generate",
|
|
127
|
+
"template:generate:analytics"
|
|
128
|
+
],
|
|
129
|
+
"permutations": [
|
|
130
|
+
"template:generate:analytics:template",
|
|
131
|
+
"generate:template:analytics:template",
|
|
132
|
+
"generate:analytics:template:template",
|
|
133
|
+
"generate:analytics:template:template",
|
|
134
|
+
"template:analytics:generate:template",
|
|
135
|
+
"analytics:template:generate:template",
|
|
136
|
+
"analytics:generate:template:template",
|
|
137
|
+
"analytics:generate:template:template",
|
|
138
|
+
"template:analytics:template:generate",
|
|
139
|
+
"analytics:template:template:generate",
|
|
140
|
+
"analytics:template:template:generate",
|
|
141
|
+
"analytics:template:generate:template",
|
|
142
|
+
"template:generate:template:analytics",
|
|
143
|
+
"generate:template:template:analytics",
|
|
144
|
+
"generate:template:template:analytics",
|
|
145
|
+
"generate:template:analytics:template",
|
|
146
|
+
"template:template:generate:analytics",
|
|
147
|
+
"template:template:generate:analytics",
|
|
148
|
+
"template:generate:template:analytics",
|
|
149
|
+
"template:generate:analytics:template",
|
|
150
|
+
"template:template:analytics:generate",
|
|
151
|
+
"template:template:analytics:generate",
|
|
152
|
+
"template:analytics:template:generate",
|
|
153
|
+
"template:analytics:generate:template"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
3
156
|
"template:generate:apex:class": {
|
|
4
157
|
"aliases": [
|
|
5
158
|
"force:apex:class:create",
|
|
@@ -377,159 +530,6 @@
|
|
|
377
530
|
"trigger:apex:generate:template"
|
|
378
531
|
]
|
|
379
532
|
},
|
|
380
|
-
"template:generate:analytics:template": {
|
|
381
|
-
"aliases": [
|
|
382
|
-
"force:analytics:template:create",
|
|
383
|
-
"analytics:generate:template"
|
|
384
|
-
],
|
|
385
|
-
"args": {},
|
|
386
|
-
"deprecateAliases": true,
|
|
387
|
-
"description": "The metadata files associated with the Analytics template must be contained in a parent directory called \"waveTemplates\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to generate one or point to an existing one.",
|
|
388
|
-
"examples": [
|
|
389
|
-
"Generate the metadata files for a simple Analytics template file called myTemplate in the force-app/main/default/waveTemplates directory:\n<%= config.bin %> <%= command.id %> --name myTemplate --output-dir force-app/main/default/waveTemplates"
|
|
390
|
-
],
|
|
391
|
-
"flags": {
|
|
392
|
-
"json": {
|
|
393
|
-
"description": "Format output as json.",
|
|
394
|
-
"helpGroup": "GLOBAL",
|
|
395
|
-
"name": "json",
|
|
396
|
-
"allowNo": false,
|
|
397
|
-
"type": "boolean"
|
|
398
|
-
},
|
|
399
|
-
"flags-dir": {
|
|
400
|
-
"helpGroup": "GLOBAL",
|
|
401
|
-
"name": "flags-dir",
|
|
402
|
-
"summary": "Import flag values from a directory.",
|
|
403
|
-
"hasDynamicHelp": false,
|
|
404
|
-
"multiple": false,
|
|
405
|
-
"type": "option"
|
|
406
|
-
},
|
|
407
|
-
"output-dir": {
|
|
408
|
-
"aliases": [
|
|
409
|
-
"outputdir"
|
|
410
|
-
],
|
|
411
|
-
"char": "d",
|
|
412
|
-
"deprecateAliases": true,
|
|
413
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
414
|
-
"name": "output-dir",
|
|
415
|
-
"summary": "Directory for saving the created files.",
|
|
416
|
-
"default": ".",
|
|
417
|
-
"hasDynamicHelp": false,
|
|
418
|
-
"multiple": false,
|
|
419
|
-
"type": "option"
|
|
420
|
-
},
|
|
421
|
-
"api-version": {
|
|
422
|
-
"aliases": [
|
|
423
|
-
"apiversion"
|
|
424
|
-
],
|
|
425
|
-
"deprecateAliases": true,
|
|
426
|
-
"description": "Override the api version used for api requests made by this command",
|
|
427
|
-
"name": "api-version",
|
|
428
|
-
"hasDynamicHelp": false,
|
|
429
|
-
"multiple": false,
|
|
430
|
-
"type": "option"
|
|
431
|
-
},
|
|
432
|
-
"name": {
|
|
433
|
-
"aliases": [
|
|
434
|
-
"templatename"
|
|
435
|
-
],
|
|
436
|
-
"char": "n",
|
|
437
|
-
"deprecateAliases": true,
|
|
438
|
-
"name": "name",
|
|
439
|
-
"required": true,
|
|
440
|
-
"summary": "Name of the Analytics template.",
|
|
441
|
-
"hasDynamicHelp": false,
|
|
442
|
-
"multiple": false,
|
|
443
|
-
"type": "option"
|
|
444
|
-
},
|
|
445
|
-
"loglevel": {
|
|
446
|
-
"deprecated": {
|
|
447
|
-
"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."
|
|
448
|
-
},
|
|
449
|
-
"hidden": true,
|
|
450
|
-
"name": "loglevel",
|
|
451
|
-
"hasDynamicHelp": false,
|
|
452
|
-
"multiple": false,
|
|
453
|
-
"type": "option"
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
"hasDynamicHelp": false,
|
|
457
|
-
"hiddenAliases": [],
|
|
458
|
-
"id": "template:generate:analytics:template",
|
|
459
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
460
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
461
|
-
"pluginType": "core",
|
|
462
|
-
"strict": true,
|
|
463
|
-
"summary": "Generate a simple Analytics template.",
|
|
464
|
-
"enableJsonFlag": true,
|
|
465
|
-
"isESM": true,
|
|
466
|
-
"relativePath": [
|
|
467
|
-
"lib",
|
|
468
|
-
"commands",
|
|
469
|
-
"template",
|
|
470
|
-
"generate",
|
|
471
|
-
"analytics",
|
|
472
|
-
"template.js"
|
|
473
|
-
],
|
|
474
|
-
"aliasPermutations": [
|
|
475
|
-
"force:analytics:template:create",
|
|
476
|
-
"analytics:force:template:create",
|
|
477
|
-
"analytics:template:force:create",
|
|
478
|
-
"analytics:template:create:force",
|
|
479
|
-
"force:template:analytics:create",
|
|
480
|
-
"template:force:analytics:create",
|
|
481
|
-
"template:analytics:force:create",
|
|
482
|
-
"template:analytics:create:force",
|
|
483
|
-
"force:template:create:analytics",
|
|
484
|
-
"template:force:create:analytics",
|
|
485
|
-
"template:create:force:analytics",
|
|
486
|
-
"template:create:analytics:force",
|
|
487
|
-
"force:analytics:create:template",
|
|
488
|
-
"analytics:force:create:template",
|
|
489
|
-
"analytics:create:force:template",
|
|
490
|
-
"analytics:create:template:force",
|
|
491
|
-
"force:create:analytics:template",
|
|
492
|
-
"create:force:analytics:template",
|
|
493
|
-
"create:analytics:force:template",
|
|
494
|
-
"create:analytics:template:force",
|
|
495
|
-
"force:create:template:analytics",
|
|
496
|
-
"create:force:template:analytics",
|
|
497
|
-
"create:template:force:analytics",
|
|
498
|
-
"create:template:analytics:force",
|
|
499
|
-
"analytics:generate:template",
|
|
500
|
-
"generate:analytics:template",
|
|
501
|
-
"generate:template:analytics",
|
|
502
|
-
"analytics:template:generate",
|
|
503
|
-
"template:analytics:generate",
|
|
504
|
-
"template:generate:analytics"
|
|
505
|
-
],
|
|
506
|
-
"permutations": [
|
|
507
|
-
"template:generate:analytics:template",
|
|
508
|
-
"generate:template:analytics:template",
|
|
509
|
-
"generate:analytics:template:template",
|
|
510
|
-
"generate:analytics:template:template",
|
|
511
|
-
"template:analytics:generate:template",
|
|
512
|
-
"analytics:template:generate:template",
|
|
513
|
-
"analytics:generate:template:template",
|
|
514
|
-
"analytics:generate:template:template",
|
|
515
|
-
"template:analytics:template:generate",
|
|
516
|
-
"analytics:template:template:generate",
|
|
517
|
-
"analytics:template:template:generate",
|
|
518
|
-
"analytics:template:generate:template",
|
|
519
|
-
"template:generate:template:analytics",
|
|
520
|
-
"generate:template:template:analytics",
|
|
521
|
-
"generate:template:template:analytics",
|
|
522
|
-
"generate:template:analytics:template",
|
|
523
|
-
"template:template:generate:analytics",
|
|
524
|
-
"template:template:generate:analytics",
|
|
525
|
-
"template:generate:template:analytics",
|
|
526
|
-
"template:generate:analytics:template",
|
|
527
|
-
"template:template:analytics:generate",
|
|
528
|
-
"template:template:analytics:generate",
|
|
529
|
-
"template:analytics:template:generate",
|
|
530
|
-
"template:analytics:generate:template"
|
|
531
|
-
]
|
|
532
|
-
},
|
|
533
533
|
"template:generate:digital-experience:site": {
|
|
534
534
|
"aliases": [],
|
|
535
535
|
"args": {},
|
|
@@ -1742,11 +1742,12 @@
|
|
|
1742
1742
|
"template:generate:lightning-out": {
|
|
1743
1743
|
"aliases": [],
|
|
1744
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
|
|
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 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.",
|
|
1746
1746
|
"examples": [
|
|
1747
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
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
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 a CLWR app for an Experience Cloud site using a definition file:\n<%= config.bin %> <%= command.id %> --runtime CLWR --definition-file lo-def.json",
|
|
1750
1751
|
"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
|
],
|
|
1752
1753
|
"flags": {
|
|
@@ -1782,8 +1783,9 @@
|
|
|
1782
1783
|
"type": "option"
|
|
1783
1784
|
},
|
|
1784
1785
|
"runtime": {
|
|
1786
|
+
"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.",
|
|
1785
1787
|
"name": "runtime",
|
|
1786
|
-
"summary": "Runtime
|
|
1788
|
+
"summary": "Runtime that serves the app.",
|
|
1787
1789
|
"hasDynamicHelp": false,
|
|
1788
1790
|
"multiple": false,
|
|
1789
1791
|
"options": [
|
|
@@ -1794,7 +1796,7 @@
|
|
|
1794
1796
|
},
|
|
1795
1797
|
"host-domains": {
|
|
1796
1798
|
"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.",
|
|
1799
|
+
"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.",
|
|
1798
1800
|
"hasDynamicHelp": false,
|
|
1799
1801
|
"multiple": true,
|
|
1800
1802
|
"type": "option"
|
|
@@ -1853,13 +1855,11 @@
|
|
|
1853
1855
|
}
|
|
1854
1856
|
},
|
|
1855
1857
|
"hasDynamicHelp": false,
|
|
1856
|
-
"hidden": true,
|
|
1857
1858
|
"hiddenAliases": [],
|
|
1858
1859
|
"id": "template:generate:lightning-out",
|
|
1859
1860
|
"pluginAlias": "@salesforce/plugin-templates",
|
|
1860
1861
|
"pluginName": "@salesforce/plugin-templates",
|
|
1861
1862
|
"pluginType": "core",
|
|
1862
|
-
"state": "beta",
|
|
1863
1863
|
"strict": true,
|
|
1864
1864
|
"summary": "Generate the required metadata to scaffold a Lightning Out 2.0 app.",
|
|
1865
1865
|
"enableJsonFlag": true,
|
|
@@ -2815,5 +2815,5 @@
|
|
|
2815
2815
|
]
|
|
2816
2816
|
}
|
|
2817
2817
|
},
|
|
2818
|
-
"version": "57.
|
|
2818
|
+
"version": "57.5.1"
|
|
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.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@salesforce/core": "^9.2.0",
|
|
11
11
|
"@salesforce/sf-plugins-core": "^13.0.7",
|
|
12
|
-
"@salesforce/templates": "^66.17.
|
|
12
|
+
"@salesforce/templates": "^66.17.4"
|
|
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.147",
|
|
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.1.crt",
|
|
263
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/57.5.1.sig"
|
|
264
264
|
}
|
|
265
265
|
}
|