@salesforce/plugin-templates 52.2.0 → 52.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2021, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
3
9
  exports.default = {};
4
10
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,kBAAe,EAAE,CAAC"}
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * Copyright (c) 2021, salesforce.com, inc.
5
+ * All rights reserved.
6
+ * Licensed under the BSD 3-Clause license.
7
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
8
+ */
3
9
  var messageUtil_1 = require("./messageUtil");
4
10
  Object.defineProperty(exports, "MessageUtil", { enumerable: true, get: function () { return messageUtil_1.MessageUtil; } });
5
11
  var templateCommand_1 = require("./templateCommand");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;AAAA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
@@ -5,9 +5,12 @@ import { AnyJson } from '@salesforce/ts-types';
5
5
  import * as yeomanGenerator from 'yeoman-generator';
6
6
  export declare abstract class TemplateCommand extends SfdxCommand {
7
7
  static buildJson(adapter: ForceGeneratorAdapter, targetDir: string): CreateOutput;
8
+ private static aggregator?;
9
+ private static getConfigAggregator;
8
10
  static getDefaultApiVersion(): string;
9
11
  static getApiVersion(): Promise<string>;
10
12
  private static API_VERSION;
13
+ static getCustomTemplates(): Promise<import("@salesforce/ts-types").Optional<string>>;
11
14
  abstract run(): Promise<AnyJson>;
12
15
  runGenerator(generator: yeomanGenerator.GeneratorConstructor): Promise<{}>;
13
16
  }
@@ -10,6 +10,7 @@ exports.TemplateCommand = void 0;
10
10
  const tslib_1 = require("tslib");
11
11
  const command_1 = require("@salesforce/command");
12
12
  const core_1 = require("@salesforce/core");
13
+ const templates_1 = require("@salesforce/templates");
13
14
  const utils_1 = require("@salesforce/templates/lib/utils");
14
15
  const path = require("path");
15
16
  // @ts-ignore
@@ -26,6 +27,14 @@ class TemplateCommand extends command_1.SfdxCommand {
26
27
  };
27
28
  return output;
28
29
  }
30
+ static getConfigAggregator() {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
+ if (!TemplateCommand.aggregator) {
33
+ TemplateCommand.aggregator = yield core_1.ConfigAggregator.create();
34
+ }
35
+ return TemplateCommand.aggregator;
36
+ });
37
+ }
29
38
  static getDefaultApiVersion() {
30
39
  const packageJsonPath = path.join('..', '..', 'package.json');
31
40
  const versionTrimmed = require(packageJsonPath).version.trim();
@@ -34,7 +43,7 @@ class TemplateCommand extends command_1.SfdxCommand {
34
43
  static getApiVersion() {
35
44
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
36
45
  try {
37
- const aggregator = yield core_1.ConfigAggregator.create();
46
+ const aggregator = yield TemplateCommand.getConfigAggregator();
38
47
  const apiVersionFromConfig = aggregator.getPropertyValue(TemplateCommand.API_VERSION);
39
48
  return apiVersionFromConfig || TemplateCommand.getDefaultApiVersion();
40
49
  }
@@ -43,12 +52,28 @@ class TemplateCommand extends command_1.SfdxCommand {
43
52
  }
44
53
  });
45
54
  }
55
+ static getCustomTemplates() {
56
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
57
+ try {
58
+ const aggregator = yield TemplateCommand.getConfigAggregator();
59
+ const customTemplatesFromConfig = aggregator.getPropertyValue(core_1.Config.CUSTOM_ORG_METADATA_TEMPLATES);
60
+ return customTemplatesFromConfig;
61
+ }
62
+ catch (err) {
63
+ return undefined;
64
+ }
65
+ });
66
+ }
46
67
  runGenerator(generator) {
47
68
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
48
69
  // Can't specify a default value the normal way for apiversion, so set it here
49
70
  if (!this.flags.apiversion) {
50
71
  this.flags.apiversion = yield TemplateCommand.getApiVersion();
51
72
  }
73
+ const customTemplates = yield TemplateCommand.getCustomTemplates();
74
+ if (customTemplates) {
75
+ yield templates_1.TemplateService.getInstance().setCustomTemplatesRootPathOrGitRepo(customTemplates);
76
+ }
52
77
  const adapter = new utils_1.ForceGeneratorAdapter();
53
78
  // @ts-ignore
54
79
  const env = yeoman.createEnv(undefined, undefined, adapter);
@@ -1 +1 @@
1
- {"version":3,"file":"templateCommand.js","sourceRoot":"","sources":["../../src/utils/templateCommand.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,iDAAkD;AAClD,2CAAoD;AACpD,2DAAwE;AAGxE,6BAA6B;AAC7B,aAAa;AACb,6CAA6C;AAG7C,+CAA4C;AAC5C,MAAsB,eAAgB,SAAQ,qBAAW;IAChD,MAAM,CAAC,SAAS,CACrB,OAA8B,EAC9B,SAAiB;QAEjB,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC;QACjD,MAAM,SAAS,GAAG,gBAAgB,SAAS,KAAK,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE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AAC,aAAa,EAAE,CAAC;aAC/D;YAED,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,kBAAkB,EAAE,CAAC;YACnE,IAAI,eAAe,EAAE;gBACnB,MAAM,2BAAe,CAAC,WAAW,EAAE,CAAC,mCAAmC,CACrE,eAAe,CAChB,CAAC;aACH;YAED,MAAM,OAAO,GAAG,IAAI,6BAAqB,EAAE,CAAC;YAC5C,aAAa;YACb,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YAC5D,GAAG,CAAC,YAAY,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YAEzC,6GAA6G;YAC7G,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACtD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACrD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;gBACnB,OAAO,eAAe,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;aACtD;iBAAM;gBACL,IAAI,CAAC,GAAG,CAAC,yBAAW,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;gBAClC,OAAO,EAAE,CAAC;aACX;QACH,CAAC;KAAA;;AApFH,0CAqFC;AA7CgB,2BAAW,GAAG,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":"52.2.0","commands":{"force:project:create":{"id":"force:project:create","description":"create a Salesforce DX project\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [-s <string>] [-p <string>] [-x] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:project:create --projectname mywork","$ sfdx force:project:create --projectname mywork --defaultpackagedir myapp","$ sfdx force:project:create --projectname mywork --defaultpackagedir myapp --manifest","$ sfdx force:project:create --projectname mywork --template empty"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"projectname":{"name":"projectname","type":"option","char":"n","description":"name of the generated project","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for project creation","options":["standard","empty","analytics"],"default":"standard"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"namespace":{"name":"namespace","type":"option","char":"s","description":"project associated namespace","default":""},"defaultpackagedir":{"name":"defaultpackagedir","type":"option","char":"p","description":"default package directory name","default":"force-app"},"manifest":{"name":"manifest","type":"boolean","char":"x","description":"generate a manifest (package.xml) for change-set based development","allowNo":false},"loginurl":{"name":"loginurl","type":"option","char":"l","description":"Salesforce instance login URL","hidden":true,"default":"https://login.salesforce.com"}},"args":[]},"force:staticresource:create":{"id":"force:staticresource:create","description":"create a static resource\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [--contenttype <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:staticresource:create -n MyResource","$ sfdx force:staticresource:create -n MyResource --contenttype application/json","$ sfdx force:staticresource:create -n MyResource -d staticresources"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"resourcename":{"name":"resourcename","type":"option","char":"n","description":"name of the generated static resource","required":true},"contenttype":{"name":"contenttype","type":"option","description":"content type (mime type) of the generated static resource","default":"application/zip"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"force:analytics:template:create":{"id":"force:analytics:template:create","description":"add an Analytics template to your workspace\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:analytics:template:create -n myTemplate -d outputdir"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"templatename":{"name":"templatename","type":"option","char":"n","description":"name of the Analytics template","required":true}},"args":[]},"force:apex:class:create":{"id":"force:apex:class:create","description":"create an Apex class\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:apex:class:create -n MyClass","$ sfdx force:apex:class:create -n MyClass -d classes"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"classname":{"name":"classname","type":"option","char":"n","description":"name of the generated Apex class","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["ApexException","ApexUnitTest","DefaultApexClass","InboundEmailService"],"default":"DefaultApexClass"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"force:apex:trigger:create":{"id":"force:apex:trigger:create","description":"create an Apex trigger\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [-s <string>] [-e <array>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:apex:trigger:create -n MyTrigger","$ sfdx force:apex:trigger:create -n MyTrigger -s Account -e 'before insert,after insert'","$ sfdx force:apex:trigger:create -n MyTrigger -d triggers"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"triggername":{"name":"triggername","type":"option","char":"n","description":"name of the generated Apex trigger","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["ApexTrigger"],"default":"ApexTrigger"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobject":{"name":"sobject","type":"option","char":"s","description":"sObject to create a trigger on","default":"SOBJECT"},"triggerevents":{"name":"triggerevents","type":"option","char":"e","description":"events that fire the trigger","default":["before insert"]}},"args":[]},"force:lightning:app:create":{"id":"force:lightning:app:create","description":"create a Lightning app\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:app:create -n myapp","$ sfdx force:lightning:app:create -n myapp -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"appname":{"name":"appname","type":"option","char":"n","description":"name of the generated Lightning app","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningApp"],"default":"DefaultLightningApp"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:component:create":{"id":"force:lightning:component:create","description":"create a bundle for an Aura component or a Lightning web component\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n\nTo create a Lightning web component, pass --type lwc to the command. If you don’t include a --type value, Salesforce CLI creates an Aura component by default.","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--type <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:component:create -n mycomponent","$ sfdx force:lightning:component:create -n mycomponent --type lwc","$ sfdx force:lightning:component:create -n mycomponent -d aura","$ sfdx force:lightning:component:create -n mycomponent --type lwc -d lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"componentname":{"name":"componentname","type":"option","char":"n","description":"name of the generated Lightning component","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["default","analyticsDashboard","analyticsDashboardWithStep"],"default":"default"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"type":{"name":"type","type":"option","description":"type of the Lightning component","options":["aura","lwc"],"default":"aura"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:event:create":{"id":"force:lightning:event:create","description":"create a Lightning event\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:event:create -n myevent","$ sfdx force:lightning:event:create -n myevent -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"eventname":{"name":"eventname","type":"option","char":"n","description":"name of the generated Lightning event","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningEvt"],"default":"DefaultLightningEvt"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:interface:create":{"id":"force:lightning:interface:create","description":"create a Lightning interface\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:interface:create -n myinterface","$ sfdx force:lightning:interface:create -n myinterface -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"interfacename":{"name":"interfacename","type":"option","char":"n","description":"name of the generated Lightning interface","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningIntf"],"default":"DefaultLightningIntf"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:test:create":{"id":"force:lightning:test:create","description":"create a Lightning test\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:test:create -n MyLightningTest","$ sfdx force:lightning:test:create -n MyLightningTest -d lightningTests"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"testname":{"name":"testname","type":"option","char":"n","description":"name of the generated Lightning test","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningTest"],"default":"DefaultLightningTest"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:visualforce:component:create":{"id":"force:visualforce:component:create","description":"create a Visualforce component\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> -l <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:visualforce:component:create -n mycomponent -l mylabel","$ sfdx force:visualforce:component:create -n mycomponent -l mylabel -d components"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultVFComponent"],"default":"DefaultVFComponent"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"componentname":{"name":"componentname","type":"option","char":"n","description":"name of the generated Visualforce component","required":true},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"label":{"name":"label","type":"option","char":"l","description":"Visualforce component label","required":true}},"args":[]},"force:visualforce:page:create":{"id":"force:visualforce:page:create","description":"create a Visualforce page\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> -l <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:visualforce:page:create -n mypage -l mylabel","$ sfdx force:visualforce:page:create -n mypage -l mylabel -d pages"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultVFPage"],"default":"DefaultVFPage"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"pagename":{"name":"pagename","type":"option","char":"n","description":"name of the generated Visualforce page","required":true},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"label":{"name":"label","type":"option","char":"l","description":"Visualforce page label","required":true}},"args":[]}}}
1
+ {"version":"52.6.0","commands":{"force:project:create":{"id":"force:project:create","description":"create a Salesforce DX project\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [-s <string>] [-p <string>] [-x] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:project:create --projectname mywork","$ sfdx force:project:create --projectname mywork --defaultpackagedir myapp","$ sfdx force:project:create --projectname mywork --defaultpackagedir myapp --manifest","$ sfdx force:project:create --projectname mywork --template empty"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"projectname":{"name":"projectname","type":"option","char":"n","description":"name of the generated project","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for project creation","options":["standard","empty","analytics"],"default":"standard"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"namespace":{"name":"namespace","type":"option","char":"s","description":"project associated namespace","default":""},"defaultpackagedir":{"name":"defaultpackagedir","type":"option","char":"p","description":"default package directory name","default":"force-app"},"manifest":{"name":"manifest","type":"boolean","char":"x","description":"generate a manifest (package.xml) for change-set based development","allowNo":false},"loginurl":{"name":"loginurl","type":"option","char":"l","description":"Salesforce instance login URL","hidden":true,"default":"https://login.salesforce.com"}},"args":[]},"force:staticresource:create":{"id":"force:staticresource:create","description":"create a static resource\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [--contenttype <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:staticresource:create -n MyResource","$ sfdx force:staticresource:create -n MyResource --contenttype application/json","$ sfdx force:staticresource:create -n MyResource -d staticresources"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"resourcename":{"name":"resourcename","type":"option","char":"n","description":"name of the generated static resource","required":true},"contenttype":{"name":"contenttype","type":"option","description":"content type (mime type) of the generated static resource","default":"application/zip"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"force:analytics:template:create":{"id":"force:analytics:template:create","description":"add an Analytics template to your workspace\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:analytics:template:create -n myTemplate -d outputdir"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"templatename":{"name":"templatename","type":"option","char":"n","description":"name of the Analytics template","required":true}},"args":[]},"force:apex:class:create":{"id":"force:apex:class:create","description":"create an Apex class\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:apex:class:create -n MyClass","$ sfdx force:apex:class:create -n MyClass -d classes"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"classname":{"name":"classname","type":"option","char":"n","description":"name of the generated Apex class","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["ApexException","ApexUnitTest","DefaultApexClass","InboundEmailService"],"default":"DefaultApexClass"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"}},"args":[]},"force:apex:trigger:create":{"id":"force:apex:trigger:create","description":"create an Apex trigger\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [-s <string>] [-e <array>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:apex:trigger:create -n MyTrigger","$ sfdx force:apex:trigger:create -n MyTrigger -s Account -e 'before insert,after insert'","$ sfdx force:apex:trigger:create -n MyTrigger -d triggers"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"triggername":{"name":"triggername","type":"option","char":"n","description":"name of the generated Apex trigger","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["ApexTrigger"],"default":"ApexTrigger"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sobject":{"name":"sobject","type":"option","char":"s","description":"sObject to create a trigger on","default":"SOBJECT"},"triggerevents":{"name":"triggerevents","type":"option","char":"e","description":"events that fire the trigger","default":["before insert"]}},"args":[]},"force:lightning:app:create":{"id":"force:lightning:app:create","description":"create a Lightning app\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:app:create -n myapp","$ sfdx force:lightning:app:create -n myapp -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"appname":{"name":"appname","type":"option","char":"n","description":"name of the generated Lightning app","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningApp"],"default":"DefaultLightningApp"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:component:create":{"id":"force:lightning:component:create","description":"create a bundle for an Aura component or a Lightning web component\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n\nTo create a Lightning web component, pass --type lwc to the command. If you don’t include a --type value, Salesforce CLI creates an Aura component by default.","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--type <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:component:create -n mycomponent","$ sfdx force:lightning:component:create -n mycomponent --type lwc","$ sfdx force:lightning:component:create -n mycomponent -d aura","$ sfdx force:lightning:component:create -n mycomponent --type lwc -d lwc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"componentname":{"name":"componentname","type":"option","char":"n","description":"name of the generated Lightning component","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["default","analyticsDashboard","analyticsDashboardWithStep"],"default":"default"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"type":{"name":"type","type":"option","description":"type of the Lightning component","options":["aura","lwc"],"default":"aura"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:event:create":{"id":"force:lightning:event:create","description":"create a Lightning event\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:event:create -n myevent","$ sfdx force:lightning:event:create -n myevent -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"eventname":{"name":"eventname","type":"option","char":"n","description":"name of the generated Lightning event","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningEvt"],"default":"DefaultLightningEvt"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:interface:create":{"id":"force:lightning:interface:create","description":"create a Lightning interface\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\nIf you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:interface:create -n myinterface","$ sfdx force:lightning:interface:create -n myinterface -d aura"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"interfacename":{"name":"interfacename","type":"option","char":"n","description":"name of the generated Lightning interface","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningIntf"],"default":"DefaultLightningIntf"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:lightning:test:create":{"id":"force:lightning:test:create","description":"create a Lightning test\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> [-t <string>] [-d <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:lightning:test:create -n MyLightningTest","$ sfdx force:lightning:test:create -n MyLightningTest -d lightningTests"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"testname":{"name":"testname","type":"option","char":"n","description":"name of the generated Lightning test","required":true},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultLightningTest"],"default":"DefaultLightningTest"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[]},"force:visualforce:component:create":{"id":"force:visualforce:component:create","description":"create a Visualforce component\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> -l <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:visualforce:component:create -n mycomponent -l mylabel","$ sfdx force:visualforce:component:create -n mycomponent -l mylabel -d components"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultVFComponent"],"default":"DefaultVFComponent"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"componentname":{"name":"componentname","type":"option","char":"n","description":"name of the generated Visualforce component","required":true},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"label":{"name":"label","type":"option","char":"l","description":"Visualforce component label","required":true}},"args":[]},"force:visualforce:page:create":{"id":"force:visualforce:page:create","description":"create a Visualforce page\nIf not supplied, the apiversion, template, and outputdir use default values.\nThe outputdir can be an absolute path or relative to the current working directory.\n","usage":"<%= command.id %> -n <string> -l <string> [-t <string>] [-d <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-templates","pluginType":"core","aliases":[],"examples":["$ sfdx force:visualforce:page:create -n mypage -l mylabel","$ sfdx force:visualforce:page:create -n mypage -l mylabel -d pages"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","options":["DefaultVFPage"],"default":"DefaultVFPage"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","default":"."},"pagename":{"name":"pagename","type":"option","char":"n","description":"name of the generated Visualforce page","required":true},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"label":{"name":"label","type":"option","char":"l","description":"Visualforce page label","required":true}},"args":[]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-templates",
3
- "version": "52.2.0",
3
+ "version": "52.6.0",
4
4
  "main": "index.js",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
@@ -9,8 +9,8 @@
9
9
  "@oclif/config": "^1",
10
10
  "@oclif/errors": "^1",
11
11
  "@salesforce/command": "^2.2.0",
12
- "@salesforce/core": "2.23.2",
13
- "@salesforce/templates": "52.2.0",
12
+ "@salesforce/core": "2.28.0",
13
+ "@salesforce/templates": "52.6.0",
14
14
  "tslib": "^1",
15
15
  "yeoman-environment": "2.4.0",
16
16
  "yeoman-generator": "4.0.1"
@@ -105,7 +105,7 @@
105
105
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
106
106
  "compile": "tsc -b",
107
107
  "build": "yarn run clean:lib && yarn compile",
108
- "lint": "tslint --project . --config tslint.json --format stylish",
108
+ "lint": "eslint -c .eslintrc.json --ext .ts ./src ./test",
109
109
  "manifest:generate": "oclif-dev manifest",
110
110
  "manifest:remove": "shx rm -f oclif.manifest.json",
111
111
  "version": "oclif-dev readme && git add README.md",
@@ -116,6 +116,6 @@
116
116
  },
117
117
  "sfdx": {
118
118
  "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/sfdx-cli-03032020.crt",
119
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/signatures/salesforce-plugin-templates-52.2.0.sig"
119
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/signatures/salesforce-plugin-templates-52.6.0.sig"
120
120
  }
121
121
  }
package/yarn.lock CHANGED
@@ -398,25 +398,26 @@
398
398
  chalk "^2.4.2"
399
399
  cli-ux "^4.9.3"
400
400
 
401
- "@salesforce/core@2.23.2":
402
- version "2.23.2"
403
- resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-2.23.2.tgz#cdb02677c51562b496fe796a3bc69d68a23f3026"
404
- integrity sha512-LTnl7ElWrIgIYqYWLWL9KUrCI4kCEKaQlglUEJWBDLSUM0rfW3EnChLMaXZTCkqGjYLbldfRh8GXMxyejpoSTw==
401
+ "@salesforce/core@2.28.0":
402
+ version "2.28.0"
403
+ resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-2.28.0.tgz#2fb3d7be0dfac8505332f558b7dd4274afd34901"
404
+ integrity sha512-CFw2xloL3UwuvLm+0nK588kFVGPRZFmUzeUBYFCIz+34CJShc1B7yN+anPlZcHWgT12Ih9yzKYaki0BjCeIgKQ==
405
405
  dependencies:
406
406
  "@salesforce/bunyan" "^2.0.0"
407
407
  "@salesforce/kit" "^1.5.0"
408
408
  "@salesforce/schemas" "^1.0.1"
409
- "@salesforce/ts-types" "^1.0.0"
410
- "@types/graceful-fs" "^4.1.3"
411
- "@types/jsforce" "1.9.23"
412
- "@types/mkdirp" "1.0.0"
409
+ "@salesforce/ts-types" "^1.5.13"
410
+ "@types/graceful-fs" "^4.1.5"
411
+ "@types/jsforce" "^1.9.29"
412
+ "@types/mkdirp" "^1.0.1"
413
413
  debug "^3.1.0"
414
414
  graceful-fs "^4.2.4"
415
415
  jsen "0.6.6"
416
- jsforce "^1.10.0"
416
+ jsforce "^1.10.1"
417
417
  jsonwebtoken "8.5.0"
418
418
  mkdirp "1.0.4"
419
419
  sfdx-faye "^1.0.9"
420
+ ts-retry-promise "^0.6.0"
420
421
 
421
422
  "@salesforce/core@^2.1.4", "@salesforce/core@^2.2.0", "@salesforce/core@^2.6.0":
422
423
  version "2.9.0"
@@ -605,10 +606,10 @@
605
606
  "@types/minimatch" "*"
606
607
  "@types/node" "*"
607
608
 
608
- "@types/graceful-fs@^4.1.3":
609
- version "4.1.4"
610
- resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.4.tgz#4ff9f641a7c6d1a3508ff88bc3141b152772e753"
611
- integrity sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==
609
+ "@types/graceful-fs@^4.1.5":
610
+ version "4.1.5"
611
+ resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
612
+ integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==
612
613
  dependencies:
613
614
  "@types/node" "*"
614
615
 
@@ -625,10 +626,10 @@
625
626
  resolved "https://registry.yarnpkg.com/@types/jsforce/-/jsforce-1.9.2.tgz#a321866dcb7c9c4c57a1d794d54ec52e3f07ff0b"
626
627
  integrity sha512-ZRRPNf/e44QnFI8VEsPxzrM/+Y5vx/HGsMI8qE4JvBHDkSfoFWAdZ93uW6Oh3sHmcoShexcoTH9gufihTgYBLQ==
627
628
 
628
- "@types/jsforce@1.9.23":
629
- version "1.9.23"
630
- resolved "https://registry.yarnpkg.com/@types/jsforce/-/jsforce-1.9.23.tgz#06c2b604e02bfc8ba1143c6bf53530e565f18bae"
631
- integrity sha512-p1aqPWapTAG5xpTpebj4jSs5cwpNHe5PYFtEXCIjsSgfFgIW7GgQb5X/43/M8gkZNcGe8kchykrD9UgYKjz3eQ==
629
+ "@types/jsforce@^1.9.29":
630
+ version "1.9.35"
631
+ resolved "https://registry.yarnpkg.com/@types/jsforce/-/jsforce-1.9.35.tgz#abda87c796910d286420b07a97382c782b576ca8"
632
+ integrity sha512-GEb1iMAK8raElbBbozR7aVEuMl47jrPYLNkeh+3h2vLJIG21uQ/kOk4kPgMiMFwCmgfX4/tPDugnjb7qrMav4A==
632
633
  dependencies:
633
634
  "@types/node" "*"
634
635
 
@@ -674,10 +675,10 @@
674
675
  dependencies:
675
676
  "@types/node" "*"
676
677
 
677
- "@types/mkdirp@1.0.0":
678
- version "1.0.0"
679
- resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-1.0.0.tgz#16ce0eabe4a9a3afe64557ad0ee6886ec3d32927"
680
- integrity sha512-ONFY9//bCEr3DWKON3iDv/Q8LXnhaYYaNDeFSN0AtO5o4sLf9F0pstJKKKjQhXE0kJEeHs8eR6SAsROhhc2Csw==
678
+ "@types/mkdirp@^1.0.1":
679
+ version "1.0.2"
680
+ resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-1.0.2.tgz#8d0bad7aa793abe551860be1f7ae7f3198c16666"
681
+ integrity sha512-o0K1tSO0Dx5X6xlU5F1D6625FawhC3dU3iqr25lluNv/+/QIVH8RLNEiVokgIZo+mz+87w/3Mkg/VvQS+J51fQ==
681
682
  dependencies:
682
683
  "@types/node" "*"
683
684
 
@@ -3069,7 +3070,7 @@ jsforce@1.9.3:
3069
3070
  request "^2.72.0"
3070
3071
  xml2js "^0.4.16"
3071
3072
 
3072
- jsforce@^1.10.0:
3073
+ jsforce@^1.10.1:
3073
3074
  version "1.10.1"
3074
3075
  resolved "https://registry.yarnpkg.com/jsforce/-/jsforce-1.10.1.tgz#ca1cf58d4439d94e1f84482d83081acd12c93269"
3075
3076
  integrity sha512-rv+UpBR9n/sWdgLhyPOJuKgT9ZKngypYf9XOHoXVRpSllvTFCjn+M3H81Nu1oYjPH9JKXVS8hL1dmmq8+kOAJg==
@@ -5058,6 +5059,11 @@ ts-node@^8.6.2:
5058
5059
  source-map-support "^0.5.17"
5059
5060
  yn "3.1.1"
5060
5061
 
5062
+ ts-retry-promise@^0.6.0:
5063
+ version "0.6.0"
5064
+ resolved "https://registry.yarnpkg.com/ts-retry-promise/-/ts-retry-promise-0.6.0.tgz#95643500d5388eed25abc90aa2e99c8b6c5a7bc9"
5065
+ integrity sha512-8DF80uA7JPu6m8ouHxGkyBpPTIGQnsgIUgLDqcRaD7EEhVowjG72KqCX334gsa1P+AmzeTVdd/xEzVFCAuPCtg==
5066
+
5061
5067
  tslib@^1, tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.3:
5062
5068
  version "1.13.0"
5063
5069
  resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"