@salesforce/plugin-templates 57.4.4 → 57.4.6

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.
Files changed (3) hide show
  1. package/README.md +16 -16
  2. package/oclif.manifest.json +617 -617
  3. package/package.json +8 -8
@@ -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,16 +530,13 @@
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
- ],
533
+ "template:generate:digital-experience:site": {
534
+ "aliases": [],
385
535
  "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.",
536
+ "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
388
537
  "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"
538
+ "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
539
+ "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
390
540
  ],
391
541
  "flags": {
392
542
  "json": {
@@ -404,63 +554,72 @@
404
554
  "multiple": false,
405
555
  "type": "option"
406
556
  },
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": ".",
557
+ "target-org": {
558
+ "char": "o",
559
+ "name": "target-org",
560
+ "noCacheDefault": true,
561
+ "summary": "Username or alias of the target org.",
562
+ "hasDynamicHelp": true,
563
+ "multiple": false,
564
+ "type": "option"
565
+ },
566
+ "name": {
567
+ "char": "n",
568
+ "name": "name",
569
+ "required": true,
570
+ "summary": "Name of the Experience Cloud site to generate.",
417
571
  "hasDynamicHelp": false,
418
572
  "multiple": false,
419
573
  "type": "option"
420
574
  },
421
- "api-version": {
422
- "aliases": [
423
- "apiversion"
575
+ "template-name": {
576
+ "char": "t",
577
+ "name": "template-name",
578
+ "required": true,
579
+ "summary": "Template to use when generating the site.",
580
+ "hasDynamicHelp": false,
581
+ "multiple": false,
582
+ "options": [
583
+ "Build Your Own (LWR)"
424
584
  ],
425
- "deprecateAliases": true,
426
- "description": "Override the api version used for api requests made by this command",
427
- "name": "api-version",
585
+ "type": "option"
586
+ },
587
+ "url-path-prefix": {
588
+ "char": "p",
589
+ "name": "url-path-prefix",
590
+ "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
591
+ "default": "",
428
592
  "hasDynamicHelp": false,
429
593
  "multiple": false,
430
594
  "type": "option"
431
595
  },
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.",
596
+ "admin-email": {
597
+ "char": "e",
598
+ "name": "admin-email",
599
+ "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
441
600
  "hasDynamicHelp": false,
442
601
  "multiple": false,
443
602
  "type": "option"
444
603
  },
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",
604
+ "output-dir": {
605
+ "char": "d",
606
+ "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
607
+ "name": "output-dir",
608
+ "summary": "Directory to generate the site files in.",
451
609
  "hasDynamicHelp": false,
452
610
  "multiple": false,
453
611
  "type": "option"
454
612
  }
455
613
  },
456
- "hasDynamicHelp": false,
614
+ "hasDynamicHelp": true,
457
615
  "hiddenAliases": [],
458
- "id": "template:generate:analytics:template",
616
+ "id": "template:generate:digital-experience:site",
459
617
  "pluginAlias": "@salesforce/plugin-templates",
460
618
  "pluginName": "@salesforce/plugin-templates",
461
619
  "pluginType": "core",
620
+ "state": "preview",
462
621
  "strict": true,
463
- "summary": "Generate a simple Analytics template.",
622
+ "summary": "Generate an Experience Cloud site.",
464
623
  "enableJsonFlag": true,
465
624
  "isESM": true,
466
625
  "relativePath": [
@@ -468,167 +627,8 @@
468
627
  "commands",
469
628
  "template",
470
629
  "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
- "template:generate:digital-experience:site": {
534
- "aliases": [],
535
- "args": {},
536
- "description": "Creates the metadata of an Experience Cloud site with the specified template, name, and URL path prefix. The output includes all the necessary metadata files, including DigitalExperienceConfig, DigitalExperienceBundle, Network, and CustomSite.\nUnlike `sf community create`, which builds the site directly in the org, this command generates only the local metadata.",
537
- "examples": [
538
- "Generate an Experience Cloud site using the Build Your Own (LWR) template. The site is called \"mysite\" and has the URL path prefix \"mysite\":\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite",
539
- "Generate an Experience Cloud site like the last example, but generate the files into the specified output directory:\n<%= config.bin %> <%= command.id %> --template-name \"Build Your Own (LWR)\" --name mysite --url-path-prefix mysite --output-dir force-app/main/default"
540
- ],
541
- "flags": {
542
- "json": {
543
- "description": "Format output as json.",
544
- "helpGroup": "GLOBAL",
545
- "name": "json",
546
- "allowNo": false,
547
- "type": "boolean"
548
- },
549
- "flags-dir": {
550
- "helpGroup": "GLOBAL",
551
- "name": "flags-dir",
552
- "summary": "Import flag values from a directory.",
553
- "hasDynamicHelp": false,
554
- "multiple": false,
555
- "type": "option"
556
- },
557
- "target-org": {
558
- "char": "o",
559
- "name": "target-org",
560
- "noCacheDefault": true,
561
- "summary": "Username or alias of the target org.",
562
- "hasDynamicHelp": true,
563
- "multiple": false,
564
- "type": "option"
565
- },
566
- "name": {
567
- "char": "n",
568
- "name": "name",
569
- "required": true,
570
- "summary": "Name of the Experience Cloud site to generate.",
571
- "hasDynamicHelp": false,
572
- "multiple": false,
573
- "type": "option"
574
- },
575
- "template-name": {
576
- "char": "t",
577
- "name": "template-name",
578
- "required": true,
579
- "summary": "Template to use when generating the site.",
580
- "hasDynamicHelp": false,
581
- "multiple": false,
582
- "options": [
583
- "Build Your Own (LWR)"
584
- ],
585
- "type": "option"
586
- },
587
- "url-path-prefix": {
588
- "char": "p",
589
- "name": "url-path-prefix",
590
- "summary": "URL path prefix for the site; must contain only alphanumeric characters.",
591
- "default": "",
592
- "hasDynamicHelp": false,
593
- "multiple": false,
594
- "type": "option"
595
- },
596
- "admin-email": {
597
- "char": "e",
598
- "name": "admin-email",
599
- "summary": "Email address for the site administrator. Defaults to the username of the currently authenticated user.",
600
- "hasDynamicHelp": false,
601
- "multiple": false,
602
- "type": "option"
603
- },
604
- "output-dir": {
605
- "char": "d",
606
- "description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json file and uses the default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
607
- "name": "output-dir",
608
- "summary": "Directory to generate the site files in.",
609
- "hasDynamicHelp": false,
610
- "multiple": false,
611
- "type": "option"
612
- }
613
- },
614
- "hasDynamicHelp": true,
615
- "hiddenAliases": [],
616
- "id": "template:generate:digital-experience:site",
617
- "pluginAlias": "@salesforce/plugin-templates",
618
- "pluginName": "@salesforce/plugin-templates",
619
- "pluginType": "core",
620
- "state": "preview",
621
- "strict": true,
622
- "summary": "Generate an Experience Cloud site.",
623
- "enableJsonFlag": true,
624
- "isESM": true,
625
- "relativePath": [
626
- "lib",
627
- "commands",
628
- "template",
629
- "generate",
630
- "digital-experience",
631
- "site.js"
630
+ "digital-experience",
631
+ "site.js"
632
632
  ],
633
633
  "aliasPermutations": [],
634
634
  "permutations": [
@@ -841,17 +841,15 @@
841
841
  "flexipage:generate:template"
842
842
  ]
843
843
  },
844
- "template:generate:lightning:app": {
845
- "aliases": [
846
- "force:lightning:app:create",
847
- "lightning:generate:app"
848
- ],
844
+ "template:generate:lightning-out": {
845
+ "aliases": [],
849
846
  "args": {},
850
- "deprecateAliases": true,
851
- "description": "Generates a Lightning App bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
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 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.",
852
848
  "examples": [
853
- "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
854
- "Similar to the previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name myapp --output-dir force-app/main/default/aura"
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 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"
855
853
  ],
856
854
  "flags": {
857
855
  "json": {
@@ -869,33 +867,68 @@
869
867
  "multiple": false,
870
868
  "type": "option"
871
869
  },
872
- "name": {
873
- "aliases": [
874
- "appname"
875
- ],
876
- "char": "n",
877
- "deprecateAliases": true,
878
- "description": "The name can be up to 40 characters and must start with a letter.",
879
- "name": "name",
880
- "required": true,
881
- "summary": "Name of the generated Lightning App.",
870
+ "app-name": {
871
+ "name": "app-name",
872
+ "required": false,
873
+ "summary": "Developer name of the new Lightning Out 2.0 app.",
882
874
  "hasDynamicHelp": false,
883
875
  "multiple": false,
884
876
  "type": "option"
885
877
  },
886
- "template": {
887
- "char": "t",
888
- "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
889
- "name": "template",
890
- "summary": "Template to use for file creation.",
891
- "default": "DefaultLightningApp",
878
+ "eca-name": {
879
+ "name": "eca-name",
880
+ "required": false,
881
+ "summary": "Developer name of the External Client Application associated with the app.",
882
+ "hasDynamicHelp": false,
883
+ "multiple": false,
884
+ "type": "option"
885
+ },
886
+ "runtime": {
887
+ "name": "runtime",
888
+ "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).",
892
889
  "hasDynamicHelp": false,
893
890
  "multiple": false,
894
891
  "options": [
895
- "DefaultLightningApp"
892
+ "LWR_CORE",
893
+ "CLWR"
896
894
  ],
897
895
  "type": "option"
898
896
  },
897
+ "host-domains": {
898
+ "name": "host-domains",
899
+ "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.",
900
+ "hasDynamicHelp": false,
901
+ "multiple": true,
902
+ "type": "option"
903
+ },
904
+ "components": {
905
+ "name": "components",
906
+ "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.",
907
+ "hasDynamicHelp": false,
908
+ "multiple": true,
909
+ "type": "option"
910
+ },
911
+ "eca-contact-email": {
912
+ "name": "eca-contact-email",
913
+ "summary": "Contact email for the External Client Application.",
914
+ "hasDynamicHelp": false,
915
+ "multiple": false,
916
+ "type": "option"
917
+ },
918
+ "eca-callback-url": {
919
+ "name": "eca-callback-url",
920
+ "summary": "OAuth callback URL for the External Client Application.",
921
+ "hasDynamicHelp": false,
922
+ "multiple": false,
923
+ "type": "option"
924
+ },
925
+ "definition-file": {
926
+ "name": "definition-file",
927
+ "summary": "Path to a JSON file describing the Lightning Out 2.0 app. Individual flags, when supplied, override the corresponding value in this file.",
928
+ "hasDynamicHelp": false,
929
+ "multiple": false,
930
+ "type": "option"
931
+ },
899
932
  "output-dir": {
900
933
  "aliases": [
901
934
  "outputdir"
@@ -910,25 +943,6 @@
910
943
  "multiple": false,
911
944
  "type": "option"
912
945
  },
913
- "api-version": {
914
- "aliases": [
915
- "apiversion"
916
- ],
917
- "deprecateAliases": true,
918
- "description": "Override the api version used for api requests made by this command",
919
- "name": "api-version",
920
- "hasDynamicHelp": false,
921
- "multiple": false,
922
- "type": "option"
923
- },
924
- "internal": {
925
- "char": "i",
926
- "hidden": true,
927
- "name": "internal",
928
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
929
- "allowNo": false,
930
- "type": "boolean"
931
- },
932
946
  "loglevel": {
933
947
  "deprecated": {
934
948
  "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."
@@ -941,8 +955,137 @@
941
955
  }
942
956
  },
943
957
  "hasDynamicHelp": false,
958
+ "hidden": true,
944
959
  "hiddenAliases": [],
945
- "id": "template:generate:lightning:app",
960
+ "id": "template:generate:lightning-out",
961
+ "pluginAlias": "@salesforce/plugin-templates",
962
+ "pluginName": "@salesforce/plugin-templates",
963
+ "pluginType": "core",
964
+ "state": "beta",
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
+ },
987
+ "template:generate:lightning:app": {
988
+ "aliases": [
989
+ "force:lightning:app:create",
990
+ "lightning:generate:app"
991
+ ],
992
+ "args": {},
993
+ "deprecateAliases": true,
994
+ "description": "Generates a Lightning App bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.",
995
+ "examples": [
996
+ "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
997
+ "Similar to the previous example, but generate the files in the \"force-app/main/default/aura\" directory:\n<%= config.bin %> <%= command.id %> --name myapp --output-dir force-app/main/default/aura"
998
+ ],
999
+ "flags": {
1000
+ "json": {
1001
+ "description": "Format output as json.",
1002
+ "helpGroup": "GLOBAL",
1003
+ "name": "json",
1004
+ "allowNo": false,
1005
+ "type": "boolean"
1006
+ },
1007
+ "flags-dir": {
1008
+ "helpGroup": "GLOBAL",
1009
+ "name": "flags-dir",
1010
+ "summary": "Import flag values from a directory.",
1011
+ "hasDynamicHelp": false,
1012
+ "multiple": false,
1013
+ "type": "option"
1014
+ },
1015
+ "name": {
1016
+ "aliases": [
1017
+ "appname"
1018
+ ],
1019
+ "char": "n",
1020
+ "deprecateAliases": true,
1021
+ "description": "The name can be up to 40 characters and must start with a letter.",
1022
+ "name": "name",
1023
+ "required": true,
1024
+ "summary": "Name of the generated Lightning App.",
1025
+ "hasDynamicHelp": false,
1026
+ "multiple": false,
1027
+ "type": "option"
1028
+ },
1029
+ "template": {
1030
+ "char": "t",
1031
+ "description": "Supplied parameter values or default values are filled into a copy of the template. For Lightning Web Components, if this flag isn't specified, the CLI command automatically selects the template based on the \"defaultLwcLanguage\" field in the DX project's \"sfdx-project.json\" file.",
1032
+ "name": "template",
1033
+ "summary": "Template to use for file creation.",
1034
+ "default": "DefaultLightningApp",
1035
+ "hasDynamicHelp": false,
1036
+ "multiple": false,
1037
+ "options": [
1038
+ "DefaultLightningApp"
1039
+ ],
1040
+ "type": "option"
1041
+ },
1042
+ "output-dir": {
1043
+ "aliases": [
1044
+ "outputdir"
1045
+ ],
1046
+ "char": "d",
1047
+ "deprecateAliases": true,
1048
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1049
+ "name": "output-dir",
1050
+ "summary": "Directory for saving the created files.",
1051
+ "default": ".",
1052
+ "hasDynamicHelp": false,
1053
+ "multiple": false,
1054
+ "type": "option"
1055
+ },
1056
+ "api-version": {
1057
+ "aliases": [
1058
+ "apiversion"
1059
+ ],
1060
+ "deprecateAliases": true,
1061
+ "description": "Override the api version used for api requests made by this command",
1062
+ "name": "api-version",
1063
+ "hasDynamicHelp": false,
1064
+ "multiple": false,
1065
+ "type": "option"
1066
+ },
1067
+ "internal": {
1068
+ "char": "i",
1069
+ "hidden": true,
1070
+ "name": "internal",
1071
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1072
+ "allowNo": false,
1073
+ "type": "boolean"
1074
+ },
1075
+ "loglevel": {
1076
+ "deprecated": {
1077
+ "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."
1078
+ },
1079
+ "hidden": true,
1080
+ "name": "loglevel",
1081
+ "hasDynamicHelp": false,
1082
+ "multiple": false,
1083
+ "type": "option"
1084
+ }
1085
+ },
1086
+ "hasDynamicHelp": false,
1087
+ "hiddenAliases": [],
1088
+ "id": "template:generate:lightning:app",
946
1089
  "pluginAlias": "@salesforce/plugin-templates",
947
1090
  "pluginName": "@salesforce/plugin-templates",
948
1091
  "pluginType": "core",
@@ -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",
@@ -1915,220 +1915,36 @@
1915
1915
  },
1916
1916
  "name": {
1917
1917
  "aliases": [
1918
- "projectname"
1919
- ],
1920
- "char": "n",
1921
- "deprecateAliases": true,
1922
- "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
1923
- "name": "name",
1924
- "required": true,
1925
- "summary": "Name of the generated project.",
1926
- "hasDynamicHelp": false,
1927
- "multiple": false,
1928
- "type": "option"
1929
- },
1930
- "template": {
1931
- "char": "t",
1932
- "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
1933
- "name": "template",
1934
- "summary": "Template to use for project creation.",
1935
- "default": "standard",
1936
- "hasDynamicHelp": false,
1937
- "multiple": false,
1938
- "options": [
1939
- "standard",
1940
- "empty",
1941
- "analytics",
1942
- "reactinternalapp",
1943
- "reactexternalapp",
1944
- "angularinternalapp",
1945
- "angularexternalapp",
1946
- "agent"
1947
- ],
1948
- "type": "option"
1949
- },
1950
- "output-dir": {
1951
- "aliases": [
1952
- "outputdir"
1953
- ],
1954
- "char": "d",
1955
- "deprecateAliases": true,
1956
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1957
- "name": "output-dir",
1958
- "summary": "Directory for saving the created files.",
1959
- "default": ".",
1960
- "hasDynamicHelp": false,
1961
- "multiple": false,
1962
- "type": "option"
1963
- },
1964
- "namespace": {
1965
- "char": "s",
1966
- "name": "namespace",
1967
- "summary": "Namespace associated with this project and any connected scratch orgs.",
1968
- "default": "",
1969
- "hasDynamicHelp": false,
1970
- "multiple": false,
1971
- "type": "option"
1972
- },
1973
- "default-package-dir": {
1974
- "aliases": [
1975
- "defaultpackagedir"
1976
- ],
1977
- "char": "p",
1978
- "deprecateAliases": true,
1979
- "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1980
- "name": "default-package-dir",
1981
- "summary": "Default package directory name.",
1982
- "default": "force-app",
1983
- "hasDynamicHelp": false,
1984
- "multiple": false,
1985
- "type": "option"
1986
- },
1987
- "manifest": {
1988
- "char": "x",
1989
- "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1990
- "name": "manifest",
1991
- "summary": "Generate a manifest (package.xml) for change-set based development.",
1992
- "allowNo": false,
1993
- "type": "boolean"
1994
- },
1995
- "login-url": {
1996
- "aliases": [
1997
- "loginurl"
1998
- ],
1999
- "char": "l",
2000
- "deprecateAliases": true,
2001
- "description": "Normally defaults to https://login.salesforce.com.",
2002
- "hidden": true,
2003
- "name": "login-url",
2004
- "summary": "Salesforce instance login URL.",
2005
- "default": "https://login.salesforce.com",
2006
- "hasDynamicHelp": false,
2007
- "multiple": false,
2008
- "type": "option"
2009
- },
2010
- "lwc-language": {
2011
- "description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
2012
- "name": "lwc-language",
2013
- "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
2014
- "hasDynamicHelp": false,
2015
- "multiple": false,
2016
- "options": [
2017
- "javascript",
2018
- "typescript"
2019
- ],
2020
- "type": "option"
2021
- },
2022
- "loglevel": {
2023
- "deprecated": {
2024
- "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."
2025
- },
2026
- "hidden": true,
2027
- "name": "loglevel",
2028
- "hasDynamicHelp": false,
2029
- "multiple": false,
2030
- "type": "option"
2031
- },
2032
- "api-version": {
2033
- "description": "Override the api version used for api requests made by this command",
2034
- "name": "api-version",
2035
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
2036
- "hasDynamicHelp": false,
2037
- "multiple": false,
2038
- "type": "option"
2039
- }
2040
- },
2041
- "hasDynamicHelp": false,
2042
- "hiddenAliases": [],
2043
- "id": "template:generate:project",
2044
- "pluginAlias": "@salesforce/plugin-templates",
2045
- "pluginName": "@salesforce/plugin-templates",
2046
- "pluginType": "core",
2047
- "strict": true,
2048
- "summary": "Generate a Salesforce DX project.",
2049
- "enableJsonFlag": true,
2050
- "isESM": true,
2051
- "relativePath": [
2052
- "lib",
2053
- "commands",
2054
- "template",
2055
- "generate",
2056
- "project",
2057
- "index.js"
2058
- ],
2059
- "aliasPermutations": [
2060
- "force:project:create",
2061
- "project:force:create",
2062
- "project:create:force",
2063
- "force:create:project",
2064
- "create:force:project",
2065
- "create:project:force",
2066
- "project:generate",
2067
- "generate:project"
2068
- ],
2069
- "permutations": [
2070
- "template:generate:project",
2071
- "generate:template:project",
2072
- "generate:project:template",
2073
- "template:project:generate",
2074
- "project:template:generate",
2075
- "project:generate:template"
2076
- ]
2077
- },
2078
- "template:generate:static-resource": {
2079
- "aliases": [
2080
- "force:staticresource:create",
2081
- "static-resource:generate"
2082
- ],
2083
- "args": {},
2084
- "deprecateAliases": true,
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.",
2086
- "examples": [
2087
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
2088
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
2089
- "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"
2090
- ],
2091
- "flags": {
2092
- "json": {
2093
- "description": "Format output as json.",
2094
- "helpGroup": "GLOBAL",
2095
- "name": "json",
2096
- "allowNo": false,
2097
- "type": "boolean"
2098
- },
2099
- "flags-dir": {
2100
- "helpGroup": "GLOBAL",
2101
- "name": "flags-dir",
2102
- "summary": "Import flag values from a directory.",
2103
- "hasDynamicHelp": false,
2104
- "multiple": false,
2105
- "type": "option"
2106
- },
2107
- "name": {
2108
- "aliases": [
2109
- "resourcename"
1918
+ "projectname"
2110
1919
  ],
2111
1920
  "char": "n",
2112
1921
  "deprecateAliases": true,
2113
- "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.",
1922
+ "description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
2114
1923
  "name": "name",
2115
1924
  "required": true,
2116
- "summary": "Name of the generated static resource.",
1925
+ "summary": "Name of the generated project.",
2117
1926
  "hasDynamicHelp": false,
2118
1927
  "multiple": false,
2119
1928
  "type": "option"
2120
1929
  },
2121
- "type": {
2122
- "aliases": [
2123
- "contenttype"
2124
- ],
2125
- "deprecateAliases": true,
2126
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
2127
- "name": "type",
2128
- "summary": "Content type (mime type) of the generated static resource.",
2129
- "default": "application/zip",
1930
+ "template": {
1931
+ "char": "t",
1932
+ "description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe angularinternalapp and angularexternalapp templates provide Angular-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
1933
+ "name": "template",
1934
+ "summary": "Template to use for project creation.",
1935
+ "default": "standard",
2130
1936
  "hasDynamicHelp": false,
2131
1937
  "multiple": false,
1938
+ "options": [
1939
+ "standard",
1940
+ "empty",
1941
+ "analytics",
1942
+ "reactinternalapp",
1943
+ "reactexternalapp",
1944
+ "angularinternalapp",
1945
+ "angularexternalapp",
1946
+ "agent"
1947
+ ],
2132
1948
  "type": "option"
2133
1949
  },
2134
1950
  "output-dir": {
@@ -2145,15 +1961,62 @@
2145
1961
  "multiple": false,
2146
1962
  "type": "option"
2147
1963
  },
2148
- "api-version": {
1964
+ "namespace": {
1965
+ "char": "s",
1966
+ "name": "namespace",
1967
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
1968
+ "default": "",
1969
+ "hasDynamicHelp": false,
1970
+ "multiple": false,
1971
+ "type": "option"
1972
+ },
1973
+ "default-package-dir": {
2149
1974
  "aliases": [
2150
- "apiversion"
1975
+ "defaultpackagedir"
2151
1976
  ],
1977
+ "char": "p",
2152
1978
  "deprecateAliases": true,
2153
- "description": "Override the api version used for api requests made by this command",
2154
- "name": "api-version",
1979
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1980
+ "name": "default-package-dir",
1981
+ "summary": "Default package directory name.",
1982
+ "default": "force-app",
1983
+ "hasDynamicHelp": false,
1984
+ "multiple": false,
1985
+ "type": "option"
1986
+ },
1987
+ "manifest": {
1988
+ "char": "x",
1989
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1990
+ "name": "manifest",
1991
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
1992
+ "allowNo": false,
1993
+ "type": "boolean"
1994
+ },
1995
+ "login-url": {
1996
+ "aliases": [
1997
+ "loginurl"
1998
+ ],
1999
+ "char": "l",
2000
+ "deprecateAliases": true,
2001
+ "description": "Normally defaults to https://login.salesforce.com.",
2002
+ "hidden": true,
2003
+ "name": "login-url",
2004
+ "summary": "Salesforce instance login URL.",
2005
+ "default": "https://login.salesforce.com",
2006
+ "hasDynamicHelp": false,
2007
+ "multiple": false,
2008
+ "type": "option"
2009
+ },
2010
+ "lwc-language": {
2011
+ "description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
2012
+ "name": "lwc-language",
2013
+ "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
2155
2014
  "hasDynamicHelp": false,
2156
2015
  "multiple": false,
2016
+ "options": [
2017
+ "javascript",
2018
+ "typescript"
2019
+ ],
2157
2020
  "type": "option"
2158
2021
  },
2159
2022
  "loglevel": {
@@ -2165,16 +2028,24 @@
2165
2028
  "hasDynamicHelp": false,
2166
2029
  "multiple": false,
2167
2030
  "type": "option"
2031
+ },
2032
+ "api-version": {
2033
+ "description": "Override the api version used for api requests made by this command",
2034
+ "name": "api-version",
2035
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
2036
+ "hasDynamicHelp": false,
2037
+ "multiple": false,
2038
+ "type": "option"
2168
2039
  }
2169
2040
  },
2170
2041
  "hasDynamicHelp": false,
2171
2042
  "hiddenAliases": [],
2172
- "id": "template:generate:static-resource",
2043
+ "id": "template:generate:project",
2173
2044
  "pluginAlias": "@salesforce/plugin-templates",
2174
2045
  "pluginName": "@salesforce/plugin-templates",
2175
2046
  "pluginType": "core",
2176
2047
  "strict": true,
2177
- "summary": "Generate a static resource.",
2048
+ "summary": "Generate a Salesforce DX project.",
2178
2049
  "enableJsonFlag": true,
2179
2050
  "isESM": true,
2180
2051
  "relativePath": [
@@ -2182,26 +2053,26 @@
2182
2053
  "commands",
2183
2054
  "template",
2184
2055
  "generate",
2185
- "static-resource",
2056
+ "project",
2186
2057
  "index.js"
2187
2058
  ],
2188
2059
  "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"
2060
+ "force:project:create",
2061
+ "project:force:create",
2062
+ "project:create:force",
2063
+ "force:create:project",
2064
+ "create:force:project",
2065
+ "create:project:force",
2066
+ "project:generate",
2067
+ "generate:project"
2197
2068
  ],
2198
2069
  "permutations": [
2199
- "template:generate:static-resource",
2200
- "generate:template:static-resource",
2201
- "generate:static-resource:template",
2202
- "template:static-resource:generate",
2203
- "static-resource:template:generate",
2204
- "static-resource:generate:template"
2070
+ "template:generate:project",
2071
+ "generate:template:project",
2072
+ "generate:project:template",
2073
+ "template:project:generate",
2074
+ "project:template:generate",
2075
+ "project:generate:template"
2205
2076
  ]
2206
2077
  },
2207
2078
  "template:generate:ui-bundle": {
@@ -2811,7 +2682,136 @@
2811
2682
  "page:visualforce:template:generate",
2812
2683
  "page:visualforce:generate:template"
2813
2684
  ]
2685
+ },
2686
+ "template:generate:static-resource": {
2687
+ "aliases": [
2688
+ "force:staticresource:create",
2689
+ "static-resource:generate"
2690
+ ],
2691
+ "args": {},
2692
+ "deprecateAliases": true,
2693
+ "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.",
2694
+ "examples": [
2695
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
2696
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
2697
+ "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"
2698
+ ],
2699
+ "flags": {
2700
+ "json": {
2701
+ "description": "Format output as json.",
2702
+ "helpGroup": "GLOBAL",
2703
+ "name": "json",
2704
+ "allowNo": false,
2705
+ "type": "boolean"
2706
+ },
2707
+ "flags-dir": {
2708
+ "helpGroup": "GLOBAL",
2709
+ "name": "flags-dir",
2710
+ "summary": "Import flag values from a directory.",
2711
+ "hasDynamicHelp": false,
2712
+ "multiple": false,
2713
+ "type": "option"
2714
+ },
2715
+ "name": {
2716
+ "aliases": [
2717
+ "resourcename"
2718
+ ],
2719
+ "char": "n",
2720
+ "deprecateAliases": true,
2721
+ "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.",
2722
+ "name": "name",
2723
+ "required": true,
2724
+ "summary": "Name of the generated static resource.",
2725
+ "hasDynamicHelp": false,
2726
+ "multiple": false,
2727
+ "type": "option"
2728
+ },
2729
+ "type": {
2730
+ "aliases": [
2731
+ "contenttype"
2732
+ ],
2733
+ "deprecateAliases": true,
2734
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
2735
+ "name": "type",
2736
+ "summary": "Content type (mime type) of the generated static resource.",
2737
+ "default": "application/zip",
2738
+ "hasDynamicHelp": false,
2739
+ "multiple": false,
2740
+ "type": "option"
2741
+ },
2742
+ "output-dir": {
2743
+ "aliases": [
2744
+ "outputdir"
2745
+ ],
2746
+ "char": "d",
2747
+ "deprecateAliases": true,
2748
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2749
+ "name": "output-dir",
2750
+ "summary": "Directory for saving the created files.",
2751
+ "default": ".",
2752
+ "hasDynamicHelp": false,
2753
+ "multiple": false,
2754
+ "type": "option"
2755
+ },
2756
+ "api-version": {
2757
+ "aliases": [
2758
+ "apiversion"
2759
+ ],
2760
+ "deprecateAliases": true,
2761
+ "description": "Override the api version used for api requests made by this command",
2762
+ "name": "api-version",
2763
+ "hasDynamicHelp": false,
2764
+ "multiple": false,
2765
+ "type": "option"
2766
+ },
2767
+ "loglevel": {
2768
+ "deprecated": {
2769
+ "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."
2770
+ },
2771
+ "hidden": true,
2772
+ "name": "loglevel",
2773
+ "hasDynamicHelp": false,
2774
+ "multiple": false,
2775
+ "type": "option"
2776
+ }
2777
+ },
2778
+ "hasDynamicHelp": false,
2779
+ "hiddenAliases": [],
2780
+ "id": "template:generate:static-resource",
2781
+ "pluginAlias": "@salesforce/plugin-templates",
2782
+ "pluginName": "@salesforce/plugin-templates",
2783
+ "pluginType": "core",
2784
+ "strict": true,
2785
+ "summary": "Generate a static resource.",
2786
+ "enableJsonFlag": true,
2787
+ "isESM": true,
2788
+ "relativePath": [
2789
+ "lib",
2790
+ "commands",
2791
+ "template",
2792
+ "generate",
2793
+ "static-resource",
2794
+ "index.js"
2795
+ ],
2796
+ "aliasPermutations": [
2797
+ "force:staticresource:create",
2798
+ "staticresource:force:create",
2799
+ "staticresource:create:force",
2800
+ "force:create:staticresource",
2801
+ "create:force:staticresource",
2802
+ "create:staticresource:force",
2803
+ "static-resource:generate",
2804
+ "generate:static-resource"
2805
+ ],
2806
+ "permutations": [
2807
+ "template:generate:static-resource",
2808
+ "generate:template:static-resource",
2809
+ "generate:static-resource:template",
2810
+ "template:static-resource:generate",
2811
+ "static-resource:template:generate",
2812
+ "static-resource:generate:template"
2813
+ ]
2814
2814
  }
2815
2815
  },
2816
- "version": "57.4.4"
2816
+ "version": "57.4.6"
2817
2817
  }