@salesforce/plugin-templates 57.0.9 → 57.0.10

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 +15 -15
  2. package/oclif.manifest.json +641 -641
  3. package/package.json +4 -4
@@ -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,20 @@
841
841
  "flexipage:generate:template"
842
842
  ]
843
843
  },
844
- "template:generate:lightning:app": {
844
+ "template:generate:project": {
845
845
  "aliases": [
846
- "force:lightning:app:create",
847
- "lightning:generate:app"
846
+ "force:project:create",
847
+ "project:generate"
848
848
  ],
849
849
  "args": {},
850
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.",
851
+ "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
852
852
  "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"
853
+ "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
854
+ "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
855
+ "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
856
+ "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
857
+ "Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
855
858
  ],
856
859
  "flags": {
857
860
  "json": {
@@ -871,28 +874,35 @@
871
874
  },
872
875
  "name": {
873
876
  "aliases": [
874
- "appname"
877
+ "projectname"
875
878
  ],
876
879
  "char": "n",
877
880
  "deprecateAliases": true,
878
- "description": "The name can be up to 40 characters and must start with a letter.",
881
+ "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.",
879
882
  "name": "name",
880
883
  "required": true,
881
- "summary": "Name of the generated Lightning App.",
884
+ "summary": "Name of the generated project.",
882
885
  "hasDynamicHelp": false,
883
886
  "multiple": false,
884
887
  "type": "option"
885
888
  },
886
889
  "template": {
887
890
  "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.",
891
+ "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.",
889
892
  "name": "template",
890
- "summary": "Template to use for file creation.",
891
- "default": "DefaultLightningApp",
893
+ "summary": "Template to use for project creation.",
894
+ "default": "standard",
892
895
  "hasDynamicHelp": false,
893
896
  "multiple": false,
894
897
  "options": [
895
- "DefaultLightningApp"
898
+ "standard",
899
+ "empty",
900
+ "analytics",
901
+ "reactinternalapp",
902
+ "reactexternalapp",
903
+ "angularinternalapp",
904
+ "angularexternalapp",
905
+ "agent"
896
906
  ],
897
907
  "type": "option"
898
908
  },
@@ -910,25 +920,64 @@
910
920
  "multiple": false,
911
921
  "type": "option"
912
922
  },
913
- "api-version": {
923
+ "namespace": {
924
+ "char": "s",
925
+ "name": "namespace",
926
+ "summary": "Namespace associated with this project and any connected scratch orgs.",
927
+ "default": "",
928
+ "hasDynamicHelp": false,
929
+ "multiple": false,
930
+ "type": "option"
931
+ },
932
+ "default-package-dir": {
914
933
  "aliases": [
915
- "apiversion"
934
+ "defaultpackagedir"
916
935
  ],
936
+ "char": "p",
917
937
  "deprecateAliases": true,
918
- "description": "Override the api version used for api requests made by this command",
919
- "name": "api-version",
938
+ "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
939
+ "name": "default-package-dir",
940
+ "summary": "Default package directory name.",
941
+ "default": "force-app",
920
942
  "hasDynamicHelp": false,
921
943
  "multiple": false,
922
944
  "type": "option"
923
945
  },
924
- "internal": {
925
- "char": "i",
926
- "hidden": true,
927
- "name": "internal",
928
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
946
+ "manifest": {
947
+ "char": "x",
948
+ "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
949
+ "name": "manifest",
950
+ "summary": "Generate a manifest (package.xml) for change-set based development.",
929
951
  "allowNo": false,
930
952
  "type": "boolean"
931
953
  },
954
+ "login-url": {
955
+ "aliases": [
956
+ "loginurl"
957
+ ],
958
+ "char": "l",
959
+ "deprecateAliases": true,
960
+ "description": "Normally defaults to https://login.salesforce.com.",
961
+ "hidden": true,
962
+ "name": "login-url",
963
+ "summary": "Salesforce instance login URL.",
964
+ "default": "https://login.salesforce.com",
965
+ "hasDynamicHelp": false,
966
+ "multiple": false,
967
+ "type": "option"
968
+ },
969
+ "lwc-language": {
970
+ "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.",
971
+ "name": "lwc-language",
972
+ "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
973
+ "hasDynamicHelp": false,
974
+ "multiple": false,
975
+ "options": [
976
+ "javascript",
977
+ "typescript"
978
+ ],
979
+ "type": "option"
980
+ },
932
981
  "loglevel": {
933
982
  "deprecated": {
934
983
  "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."
@@ -938,16 +987,24 @@
938
987
  "hasDynamicHelp": false,
939
988
  "multiple": false,
940
989
  "type": "option"
990
+ },
991
+ "api-version": {
992
+ "description": "Override the api version used for api requests made by this command",
993
+ "name": "api-version",
994
+ "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
995
+ "hasDynamicHelp": false,
996
+ "multiple": false,
997
+ "type": "option"
941
998
  }
942
999
  },
943
1000
  "hasDynamicHelp": false,
944
1001
  "hiddenAliases": [],
945
- "id": "template:generate:lightning:app",
1002
+ "id": "template:generate:project",
946
1003
  "pluginAlias": "@salesforce/plugin-templates",
947
1004
  "pluginName": "@salesforce/plugin-templates",
948
1005
  "pluginType": "core",
949
1006
  "strict": true,
950
- "summary": "Generate a Lightning App.",
1007
+ "summary": "Generate a Salesforce DX project.",
951
1008
  "enableJsonFlag": true,
952
1009
  "isESM": true,
953
1010
  "relativePath": [
@@ -955,7 +1012,143 @@
955
1012
  "commands",
956
1013
  "template",
957
1014
  "generate",
958
- "lightning",
1015
+ "project",
1016
+ "index.js"
1017
+ ],
1018
+ "aliasPermutations": [
1019
+ "force:project:create",
1020
+ "project:force:create",
1021
+ "project:create:force",
1022
+ "force:create:project",
1023
+ "create:force:project",
1024
+ "create:project:force",
1025
+ "project:generate",
1026
+ "generate:project"
1027
+ ],
1028
+ "permutations": [
1029
+ "template:generate:project",
1030
+ "generate:template:project",
1031
+ "generate:project:template",
1032
+ "template:project:generate",
1033
+ "project:template:generate",
1034
+ "project:generate:template"
1035
+ ]
1036
+ },
1037
+ "template:generate:lightning:app": {
1038
+ "aliases": [
1039
+ "force:lightning:app:create",
1040
+ "lightning:generate:app"
1041
+ ],
1042
+ "args": {},
1043
+ "deprecateAliases": true,
1044
+ "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.",
1045
+ "examples": [
1046
+ "Generate the metadata files for a Lightning app bundle called \"myapp\" in the current directory:\n<%= config.bin %> <%= command.id %> --name myapp",
1047
+ "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"
1048
+ ],
1049
+ "flags": {
1050
+ "json": {
1051
+ "description": "Format output as json.",
1052
+ "helpGroup": "GLOBAL",
1053
+ "name": "json",
1054
+ "allowNo": false,
1055
+ "type": "boolean"
1056
+ },
1057
+ "flags-dir": {
1058
+ "helpGroup": "GLOBAL",
1059
+ "name": "flags-dir",
1060
+ "summary": "Import flag values from a directory.",
1061
+ "hasDynamicHelp": false,
1062
+ "multiple": false,
1063
+ "type": "option"
1064
+ },
1065
+ "name": {
1066
+ "aliases": [
1067
+ "appname"
1068
+ ],
1069
+ "char": "n",
1070
+ "deprecateAliases": true,
1071
+ "description": "The name can be up to 40 characters and must start with a letter.",
1072
+ "name": "name",
1073
+ "required": true,
1074
+ "summary": "Name of the generated Lightning App.",
1075
+ "hasDynamicHelp": false,
1076
+ "multiple": false,
1077
+ "type": "option"
1078
+ },
1079
+ "template": {
1080
+ "char": "t",
1081
+ "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.",
1082
+ "name": "template",
1083
+ "summary": "Template to use for file creation.",
1084
+ "default": "DefaultLightningApp",
1085
+ "hasDynamicHelp": false,
1086
+ "multiple": false,
1087
+ "options": [
1088
+ "DefaultLightningApp"
1089
+ ],
1090
+ "type": "option"
1091
+ },
1092
+ "output-dir": {
1093
+ "aliases": [
1094
+ "outputdir"
1095
+ ],
1096
+ "char": "d",
1097
+ "deprecateAliases": true,
1098
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1099
+ "name": "output-dir",
1100
+ "summary": "Directory for saving the created files.",
1101
+ "default": ".",
1102
+ "hasDynamicHelp": false,
1103
+ "multiple": false,
1104
+ "type": "option"
1105
+ },
1106
+ "api-version": {
1107
+ "aliases": [
1108
+ "apiversion"
1109
+ ],
1110
+ "deprecateAliases": true,
1111
+ "description": "Override the api version used for api requests made by this command",
1112
+ "name": "api-version",
1113
+ "hasDynamicHelp": false,
1114
+ "multiple": false,
1115
+ "type": "option"
1116
+ },
1117
+ "internal": {
1118
+ "char": "i",
1119
+ "hidden": true,
1120
+ "name": "internal",
1121
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1122
+ "allowNo": false,
1123
+ "type": "boolean"
1124
+ },
1125
+ "loglevel": {
1126
+ "deprecated": {
1127
+ "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."
1128
+ },
1129
+ "hidden": true,
1130
+ "name": "loglevel",
1131
+ "hasDynamicHelp": false,
1132
+ "multiple": false,
1133
+ "type": "option"
1134
+ }
1135
+ },
1136
+ "hasDynamicHelp": false,
1137
+ "hiddenAliases": [],
1138
+ "id": "template:generate:lightning:app",
1139
+ "pluginAlias": "@salesforce/plugin-templates",
1140
+ "pluginName": "@salesforce/plugin-templates",
1141
+ "pluginType": "core",
1142
+ "strict": true,
1143
+ "summary": "Generate a Lightning App.",
1144
+ "enableJsonFlag": true,
1145
+ "isESM": true,
1146
+ "relativePath": [
1147
+ "lib",
1148
+ "commands",
1149
+ "template",
1150
+ "generate",
1151
+ "lightning",
959
1152
  "app.js"
960
1153
  ],
961
1154
  "aliasPermutations": [
@@ -1555,395 +1748,25 @@
1555
1748
  "generate:interface:lightning:template",
1556
1749
  "template:interface:generate:lightning",
1557
1750
  "interface:template:generate:lightning",
1558
- "interface:generate:template:lightning",
1559
- "interface:generate:lightning:template",
1560
- "template:interface:lightning:generate",
1561
- "interface:template:lightning:generate",
1562
- "interface:lightning:template:generate",
1563
- "interface:lightning:generate:template"
1564
- ]
1565
- },
1566
- "template:generate:lightning:test": {
1567
- "aliases": [
1568
- "force:lightning:test:create",
1569
- "lightning:generate:test"
1570
- ],
1571
- "args": {},
1572
- "deprecateAliases": true,
1573
- "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1574
- "examples": [
1575
- "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
1576
- "Similar to the previous example but generate the files in the \"force-app/main/default/lightningTests\" directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest --output-dir force-app/main/default/lightningTests"
1577
- ],
1578
- "flags": {
1579
- "json": {
1580
- "description": "Format output as json.",
1581
- "helpGroup": "GLOBAL",
1582
- "name": "json",
1583
- "allowNo": false,
1584
- "type": "boolean"
1585
- },
1586
- "flags-dir": {
1587
- "helpGroup": "GLOBAL",
1588
- "name": "flags-dir",
1589
- "summary": "Import flag values from a directory.",
1590
- "hasDynamicHelp": false,
1591
- "multiple": false,
1592
- "type": "option"
1593
- },
1594
- "name": {
1595
- "aliases": [
1596
- "testname"
1597
- ],
1598
- "char": "n",
1599
- "deprecateAliases": true,
1600
- "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1601
- "name": "name",
1602
- "required": true,
1603
- "summary": "Name of the generated Lightning Test.",
1604
- "hasDynamicHelp": false,
1605
- "multiple": false,
1606
- "type": "option"
1607
- },
1608
- "template": {
1609
- "char": "t",
1610
- "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.",
1611
- "name": "template",
1612
- "summary": "Template to use for file creation.",
1613
- "default": "DefaultLightningTest",
1614
- "hasDynamicHelp": false,
1615
- "multiple": false,
1616
- "options": [
1617
- "DefaultLightningTest"
1618
- ],
1619
- "type": "option"
1620
- },
1621
- "output-dir": {
1622
- "aliases": [
1623
- "outputdir"
1624
- ],
1625
- "char": "d",
1626
- "deprecateAliases": true,
1627
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1628
- "name": "output-dir",
1629
- "summary": "Directory for saving the created files.",
1630
- "default": ".",
1631
- "hasDynamicHelp": false,
1632
- "multiple": false,
1633
- "type": "option"
1634
- },
1635
- "internal": {
1636
- "char": "i",
1637
- "hidden": true,
1638
- "name": "internal",
1639
- "summary": "Generate lightning bundles without creating a -meta.xml file.",
1640
- "allowNo": false,
1641
- "type": "boolean"
1642
- },
1643
- "api-version": {
1644
- "aliases": [
1645
- "apiversion"
1646
- ],
1647
- "deprecateAliases": true,
1648
- "description": "Override the api version used for api requests made by this command",
1649
- "name": "api-version",
1650
- "hasDynamicHelp": false,
1651
- "multiple": false,
1652
- "type": "option"
1653
- },
1654
- "loglevel": {
1655
- "deprecated": {
1656
- "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."
1657
- },
1658
- "hidden": true,
1659
- "name": "loglevel",
1660
- "hasDynamicHelp": false,
1661
- "multiple": false,
1662
- "type": "option"
1663
- }
1664
- },
1665
- "hasDynamicHelp": false,
1666
- "hiddenAliases": [],
1667
- "id": "template:generate:lightning:test",
1668
- "pluginAlias": "@salesforce/plugin-templates",
1669
- "pluginName": "@salesforce/plugin-templates",
1670
- "pluginType": "core",
1671
- "strict": true,
1672
- "summary": "Generate a Lightning test.",
1673
- "enableJsonFlag": true,
1674
- "isESM": true,
1675
- "relativePath": [
1676
- "lib",
1677
- "commands",
1678
- "template",
1679
- "generate",
1680
- "lightning",
1681
- "test.js"
1682
- ],
1683
- "aliasPermutations": [
1684
- "force:lightning:test:create",
1685
- "lightning:force:test:create",
1686
- "lightning:test:force:create",
1687
- "lightning:test:create:force",
1688
- "force:test:lightning:create",
1689
- "test:force:lightning:create",
1690
- "test:lightning:force:create",
1691
- "test:lightning:create:force",
1692
- "force:test:create:lightning",
1693
- "test:force:create:lightning",
1694
- "test:create:force:lightning",
1695
- "test:create:lightning:force",
1696
- "force:lightning:create:test",
1697
- "lightning:force:create:test",
1698
- "lightning:create:force:test",
1699
- "lightning:create:test:force",
1700
- "force:create:lightning:test",
1701
- "create:force:lightning:test",
1702
- "create:lightning:force:test",
1703
- "create:lightning:test:force",
1704
- "force:create:test:lightning",
1705
- "create:force:test:lightning",
1706
- "create:test:force:lightning",
1707
- "create:test:lightning:force",
1708
- "lightning:generate:test",
1709
- "generate:lightning:test",
1710
- "generate:test:lightning",
1711
- "lightning:test:generate",
1712
- "test:lightning:generate",
1713
- "test:generate:lightning"
1714
- ],
1715
- "permutations": [
1716
- "template:generate:lightning:test",
1717
- "generate:template:lightning:test",
1718
- "generate:lightning:template:test",
1719
- "generate:lightning:test:template",
1720
- "template:lightning:generate:test",
1721
- "lightning:template:generate:test",
1722
- "lightning:generate:template:test",
1723
- "lightning:generate:test:template",
1724
- "template:lightning:test:generate",
1725
- "lightning:template:test:generate",
1726
- "lightning:test:template:generate",
1727
- "lightning:test:generate:template",
1728
- "template:generate:test:lightning",
1729
- "generate:template:test:lightning",
1730
- "generate:test:template:lightning",
1731
- "generate:test:lightning:template",
1732
- "template:test:generate:lightning",
1733
- "test:template:generate:lightning",
1734
- "test:generate:template:lightning",
1735
- "test:generate:lightning:template",
1736
- "template:test:lightning:generate",
1737
- "test:template:lightning:generate",
1738
- "test:lightning:template:generate",
1739
- "test:lightning:generate:template"
1740
- ]
1741
- },
1742
- "template:generate:project": {
1743
- "aliases": [
1744
- "force:project:create",
1745
- "project:generate"
1746
- ],
1747
- "args": {},
1748
- "deprecateAliases": true,
1749
- "description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
1750
- "examples": [
1751
- "Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
1752
- "Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
1753
- "Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
1754
- "Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
1755
- "Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
1756
- ],
1757
- "flags": {
1758
- "json": {
1759
- "description": "Format output as json.",
1760
- "helpGroup": "GLOBAL",
1761
- "name": "json",
1762
- "allowNo": false,
1763
- "type": "boolean"
1764
- },
1765
- "flags-dir": {
1766
- "helpGroup": "GLOBAL",
1767
- "name": "flags-dir",
1768
- "summary": "Import flag values from a directory.",
1769
- "hasDynamicHelp": false,
1770
- "multiple": false,
1771
- "type": "option"
1772
- },
1773
- "name": {
1774
- "aliases": [
1775
- "projectname"
1776
- ],
1777
- "char": "n",
1778
- "deprecateAliases": true,
1779
- "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.",
1780
- "name": "name",
1781
- "required": true,
1782
- "summary": "Name of the generated project.",
1783
- "hasDynamicHelp": false,
1784
- "multiple": false,
1785
- "type": "option"
1786
- },
1787
- "template": {
1788
- "char": "t",
1789
- "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.",
1790
- "name": "template",
1791
- "summary": "Template to use for project creation.",
1792
- "default": "standard",
1793
- "hasDynamicHelp": false,
1794
- "multiple": false,
1795
- "options": [
1796
- "standard",
1797
- "empty",
1798
- "analytics",
1799
- "reactinternalapp",
1800
- "reactexternalapp",
1801
- "angularinternalapp",
1802
- "angularexternalapp",
1803
- "agent"
1804
- ],
1805
- "type": "option"
1806
- },
1807
- "output-dir": {
1808
- "aliases": [
1809
- "outputdir"
1810
- ],
1811
- "char": "d",
1812
- "deprecateAliases": true,
1813
- "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
1814
- "name": "output-dir",
1815
- "summary": "Directory for saving the created files.",
1816
- "default": ".",
1817
- "hasDynamicHelp": false,
1818
- "multiple": false,
1819
- "type": "option"
1820
- },
1821
- "namespace": {
1822
- "char": "s",
1823
- "name": "namespace",
1824
- "summary": "Namespace associated with this project and any connected scratch orgs.",
1825
- "default": "",
1826
- "hasDynamicHelp": false,
1827
- "multiple": false,
1828
- "type": "option"
1829
- },
1830
- "default-package-dir": {
1831
- "aliases": [
1832
- "defaultpackagedir"
1833
- ],
1834
- "char": "p",
1835
- "deprecateAliases": true,
1836
- "description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
1837
- "name": "default-package-dir",
1838
- "summary": "Default package directory name.",
1839
- "default": "force-app",
1840
- "hasDynamicHelp": false,
1841
- "multiple": false,
1842
- "type": "option"
1843
- },
1844
- "manifest": {
1845
- "char": "x",
1846
- "description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
1847
- "name": "manifest",
1848
- "summary": "Generate a manifest (package.xml) for change-set based development.",
1849
- "allowNo": false,
1850
- "type": "boolean"
1851
- },
1852
- "login-url": {
1853
- "aliases": [
1854
- "loginurl"
1855
- ],
1856
- "char": "l",
1857
- "deprecateAliases": true,
1858
- "description": "Normally defaults to https://login.salesforce.com.",
1859
- "hidden": true,
1860
- "name": "login-url",
1861
- "summary": "Salesforce instance login URL.",
1862
- "default": "https://login.salesforce.com",
1863
- "hasDynamicHelp": false,
1864
- "multiple": false,
1865
- "type": "option"
1866
- },
1867
- "lwc-language": {
1868
- "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.",
1869
- "name": "lwc-language",
1870
- "summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
1871
- "hasDynamicHelp": false,
1872
- "multiple": false,
1873
- "options": [
1874
- "javascript",
1875
- "typescript"
1876
- ],
1877
- "type": "option"
1878
- },
1879
- "loglevel": {
1880
- "deprecated": {
1881
- "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."
1882
- },
1883
- "hidden": true,
1884
- "name": "loglevel",
1885
- "hasDynamicHelp": false,
1886
- "multiple": false,
1887
- "type": "option"
1888
- },
1889
- "api-version": {
1890
- "description": "Override the api version used for api requests made by this command",
1891
- "name": "api-version",
1892
- "summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
1893
- "hasDynamicHelp": false,
1894
- "multiple": false,
1895
- "type": "option"
1896
- }
1897
- },
1898
- "hasDynamicHelp": false,
1899
- "hiddenAliases": [],
1900
- "id": "template:generate:project",
1901
- "pluginAlias": "@salesforce/plugin-templates",
1902
- "pluginName": "@salesforce/plugin-templates",
1903
- "pluginType": "core",
1904
- "strict": true,
1905
- "summary": "Generate a Salesforce DX project.",
1906
- "enableJsonFlag": true,
1907
- "isESM": true,
1908
- "relativePath": [
1909
- "lib",
1910
- "commands",
1911
- "template",
1912
- "generate",
1913
- "project",
1914
- "index.js"
1915
- ],
1916
- "aliasPermutations": [
1917
- "force:project:create",
1918
- "project:force:create",
1919
- "project:create:force",
1920
- "force:create:project",
1921
- "create:force:project",
1922
- "create:project:force",
1923
- "project:generate",
1924
- "generate:project"
1925
- ],
1926
- "permutations": [
1927
- "template:generate:project",
1928
- "generate:template:project",
1929
- "generate:project:template",
1930
- "template:project:generate",
1931
- "project:template:generate",
1932
- "project:generate:template"
1751
+ "interface:generate:template:lightning",
1752
+ "interface:generate:lightning:template",
1753
+ "template:interface:lightning:generate",
1754
+ "interface:template:lightning:generate",
1755
+ "interface:lightning:template:generate",
1756
+ "interface:lightning:generate:template"
1933
1757
  ]
1934
1758
  },
1935
- "template:generate:static-resource": {
1759
+ "template:generate:lightning:test": {
1936
1760
  "aliases": [
1937
- "force:staticresource:create",
1938
- "static-resource:generate"
1761
+ "force:lightning:test:create",
1762
+ "lightning:generate:test"
1939
1763
  ],
1940
1764
  "args": {},
1941
1765
  "deprecateAliases": true,
1942
- "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.",
1766
+ "description": "Generates the test in the specified directory or the current working directory. The .resource file and associated metadata file are generated.",
1943
1767
  "examples": [
1944
- "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
1945
- "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
1946
- "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"
1768
+ "Generate the metadata files for the Lightning test called MyLightningTest in the current directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest",
1769
+ "Similar to the previous example but generate the files in the \"force-app/main/default/lightningTests\" directory:\n<%= config.bin %> <%= command.id %> --name MyLightningTest --output-dir force-app/main/default/lightningTests"
1947
1770
  ],
1948
1771
  "flags": {
1949
1772
  "json": {
@@ -1963,29 +1786,29 @@
1963
1786
  },
1964
1787
  "name": {
1965
1788
  "aliases": [
1966
- "resourcename"
1789
+ "testname"
1967
1790
  ],
1968
1791
  "char": "n",
1969
1792
  "deprecateAliases": true,
1970
- "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.",
1793
+ "description": "Name of the new Lightning test; can be up to 40 characters and must start with a letter.",
1971
1794
  "name": "name",
1972
1795
  "required": true,
1973
- "summary": "Name of the generated static resource.",
1796
+ "summary": "Name of the generated Lightning Test.",
1974
1797
  "hasDynamicHelp": false,
1975
1798
  "multiple": false,
1976
1799
  "type": "option"
1977
1800
  },
1978
- "type": {
1979
- "aliases": [
1980
- "contenttype"
1981
- ],
1982
- "deprecateAliases": true,
1983
- "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
1984
- "name": "type",
1985
- "summary": "Content type (mime type) of the generated static resource.",
1986
- "default": "application/zip",
1801
+ "template": {
1802
+ "char": "t",
1803
+ "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.",
1804
+ "name": "template",
1805
+ "summary": "Template to use for file creation.",
1806
+ "default": "DefaultLightningTest",
1987
1807
  "hasDynamicHelp": false,
1988
1808
  "multiple": false,
1809
+ "options": [
1810
+ "DefaultLightningTest"
1811
+ ],
1989
1812
  "type": "option"
1990
1813
  },
1991
1814
  "output-dir": {
@@ -2002,6 +1825,14 @@
2002
1825
  "multiple": false,
2003
1826
  "type": "option"
2004
1827
  },
1828
+ "internal": {
1829
+ "char": "i",
1830
+ "hidden": true,
1831
+ "name": "internal",
1832
+ "summary": "Generate lightning bundles without creating a -meta.xml file.",
1833
+ "allowNo": false,
1834
+ "type": "boolean"
1835
+ },
2005
1836
  "api-version": {
2006
1837
  "aliases": [
2007
1838
  "apiversion"
@@ -2026,12 +1857,12 @@
2026
1857
  },
2027
1858
  "hasDynamicHelp": false,
2028
1859
  "hiddenAliases": [],
2029
- "id": "template:generate:static-resource",
1860
+ "id": "template:generate:lightning:test",
2030
1861
  "pluginAlias": "@salesforce/plugin-templates",
2031
1862
  "pluginName": "@salesforce/plugin-templates",
2032
1863
  "pluginType": "core",
2033
1864
  "strict": true,
2034
- "summary": "Generate a static resource.",
1865
+ "summary": "Generate a Lightning test.",
2035
1866
  "enableJsonFlag": true,
2036
1867
  "isESM": true,
2037
1868
  "relativePath": [
@@ -2039,26 +1870,66 @@
2039
1870
  "commands",
2040
1871
  "template",
2041
1872
  "generate",
2042
- "static-resource",
2043
- "index.js"
1873
+ "lightning",
1874
+ "test.js"
2044
1875
  ],
2045
1876
  "aliasPermutations": [
2046
- "force:staticresource:create",
2047
- "staticresource:force:create",
2048
- "staticresource:create:force",
2049
- "force:create:staticresource",
2050
- "create:force:staticresource",
2051
- "create:staticresource:force",
2052
- "static-resource:generate",
2053
- "generate:static-resource"
1877
+ "force:lightning:test:create",
1878
+ "lightning:force:test:create",
1879
+ "lightning:test:force:create",
1880
+ "lightning:test:create:force",
1881
+ "force:test:lightning:create",
1882
+ "test:force:lightning:create",
1883
+ "test:lightning:force:create",
1884
+ "test:lightning:create:force",
1885
+ "force:test:create:lightning",
1886
+ "test:force:create:lightning",
1887
+ "test:create:force:lightning",
1888
+ "test:create:lightning:force",
1889
+ "force:lightning:create:test",
1890
+ "lightning:force:create:test",
1891
+ "lightning:create:force:test",
1892
+ "lightning:create:test:force",
1893
+ "force:create:lightning:test",
1894
+ "create:force:lightning:test",
1895
+ "create:lightning:force:test",
1896
+ "create:lightning:test:force",
1897
+ "force:create:test:lightning",
1898
+ "create:force:test:lightning",
1899
+ "create:test:force:lightning",
1900
+ "create:test:lightning:force",
1901
+ "lightning:generate:test",
1902
+ "generate:lightning:test",
1903
+ "generate:test:lightning",
1904
+ "lightning:test:generate",
1905
+ "test:lightning:generate",
1906
+ "test:generate:lightning"
2054
1907
  ],
2055
1908
  "permutations": [
2056
- "template:generate:static-resource",
2057
- "generate:template:static-resource",
2058
- "generate:static-resource:template",
2059
- "template:static-resource:generate",
2060
- "static-resource:template:generate",
2061
- "static-resource:generate:template"
1909
+ "template:generate:lightning:test",
1910
+ "generate:template:lightning:test",
1911
+ "generate:lightning:template:test",
1912
+ "generate:lightning:test:template",
1913
+ "template:lightning:generate:test",
1914
+ "lightning:template:generate:test",
1915
+ "lightning:generate:template:test",
1916
+ "lightning:generate:test:template",
1917
+ "template:lightning:test:generate",
1918
+ "lightning:template:test:generate",
1919
+ "lightning:test:template:generate",
1920
+ "lightning:test:generate:template",
1921
+ "template:generate:test:lightning",
1922
+ "generate:template:test:lightning",
1923
+ "generate:test:template:lightning",
1924
+ "generate:test:lightning:template",
1925
+ "template:test:generate:lightning",
1926
+ "test:template:generate:lightning",
1927
+ "test:generate:template:lightning",
1928
+ "test:generate:lightning:template",
1929
+ "template:test:lightning:generate",
1930
+ "test:template:lightning:generate",
1931
+ "test:lightning:template:generate",
1932
+ "test:lightning:generate:template"
2062
1933
  ]
2063
1934
  },
2064
1935
  "template:generate:ui-bundle": {
@@ -2670,7 +2541,136 @@
2670
2541
  "page:visualforce:template:generate",
2671
2542
  "page:visualforce:generate:template"
2672
2543
  ]
2544
+ },
2545
+ "template:generate:static-resource": {
2546
+ "aliases": [
2547
+ "force:staticresource:create",
2548
+ "static-resource:generate"
2549
+ ],
2550
+ "args": {},
2551
+ "deprecateAliases": true,
2552
+ "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.",
2553
+ "examples": [
2554
+ "Generate the metadata file for a static resource called MyResource in the current directory:\n<%= config.bin %> <%= command.id %> --name MyResource",
2555
+ "Similar to previous example, but specifies a MIME type of application/json:\n<%= config.bin %> <%= command.id %> --name MyResource --type application/json",
2556
+ "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"
2557
+ ],
2558
+ "flags": {
2559
+ "json": {
2560
+ "description": "Format output as json.",
2561
+ "helpGroup": "GLOBAL",
2562
+ "name": "json",
2563
+ "allowNo": false,
2564
+ "type": "boolean"
2565
+ },
2566
+ "flags-dir": {
2567
+ "helpGroup": "GLOBAL",
2568
+ "name": "flags-dir",
2569
+ "summary": "Import flag values from a directory.",
2570
+ "hasDynamicHelp": false,
2571
+ "multiple": false,
2572
+ "type": "option"
2573
+ },
2574
+ "name": {
2575
+ "aliases": [
2576
+ "resourcename"
2577
+ ],
2578
+ "char": "n",
2579
+ "deprecateAliases": true,
2580
+ "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.",
2581
+ "name": "name",
2582
+ "required": true,
2583
+ "summary": "Name of the generated static resource.",
2584
+ "hasDynamicHelp": false,
2585
+ "multiple": false,
2586
+ "type": "option"
2587
+ },
2588
+ "type": {
2589
+ "aliases": [
2590
+ "contenttype"
2591
+ ],
2592
+ "deprecateAliases": true,
2593
+ "description": "Must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.",
2594
+ "name": "type",
2595
+ "summary": "Content type (mime type) of the generated static resource.",
2596
+ "default": "application/zip",
2597
+ "hasDynamicHelp": false,
2598
+ "multiple": false,
2599
+ "type": "option"
2600
+ },
2601
+ "output-dir": {
2602
+ "aliases": [
2603
+ "outputdir"
2604
+ ],
2605
+ "char": "d",
2606
+ "deprecateAliases": true,
2607
+ "description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
2608
+ "name": "output-dir",
2609
+ "summary": "Directory for saving the created files.",
2610
+ "default": ".",
2611
+ "hasDynamicHelp": false,
2612
+ "multiple": false,
2613
+ "type": "option"
2614
+ },
2615
+ "api-version": {
2616
+ "aliases": [
2617
+ "apiversion"
2618
+ ],
2619
+ "deprecateAliases": true,
2620
+ "description": "Override the api version used for api requests made by this command",
2621
+ "name": "api-version",
2622
+ "hasDynamicHelp": false,
2623
+ "multiple": false,
2624
+ "type": "option"
2625
+ },
2626
+ "loglevel": {
2627
+ "deprecated": {
2628
+ "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."
2629
+ },
2630
+ "hidden": true,
2631
+ "name": "loglevel",
2632
+ "hasDynamicHelp": false,
2633
+ "multiple": false,
2634
+ "type": "option"
2635
+ }
2636
+ },
2637
+ "hasDynamicHelp": false,
2638
+ "hiddenAliases": [],
2639
+ "id": "template:generate:static-resource",
2640
+ "pluginAlias": "@salesforce/plugin-templates",
2641
+ "pluginName": "@salesforce/plugin-templates",
2642
+ "pluginType": "core",
2643
+ "strict": true,
2644
+ "summary": "Generate a static resource.",
2645
+ "enableJsonFlag": true,
2646
+ "isESM": true,
2647
+ "relativePath": [
2648
+ "lib",
2649
+ "commands",
2650
+ "template",
2651
+ "generate",
2652
+ "static-resource",
2653
+ "index.js"
2654
+ ],
2655
+ "aliasPermutations": [
2656
+ "force:staticresource:create",
2657
+ "staticresource:force:create",
2658
+ "staticresource:create:force",
2659
+ "force:create:staticresource",
2660
+ "create:force:staticresource",
2661
+ "create:staticresource:force",
2662
+ "static-resource:generate",
2663
+ "generate:static-resource"
2664
+ ],
2665
+ "permutations": [
2666
+ "template:generate:static-resource",
2667
+ "generate:template:static-resource",
2668
+ "generate:static-resource:template",
2669
+ "template:static-resource:generate",
2670
+ "static-resource:template:generate",
2671
+ "static-resource:generate:template"
2672
+ ]
2673
2673
  }
2674
2674
  },
2675
- "version": "57.0.9"
2675
+ "version": "57.0.10"
2676
2676
  }