@salesforce/plugin-templates 55.0.0 → 55.2.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.
Files changed (53) hide show
  1. package/LICENSE.txt +12 -0
  2. package/README.md +495 -17
  3. package/bin/dev +21 -0
  4. package/bin/dev.cmd +3 -0
  5. package/bin/run +3 -2
  6. package/lib/commands/force/analytics/template/create.d.ts +2 -2
  7. package/lib/commands/force/analytics/template/create.js +4 -6
  8. package/lib/commands/force/analytics/template/create.js.map +1 -1
  9. package/lib/commands/force/apex/class/create.d.ts +3 -3
  10. package/lib/commands/force/apex/class/create.js +5 -5
  11. package/lib/commands/force/apex/class/create.js.map +1 -1
  12. package/lib/commands/force/apex/trigger/create.d.ts +4 -4
  13. package/lib/commands/force/apex/trigger/create.js +8 -8
  14. package/lib/commands/force/apex/trigger/create.js.map +1 -1
  15. package/lib/commands/force/lightning/app/create.d.ts +3 -3
  16. package/lib/commands/force/lightning/app/create.js +9 -15
  17. package/lib/commands/force/lightning/app/create.js.map +1 -1
  18. package/lib/commands/force/lightning/component/create.d.ts +4 -4
  19. package/lib/commands/force/lightning/component/create.js +9 -13
  20. package/lib/commands/force/lightning/component/create.js.map +1 -1
  21. package/lib/commands/force/lightning/event/create.d.ts +3 -3
  22. package/lib/commands/force/lightning/event/create.js +9 -15
  23. package/lib/commands/force/lightning/event/create.js.map +1 -1
  24. package/lib/commands/force/lightning/interface/create.d.ts +3 -3
  25. package/lib/commands/force/lightning/interface/create.js +9 -15
  26. package/lib/commands/force/lightning/interface/create.js.map +1 -1
  27. package/lib/commands/force/lightning/test/create.d.ts +3 -3
  28. package/lib/commands/force/lightning/test/create.js +7 -9
  29. package/lib/commands/force/lightning/test/create.js.map +1 -1
  30. package/lib/commands/force/project/create.d.ts +6 -6
  31. package/lib/commands/force/project/create.js +10 -9
  32. package/lib/commands/force/project/create.js.map +1 -1
  33. package/lib/commands/force/staticresource/create.d.ts +3 -3
  34. package/lib/commands/force/staticresource/create.js +5 -5
  35. package/lib/commands/force/staticresource/create.js.map +1 -1
  36. package/lib/commands/force/visualforce/component/create.d.ts +4 -4
  37. package/lib/commands/force/visualforce/component/create.js +7 -10
  38. package/lib/commands/force/visualforce/component/create.js.map +1 -1
  39. package/lib/commands/force/visualforce/page/create.d.ts +4 -4
  40. package/lib/commands/force/visualforce/page/create.js +7 -10
  41. package/lib/commands/force/visualforce/page/create.js.map +1 -1
  42. package/lib/index.js +1 -1
  43. package/lib/utils/index.js +2 -1
  44. package/lib/utils/index.js.map +1 -1
  45. package/lib/utils/messageUtil.d.ts +4 -1
  46. package/lib/utils/messageUtil.js +5 -5
  47. package/lib/utils/messageUtil.js.map +1 -1
  48. package/lib/utils/templateCommand.d.ts +3 -4
  49. package/lib/utils/templateCommand.js +16 -14
  50. package/lib/utils/templateCommand.js.map +1 -1
  51. package/oclif.manifest.json +1 -1
  52. package/package.json +118 -48
  53. package/yarn.lock +3657 -453
@@ -1 +1 @@
1
- {"version":"55.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":"55.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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for project creation","multiple":false,"options":["standard","empty","analytics"],"default":"standard"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"namespace":{"name":"namespace","type":"option","char":"s","description":"project associated namespace","multiple":false,"default":""},"defaultpackagedir":{"name":"defaultpackagedir","type":"option","char":"p","description":"default package directory name","multiple":false,"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,"multiple":false,"default":"https://login.salesforce.com"}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:project:create --projectname mywork\n $ sfdx force:project:create --projectname mywork --defaultpackagedir myapp\n $ sfdx force:project:create --projectname mywork --defaultpackagedir myapp --manifest\n $ sfdx force:project:create --projectname mywork --template empty\n","longDescription":"Creates a Salesforce DX project in the specified directory or the current working directory. The command creates the necessary configuration files and folders.","flagsConfig":{"projectname":{"kind":"string","char":"n","description":"name of the generated project","longDescription":"The name for the new project. Any valid folder name is accepted.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for project creation","longDescription":"The template to use to create the project. Supplied parameter values or default values are filled into a copy of the template.","default":"standard","options":["standard","empty","analytics"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"namespace":{"kind":"string","char":"s","description":"project associated namespace","longDescription":"The namespace associated with this project and any connected scratch orgs.","default":"","input":[],"multiple":false,"type":"option"},"defaultpackagedir":{"kind":"string","char":"p","description":"default package directory name","longDescription":"The default package directory name. Metadata items such as classes and Lightning bundles are placed inside this folder.","default":"force-app","input":[],"multiple":false,"type":"option"},"manifest":{"kind":"boolean","char":"x","description":"generate a manifest (package.xml) for change-set based development","longDescription":"Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.","allowNo":false,"type":"boolean"},"loginurl":{"kind":"string","char":"l","description":"Salesforce instance login URL","longDescription":"The login URL for the Salesforce instance being used. Normally defaults to https://login.salesforce.com.","default":"https://login.salesforce.com","hidden":true,"input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"contenttype":{"name":"contenttype","type":"option","description":"content type (mime type) of the generated static resource","multiple":false,"default":"application/zip"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:staticresource:create -n MyResource\n $ sfdx force:staticresource:create -n MyResource --contenttype application/json\n $ sfdx force:staticresource:create -n MyResource -d staticresources\n","longDescription":"Creates a static resource in the specified directory or the current working directory. The resource folder and associated metadata file are created.","flagsConfig":{"resourcename":{"kind":"string","char":"n","description":"name of the generated static resource","longDescription":"The name of the new static resource. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.","required":true,"input":[],"multiple":false,"type":"option"},"contenttype":{"kind":"string","description":"content type (mime type) of the generated static resource","longDescription":"The content type of the generated static resource. This must be a valid MIME type such as application/json, application/javascript, application/zip, text/plain, text/css, etc.","default":"application/zip","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"templatename":{"name":"templatename","type":"option","char":"n","description":"name of the Analytics template","required":true,"multiple":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:analytics:template:create -n myTemplate -d outputdir\n","longDescription":"Creates a simple Analytics template in the specified directory. If you don’t explicitly set the API version, it defaults to the current API version. The associated metadata files are created.","flagsConfig":{"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"templatename":{"kind":"string","char":"n","description":"name of the Analytics template","longDescription":"The name of the Analytics template.","required":true,"input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["ApexException","ApexUnitTest","DefaultApexClass","InboundEmailService"],"default":"DefaultApexClass"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:apex:class:create -n MyClass\n $ sfdx force:apex:class:create -n MyClass -d classes\n","longDescription":"Creates an Apex class in the specified directory or the current working directory. If you don’t explicitly set the API version, it defaults to the current API version. The .cls file and associated metadata file are created.","flagsConfig":{"classname":{"kind":"string","char":"n","description":"name of the generated Apex class","longDescription":"The name of the new Apex class. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultApexClass","options":["ApexException","ApexUnitTest","DefaultApexClass","InboundEmailService"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["ApexTrigger"],"default":"ApexTrigger"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobject":{"name":"sobject","type":"option","char":"s","description":"sObject to create a trigger on","multiple":false,"default":"SOBJECT"},"triggerevents":{"name":"triggerevents","type":"option","char":"e","description":"events that fire the trigger","multiple":false,"default":["before insert"]}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:apex:trigger:create -n MyTrigger\n $ sfdx force:apex:trigger:create -n MyTrigger -s Account -e 'before insert,after insert'\n $ sfdx force:apex:trigger:create -n MyTrigger -d triggers\n","longDescription":"Creates an Apex trigger in the specified directory or the current working directory. If you don’t explicitly set the API version, it defaults to the current API version. The .trigger file and associated metadata file are created.","flagsConfig":{"triggername":{"kind":"string","char":"n","description":"name of the generated Apex trigger","longDescription":"The name of the new Apex trigger. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"ApexTrigger","options":["ApexTrigger"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"sobject":{"kind":"string","char":"s","description":"sObject to create a trigger on","longDescription":"The sObject to create an Apex trigger on.","default":"SOBJECT","input":[],"multiple":false,"type":"option"},"triggerevents":{"kind":"array","char":"e","description":"events that fire the trigger","longDescription":"The events that cause the trigger to fire.","default":["before insert"],"input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["DefaultLightningApp"],"default":"DefaultLightningApp"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:lightning:app:create -n myapp\n $ sfdx force:lightning:app:create -n myapp -d aura\n","longDescription":"Creates a Lightning app bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.","flagsConfig":{"appname":{"kind":"string","char":"n","description":"name of the generated Lightning app","longDescription":"The Lightning app name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultLightningApp","options":["DefaultLightningApp"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"internal":{"kind":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["default","analyticsDashboard","analyticsDashboardWithStep"],"default":"default"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"type":{"name":"type","type":"option","description":"type of the Lightning component","multiple":false,"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":[],"help":"If 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.\nExamples:\n $ sfdx force:lightning:component:create -n mycomponent\n $ sfdx force:lightning:component:create -n mycomponent --type lwc\n $ sfdx force:lightning:component:create -n mycomponent -d aura\n $ sfdx force:lightning:component:create -n mycomponent --type lwc -d lwc\n","longDescription":"Creates a bundle for an Aura component or a Lightning web component in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.","flagsConfig":{"componentname":{"kind":"string","char":"n","description":"name of the generated Lightning component","longDescription":"The Lightning component name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"default","options":["default","analyticsDashboard","analyticsDashboardWithStep"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"type":{"kind":"string","description":"type of the Lightning component","longDescription":"The type of the new Lightning component.","options":["aura","lwc"],"default":"aura","input":[],"multiple":false,"type":"option"},"internal":{"kind":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["DefaultLightningEvt"],"default":"DefaultLightningEvt"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:lightning:event:create -n myevent\n $ sfdx force:lightning:event:create -n myevent -d aura\n","longDescription":"Creates a Lightning event bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.","flagsConfig":{"eventname":{"kind":"string","char":"n","description":"name of the generated Lightning event","longDescription":"The Lightning event name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultLightningEvt","options":["DefaultLightningEvt"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"internal":{"kind":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["DefaultLightningIntf"],"default":"DefaultLightningIntf"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:lightning:interface:create -n myinterface\n $ sfdx force:lightning:interface:create -n myinterface -d aura\n","longDescription":"Creates a Lightning interface bundle in the specified directory or the current working directory. The bundle consists of multiple files in a folder with the designated name.","flagsConfig":{"interfacename":{"kind":"string","char":"n","description":"name of the generated Lightning interface","longDescription":"The Lightning interface name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultLightningIntf","options":["DefaultLightningIntf"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"internal":{"kind":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"template to use for file creation","multiple":false,"options":["DefaultLightningTest"],"default":"DefaultLightningTest"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"internal":{"name":"internal","type":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:lightning:test:create -n MyLightningTest\n $ sfdx force:lightning:test:create -n MyLightningTest -d lightningTests\n","longDescription":"Creates a Lightning test in the specified directory or the current working directory. The .resource file and associated metadata file are created.","flagsConfig":{"testname":{"kind":"string","char":"n","description":"name of the generated Lightning test","longDescription":"The name of the new Lightning test. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultLightningTest","options":["DefaultLightningTest"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"internal":{"kind":"boolean","char":"i","description":"create lightning bundles without creating a -meta.xml file","hidden":true,"allowNo":false,"type":"boolean"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false,"options":["DefaultVFComponent"],"default":"DefaultVFComponent"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"componentname":{"name":"componentname","type":"option","char":"n","description":"name of the generated Visualforce component","required":true,"multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"label":{"name":"label","type":"option","char":"l","description":"Visualforce component label","required":true,"multiple":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:visualforce:component:create -n mycomponent -l mylabel\n $ sfdx force:visualforce:component:create -n mycomponent -l mylabel -d components\n","longDescription":"Creates a Visualforce component in the specified directory or the current working directory. The command creates the .component file and associated metadata file.","flagsConfig":{"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultVFComponent","options":["DefaultVFComponent"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"componentname":{"kind":"string","char":"n","description":"name of the generated Visualforce component","longDescription":"The Visualforce component name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"label":{"kind":"string","char":"l","description":"Visualforce component label","longDescription":"The label saved in the metadata for the Visualforce component.","required":true,"input":[],"multiple":false,"type":"option"}}},"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","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false,"options":["DefaultVFPage"],"default":"DefaultVFPage"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"folder for saving the created files","multiple":false,"default":"."},"pagename":{"name":"pagename","type":"option","char":"n","description":"name of the generated Visualforce page","required":true,"multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"label":{"name":"label","type":"option","char":"l","description":"Visualforce page label","required":true,"multiple":false}},"args":[],"help":"If 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\nExamples:\n $ sfdx force:visualforce:page:create -n mypage -l mylabel\n $ sfdx force:visualforce:page:create -n mypage -l mylabel -d pages\n","longDescription":"Creates a Visualforce page in the specified directory or the current working directory. The command creates the .page file and associated metadata file.","flagsConfig":{"template":{"kind":"string","char":"t","description":"template to use for file creation","longDescription":"The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.","default":"DefaultVFPage","options":["DefaultVFPage"],"input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"folder for saving the created files","longDescription":"The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.","default":".","input":[],"multiple":false,"type":"option"},"pagename":{"kind":"string","char":"n","description":"name of the generated Visualforce page","longDescription":"The Visualforce page name. The name can be up to 40 characters and must start with a letter.","required":true,"input":[],"multiple":false,"type":"option"},"apiversion":{"type":"option","kind":"string","description":"override the api version used for api requests made by this command","longDescription":"Override the API version used for API requests made by this command.","input":[],"multiple":false},"label":{"kind":"string","char":"l","description":"Visualforce page label","longDescription":"The label saved in the metadata for the Visualforce page.","required":true,"input":[],"multiple":false,"type":"option"}}}}}
package/package.json CHANGED
@@ -1,42 +1,56 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-templates",
3
- "version": "55.0.0",
4
- "main": "index.js",
3
+ "description": "Commands to create metadata from a default or custom template",
4
+ "version": "55.2.0",
5
+ "main": "lib/index.js",
5
6
  "author": "Salesforce",
6
- "bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
7
+ "bugs": "https://github.com/salesforcecli/plugin-templates/issues",
7
8
  "dependencies": {
8
- "@oclif/command": "^1",
9
- "@oclif/config": "^1",
10
- "@oclif/errors": "^1",
11
- "@salesforce/command": "^4.2.1",
12
- "@salesforce/core": "^2.33.1",
13
- "@salesforce/templates": "55.0.0",
14
- "tslib": "^1",
15
- "yeoman-environment": "3.9.1",
9
+ "@oclif/core": "^1.12.0",
10
+ "@salesforce/command": "^5.2.1",
11
+ "@salesforce/core": "^3.25.1",
12
+ "@salesforce/templates": "55.1.0",
13
+ "tslib": "^2",
14
+ "yeoman-environment": "^3.9.1",
16
15
  "yeoman-generator": "^5.6.1"
17
16
  },
18
17
  "devDependencies": {
19
- "@oclif/dev-cli": "^1",
20
- "@oclif/plugin-command-snapshot": "^1.0.0",
21
- "@oclif/plugin-help": "^2",
22
- "@oclif/test": "^1",
18
+ "@oclif/plugin-command-snapshot": "^3.2.11",
19
+ "@oclif/plugin-help": "^5.1.12",
20
+ "@salesforce/dev-config": "^3.0.0",
21
+ "@salesforce/dev-scripts": "^2.0.4",
23
22
  "@salesforce/plugin-command-reference": "^1.3.0",
23
+ "@salesforce/prettier-config": "^0.0.2",
24
24
  "@salesforce/ts-sinon": "^1.2.2",
25
- "@types/chai": "^4",
26
- "@types/mkdirp": "0.5.2",
27
- "@types/mocha": "^5",
28
- "@types/node": "^10",
25
+ "@swc/core": "^1.3.25",
26
+ "@types/mkdirp": "^0.5.2",
29
27
  "@types/yeoman-assert": "^3.1.1",
30
28
  "@types/yeoman-generator": "^5.2.9",
31
- "chai": "^4",
29
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
30
+ "@typescript-eslint/parser": "^5.30.7",
31
+ "chai": "^4.2.0",
32
+ "commitizen": "^4.2.5",
33
+ "cz-conventional-changelog": "^3.3.0",
32
34
  "eslint": "^8.4.1",
33
- "mocha": "^6.2.3",
34
- "nyc": "15.0.1",
35
- "shx": "0.3.4",
36
- "sinon": "^7.3.1",
37
- "ts-node": "^8.6.2",
38
- "tslint": "^6.1.0",
39
- "typescript": "^3.8.3",
35
+ "eslint-config-prettier": "^8.5.0",
36
+ "eslint-config-salesforce": "^1.1.0",
37
+ "eslint-config-salesforce-license": "^0.1.6",
38
+ "eslint-config-salesforce-typescript": "^1.1.1",
39
+ "eslint-plugin-header": "^3.0.0",
40
+ "eslint-plugin-import": "2.26.0",
41
+ "eslint-plugin-jsdoc": "^39.6.2",
42
+ "eslint-plugin-prettier": "^3.1.3",
43
+ "eslint-plugin-sf-plugin": "^1.1.5",
44
+ "husky": "^7.0.4",
45
+ "mocha": "^9.1.3",
46
+ "nyc": "^15.1.0",
47
+ "oclif": "^3.4.3",
48
+ "prettier": "^2.0.5",
49
+ "pretty-quick": "^3.1.0",
50
+ "shx": "^0.3.4",
51
+ "sinon": "10.0.0",
52
+ "ts-node": "^10.0.0",
53
+ "typescript": "^4.4.4",
40
54
  "yeoman-assert": "^3.1.1",
41
55
  "yeoman-test": "^6.3.0"
42
56
  },
@@ -44,13 +58,16 @@
44
58
  "yeoman-generator": "^5.6.1",
45
59
  "@types/yeoman-generator": "^5.2.9"
46
60
  },
47
- "homepage": "https://github.com/forcedotcom/salesforcedx-templates",
61
+ "homepage": "https://github.com/salesforcecli/plugin-templates",
48
62
  "keywords": [
49
63
  "force",
50
64
  "salesforce",
51
65
  "sfdx",
52
- "salesforcedx",
53
- "sfdx-plugin"
66
+ "salesforcecli",
67
+ "sfdx-plugin",
68
+ "sf-plugin",
69
+ "templates",
70
+ "sf"
54
71
  ],
55
72
  "license": "BSD-3-Clause",
56
73
  "files": [
@@ -63,6 +80,9 @@
63
80
  ],
64
81
  "oclif": {
65
82
  "commands": "./lib/commands",
83
+ "additionalHelpFlags": [
84
+ "-h"
85
+ ],
66
86
  "bin": "sfdx",
67
87
  "devPlugins": [
68
88
  "@oclif/plugin-help",
@@ -74,7 +94,15 @@
74
94
  "external": true,
75
95
  "subtopics": {
76
96
  "apex": {
77
- "external": true
97
+ "external": true,
98
+ "subtopics": {
99
+ "class": {
100
+ "description": "create apex class"
101
+ },
102
+ "trigger": {
103
+ "description": "create apex trigger"
104
+ }
105
+ }
78
106
  },
79
107
  "analytics": {
80
108
  "description": "work with analytics assets",
@@ -87,40 +115,82 @@
87
115
  }
88
116
  },
89
117
  "lightning": {
90
- "external": true
118
+ "description": "work with lwc and aura components",
119
+ "external": true,
120
+ "subtopics": {
121
+ "app": {
122
+ "description": "create app (aura or lwc)"
123
+ },
124
+ "component": {
125
+ "description": "create component (aura or lwc)"
126
+ },
127
+ "event": {
128
+ "description": "create aura event"
129
+ },
130
+ "interface": {
131
+ "description": "create aura interface"
132
+ },
133
+ "test": {
134
+ "description": "create lwc test"
135
+ }
136
+ }
91
137
  },
92
138
  "project": {
93
- "external": true,
94
- "subtopics": {}
139
+ "description": "work with sfdx projects",
140
+ "external": true
95
141
  },
96
142
  "visualforce": {
143
+ "description": "work with visualforce components",
97
144
  "external": true,
98
- "subtopics": {}
145
+ "subtopics": {
146
+ "component": {
147
+ "description": "create a visualforce"
148
+ },
149
+ "page": {
150
+ "description": "create a visualforce page"
151
+ }
152
+ }
99
153
  },
100
154
  "staticresource": {
101
- "external": true,
102
- "subtopics": {}
155
+ "description": "work with static resources",
156
+ "external": true
103
157
  }
104
158
  }
105
159
  }
106
160
  }
107
161
  },
108
- "repository": "forcedotcom/salesforcedx-templates",
162
+ "engines": {
163
+ "node": ">=14.0.0"
164
+ },
165
+ "repository": "salesforcecli/plugin-templates",
109
166
  "scripts": {
167
+ "build": "sf-build",
168
+ "clean": "sf-clean",
169
+ "clean-all": "sf-clean all",
110
170
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
111
- "compile": "tsc -b",
112
- "build": "yarn run clean:lib && yarn compile",
113
- "lint": "eslint -c .eslintrc.json --ext .ts ./src ./test",
114
- "manifest:generate": "oclif-dev manifest",
171
+ "compile": "sf-compile",
172
+ "commit": "git-cz",
173
+ "docs": "sf-docs",
174
+ "format": "sf-format",
175
+ "lint": "sf-lint",
176
+ "lint:fix": "eslint 'src/**/*.ts' 'test/**/*.ts' --fix",
177
+ "manifest:generate": "oclif manifest",
115
178
  "manifest:remove": "shx rm -f oclif.manifest.json",
116
- "version": "oclif-dev readme && git add README.md",
117
- "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
118
179
  "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference",
119
- "test:deprecation-policy": "./bin/run snapshot:compare",
120
- "test:command-reference": "./bin/run commandreference:generate -p @salesforce/plugin-templates --erroronwarnings"
180
+ "prepack": "sf-prepack",
181
+ "pretest": "sf-compile-test",
182
+ "test": "sf-test",
183
+ "test:command-reference": "./bin/dev commandreference:generate -p @salesforce/plugin-templates --erroronwarnings",
184
+ "test:deprecation-policy": "./bin/dev snapshot:compare",
185
+ "version": "oclif readme && git add README.md"
186
+ },
187
+ "config": {
188
+ "commitizen": {
189
+ "path": "./node_modules/cz-conventional-changelog"
190
+ }
121
191
  },
122
192
  "sfdx": {
123
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/sfdx-cli-03032020.crt",
124
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/signatures/salesforce-plugin-templates-55.0.0.sig"
193
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/55.2.0.crt",
194
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/55.2.0.sig"
125
195
  }
126
196
  }