@salesforce/plugin-templates 53.0.0 → 53.4.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 +6 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js +6 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/templateCommand.d.ts +3 -0
- package/lib/utils/templateCommand.js +26 -1
- package/lib/utils/templateCommand.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +8 -7
- package/yarn.lock +851 -198
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"}
|
package/lib/utils/index.js
CHANGED
|
@@ -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");
|
package/lib/utils/index.js.map
CHANGED
|
@@ -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<string | undefined>;
|
|
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
|
|
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,
|
|
1
|
+
{"version":3,"file":"templateCommand.js","sourceRoot":"","sources":["../../src/utils/templateCommand.ts"],"names":[],"mappings":"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"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"53.0.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":"53.4.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": "53.
|
|
3
|
+
"version": "53.4.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"@oclif/command": "^1",
|
|
9
9
|
"@oclif/config": "^1",
|
|
10
10
|
"@oclif/errors": "^1",
|
|
11
|
-
"@salesforce/command": "^
|
|
12
|
-
"@salesforce/core": "2.
|
|
13
|
-
"@salesforce/templates": "53.
|
|
11
|
+
"@salesforce/command": "^4.2.1",
|
|
12
|
+
"@salesforce/core": "^2.33.1",
|
|
13
|
+
"@salesforce/templates": "53.4.0",
|
|
14
14
|
"tslib": "^1",
|
|
15
15
|
"yeoman-environment": "2.4.0",
|
|
16
|
-
"yeoman-generator": "4.
|
|
16
|
+
"yeoman-generator": "^4.8.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/dev-cli": "^1",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@types/yeoman-assert": "^3.1.1",
|
|
30
30
|
"@types/yeoman-generator": "4.11.0",
|
|
31
31
|
"chai": "^4",
|
|
32
|
+
"eslint": "^8.4.1",
|
|
32
33
|
"mocha": "^6.2.3",
|
|
33
34
|
"nyc": "15.0.1",
|
|
34
35
|
"shx": "0.2.2",
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
106
107
|
"compile": "tsc -b",
|
|
107
108
|
"build": "yarn run clean:lib && yarn compile",
|
|
108
|
-
"lint": "
|
|
109
|
+
"lint": "eslint -c .eslintrc.json --ext .ts ./src ./test",
|
|
109
110
|
"manifest:generate": "oclif-dev manifest",
|
|
110
111
|
"manifest:remove": "shx rm -f oclif.manifest.json",
|
|
111
112
|
"version": "oclif-dev readme && git add README.md",
|
|
@@ -116,6 +117,6 @@
|
|
|
116
117
|
},
|
|
117
118
|
"sfdx": {
|
|
118
119
|
"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-53.
|
|
120
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/signatures/salesforce-plugin-templates-53.4.0.sig"
|
|
120
121
|
}
|
|
121
122
|
}
|