_sfdx 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110
  1. #compdef sfdx
  2. # DESCRIPTION: Zsh completion script for the Salesforce CLI
  3. # AUTHOR: Wade Wegner (@WadeWegner)
  4. # REPO: https://github.com/wadewegner/salesforce-cli-zsh-completion
  5. # LICENSE: https://github.com/wadewegner/salesforce-cli-zsh-completion/blob/master/LICENSE
  6. local -a _1st_arguments
  7. _1st_arguments=(
  8. "force\:alias\:list":"list username aliases for the Salesforce CLI"
  9. "force\:alias\:set":"set username aliases for the Salesforce CLI"
  10. "force\:apex\:class\:create":"create an Apex class"
  11. "force\:apex\:execute":"execute anonymous Apex code"
  12. "force\:apex\:log\:get":"fetch a debug log"
  13. "force\:apex\:log\:list":"list debug logs"
  14. "force\:apex\:log\:tail":"start debug logging and display logs"
  15. "force\:apex\:test\:report":"display test results"
  16. "force\:apex\:test\:run":"invoke Apex tests"
  17. "force\:apex\:trigger\:create":"create an Apex trigger"
  18. "force\:auth\:jwt\:grant":"authorize an org using the JWT flow"
  19. "force\:auth\:logout":"log out from authorized orgs"
  20. "force\:auth\:sfdxurl\:store":"authorize an org using an SFDX auth URL"
  21. "force\:auth\:web\:login":"authorize an org using the web login flow"
  22. "force\:config\:get":"get config var values for given names"
  23. "force\:config\:list":"list config vars for the Salesforce CLI"
  24. "force\:config\:set":"set config vars for the Salesforce CLI"
  25. "force\:data\:bulk\:delete":"bulk delete records from a csv file"
  26. "force\:data\:bulk\:status":"view the status of a bulk data load job or batch"
  27. "force\:data\:bulk\:upsert":"bulk upsert records from a CSV file"
  28. "force\:data\:record\:create":"create a record"
  29. "force\:data\:record\:delete":"delete a record"
  30. "force\:data\:record\:get":"view a record"
  31. "force\:data\:record\:update":"update a record"
  32. "force\:data\:soql\:query":"execute a SOQL query"
  33. "force\:data\:tree\:export":"export data from an org into sObject tree format for force:data:tree:import consumption"
  34. "force\:data\:tree\:import":"import data into an org using SObject Tree Save API"
  35. "force\:doc\:commands\:display":"display help for force commands"
  36. "force\:doc\:commands\:list":"list the force commands"
  37. "force\:lightning\:app\:create":"create a Lightning app"
  38. "force\:lightning\:component\:create":"create a bundle for an Aura component or a Lightning web component"
  39. "force\:lightning\:event\:create":"create a Lightning event"
  40. "force\:lightning\:interface\:create":"create a Lightning interface"
  41. "force\:lightning\:lint":"analyse (lint) Lightning component code"
  42. "force\:lightning\:test\:create":"create a Lightning test"
  43. "force\:lightning\:test\:install":"install Lightning Testing Service unmanaged package in your org"
  44. "force\:lightning\:test\:run":"invoke Aura component tests"
  45. "force\:limits\:api\:display":"display current org’s limits"
  46. "force\:mdapi\:convert":"convert metadata from the Metadata API format into the source format"
  47. "force\:mdapi\:deploy":"deploy metadata to an org using Metadata API"
  48. "force\:mdapi\:deploy\:cancel":"cancel a metadata deployment"
  49. "force\:mdapi\:deploy\:report":"check the status of a metadata deployment"
  50. "force\:mdapi\:retrieve":"retrieve metadata from an org using Metadata API"
  51. "force\:mdapi\:retrieve\:report":"check the status of a metadata retrieval"
  52. "force\:org\:create":"create a scratch org"
  53. "force\:org\:delete":"mark a scratch org for deletion"
  54. "force\:org\:display":"get org description"
  55. "force\:org\:list":"list all orgs you’ve created or authenticated to"
  56. "force\:org\:open":"open an org in your browser"
  57. "force\:org\:shape\:create":"create a snapshot of org edition, features, and licenses"
  58. "force\:org\:shape\:delete":"delete all org shapes for a target org"
  59. "force\:org\:shape\:list":"list all org shapes you’ve created"
  60. "force\:org\:snapshot\:create":"snapshot a scratch org"
  61. "force\:org\:snapshot\:delete":"delete a scratch org snapshot"
  62. "force\:org\:snapshot\:get":"get details about a scratch org snapshot"
  63. "force\:org\:snapshot\:list":"list scratch org snapshots"
  64. "force\:package1\:version\:create":"create a first-generation package version in the release org"
  65. "force\:package1\:version\:create\:get":"retrieve the status of a package version creation request"
  66. "force\:package1\:version\:display":"display details about a first-generation package version"
  67. "force\:package1\:version\:list":"list package versions for the specified first-generation package or for the org"
  68. "force\:package\:create":"create a package"
  69. "force\:package\:hammertest\:list":"list the statuses of running and completed hammer tests"
  70. "force\:package\:hammertest\:report":"display the status or results of a hammer test"
  71. "force\:package\:hammertest\:run":"run ISV Hammer"
  72. "force\:package\:install":"install a package in the target org"
  73. "force\:package\:install\:report":"retrieve the status of a package installation request"
  74. "force\:package\:installed\:list":"list the org’s installed packages"
  75. "force\:package\:list":"list all packages in the Dev Hub org"
  76. "force\:package\:uninstall":"uninstall a second-generation package from the target org"
  77. "force\:package\:uninstall\:report":"retrieve status of package uninstall request"
  78. "force\:package\:update":"update package details"
  79. "force\:package\:version\:create":"create a package version"
  80. "force\:package\:version\:create\:list":"list package version creation requests"
  81. "force\:package\:version\:create\:report":"retrieve details about a package version creation request"
  82. "force\:package\:version\:list":"list all package versions in the Dev Hub org"
  83. "force\:package\:version\:promote":"promote a package version to released"
  84. "force\:package\:version\:report":"retrieve details about a package version in the Dev Hub org"
  85. "force\:package\:version\:update":"update a package version"
  86. "force\:project\:create":"create a new SFDX project"
  87. "force\:project\:upgrade":"update project config files to the latest format"
  88. "force\:schema\:sobject\:describe":"describe an object"
  89. "force\:schema\:sobject\:list":"list all objects of a specified category"
  90. "force\:source\:convert":"convert source into Metadata API format"
  91. "force\:source\:delete":"delete source from your project and from a non-source-tracked org"
  92. "force\:source\:deploy":"deploy source to a non-source-tracked org"
  93. "force\:source\:open":"edit a Lightning Page with Lightning App Builder"
  94. "force\:source\:pull":"pull source from the scratch org to the project"
  95. "force\:source\:push":"push source to a scratch org from the project"
  96. "force\:source\:retrieve":"retrieve source from a non-source-tracked org"
  97. "force\:source\:status":"list local changes and/or changes in a scratch org"
  98. "force\:user\:create":"create a user for a scratch org"
  99. "force\:user\:display":"displays information about a user of a scratch org"
  100. "force\:user\:list":"lists all users of a scratch org"
  101. "force\:user\:password\:generate":"generate a password for scratch org users"
  102. "force\:user\:permset\:assign":"assign a permission set to one or more users of an org"
  103. "force\:visualforce\:component\:create":"create a Visualforce component"
  104. "force\:visualforce\:page\:create":"create a Visualforce page"
  105. )
  106. _arguments '*:: :->command'
  107. if (( CURRENT == 1 )); then
  108. _describe -t commands "sfdx command" _1st_arguments
  109. return
  110. fi
  111. local -a _command_args
  112. case "$words[1]" in
  113. force:limits:api:display)
  114. _command_args=(
  115. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  116. '(--json)--json[format output as json]' \
  117. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  118. )
  119. ;;
  120. force:lightning:app:create)
  121. _command_args=(
  122. '(-n|--appname)'{-n,--appname}'[name of the generated Lightning app]' \
  123. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningApp*)]' \
  124. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  125. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  126. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  127. '(--json)--json[JSON output]' \
  128. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  129. )
  130. ;;
  131. force:data:bulk:delete)
  132. _command_args=(
  133. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the sObject type of the records you’re deleting]' \
  134. '(-f|--csvfile)'{-f,--csvfile}'[the path to the CSV file containing the ids of the records to delete]:file:_files' \
  135. '(-w|--wait)'{-w,--wait}'[the number of minutes to wait for the command to complete before displaying the results]' \
  136. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  137. '(--json)--json[format output as json]' \
  138. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  139. )
  140. ;;
  141. force:data:bulk:status)
  142. _command_args=(
  143. '(-i|--jobid)'{-i,--jobid}'[the ID of the job you want to view or of the job whose batch you want to view]' \
  144. '(-b|--batchid)'{-b,--batchid}'[the ID of the batch whose status you want to view]' \
  145. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  146. '(--json)--json[format output as json]' \
  147. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  148. )
  149. ;;
  150. force:data:bulk:upsert)
  151. _command_args=(
  152. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the sObject type of the records you want to upsert]' \
  153. '(-f|--csvfile)'{-f,--csvfile}'[the path to the CSV file that defines the records to upsert]:file:_files' \
  154. '(-i|--externalid)'{-i,--externalid}'[the column name of the external ID]' \
  155. '(-w|--wait)'{-w,--wait}'[the number of minutes to wait for the command to complete before displaying the results]' \
  156. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  157. '(--json)--json[format output as json]' \
  158. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  159. )
  160. ;;
  161. force:apex:class:create)
  162. _command_args=(
  163. '(-n|--classname)'{-n,--classname}'[name of the generated Apex class]' \
  164. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultApexClass*,ApexException,ApexUnitTest,InboundEmailService)]' \
  165. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  166. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  167. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  168. '(--json)--json[JSON output]' \
  169. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  170. )
  171. ;;
  172. force:doc:commands:display)
  173. _command_args=(
  174. '(--json)--json[format output as json]' \
  175. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  176. )
  177. ;;
  178. force:doc:commands:list)
  179. _command_args=(
  180. '(-u|--usage)'{-u,--usage}'[list only docopt usage strings]' \
  181. '(--json)--json[format output as json]' \
  182. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  183. )
  184. ;;
  185. force:visualforce:component:create)
  186. _command_args=(
  187. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultVFComponent*)]' \
  188. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  189. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  190. '(-n|--componentname)'{-n,--componentname}'[name of the generated Visualforce component]' \
  191. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  192. '(-l|--label)'{-l,--label}'[Visualforce component label]' \
  193. '(--json)--json[JSON output]' \
  194. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  195. )
  196. ;;
  197. force:lightning:component:create)
  198. _command_args=(
  199. '(-n|--componentname)'{-n,--componentname}'[name of the generated Lightning component]' \
  200. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningCmp*)]' \
  201. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  202. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  203. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  204. '(--type)--type[type of the Lightning component (aura*,lwc)]' \
  205. '(--json)--json[JSON output]' \
  206. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  207. )
  208. ;;
  209. force:mdapi:convert)
  210. _command_args=(
  211. '(-r|--rootdir)'{-r,--rootdir}'[the root directory containing the Metadata API–formatted metadata]:file:_files' \
  212. '(-d|--outputdir)'{-d,--outputdir}'[the output directory to store the source–formatted files]:file:_files' \
  213. '(--json)--json[format output as json]' \
  214. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  215. )
  216. ;;
  217. force:source:convert)
  218. _command_args=(
  219. '(-r|--rootdir)'{-r,--rootdir}'[a source directory other than the default package to convert]:file:_files' \
  220. '(-d|--outputdir)'{-d,--outputdir}'[output directory to store the Metadata API–formatted files in]:file:_files' \
  221. '(-n|--packagename)'{-n,--packagename}'[name of the package to associate with the metadata-formatted files]' \
  222. '(--json)--json[format output as json]' \
  223. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  224. )
  225. ;;
  226. force:org:create)
  227. _command_args=(
  228. '(-f|--definitionfile)'{-f,--definitionfile}'[path to a scratch org definition file]:file:_files' \
  229. '(-j|--definitionjson)'{-j,--definitionjson}'[scratch org definition in json format ]' \
  230. '(-n|--nonamespace)'{-n,--nonamespace}'[creates the scratch org with no namespace]' \
  231. '(-c|--noancestors)'{-c,--noancestors}'[do not include second-generation package ancestors in the scratch org]' \
  232. '(-i|--clientid)'{-i,--clientid}'[connected app consumer key]' \
  233. '(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the created org as the default username]' \
  234. '(-a|--setalias)'{-a,--setalias}'[set an alias for for the created scratch org]' \
  235. '(-e|--env)'{-e,--env}'[environment where the scratch org is created: \[sandbox*,virtual,prototype\] (sandbox*,virtual,prototype)]' \
  236. '(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
  237. '(-d|--durationdays)'{-d,--durationdays}'[duration of the scratch org (in days) (default:7, min:1, max:30)]' \
  238. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  239. '(--json)--json[format output as json]' \
  240. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  241. )
  242. ;;
  243. force:package:create)
  244. _command_args=(
  245. '(-n|--name)'{-n,--name}'[package name]' \
  246. '(-t|--packagetype)'{-t,--packagetype}'[package type (Managed,Unlocked)]' \
  247. '(-d|--description)'{-d,--description}'[package description]' \
  248. '(-e|--nonamespace)'{-e,--nonamespace}'[creates the package with no namespace; available only for unlocked packages.]' \
  249. '(-r|--path)'{-r,--path}'[path to directory that contains the contents of the package]:file:_files' \
  250. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  251. '(--json)--json[format output as json]' \
  252. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  253. )
  254. ;;
  255. force:user:create)
  256. _command_args=(
  257. '(-f|--definitionfile)'{-f,--definitionfile}'[file path to a user definition]:file:_files' \
  258. '(-a|--setalias)'{-a,--setalias}'[set an alias for the created username to reference within the CLI]' \
  259. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  260. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  261. '(--json)--json[format output as json]' \
  262. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  263. )
  264. ;;
  265. force:project:create)
  266. _command_args=(
  267. '(-n|--projectname)'{-n,--projectname}'[name of the generated project]' \
  268. '(-t|--template)'{-t,--template}'[template to use for file creation (Defaultsfdx-project.json*)]' \
  269. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  270. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  271. '(-l|--loginurl)'{-l,--loginurl}'[Salesforce instance login URL (https://login.salesforce.com*)]' \
  272. '(--sourceapiversion)--sourceapiversion[source API version number (45.0*)]' \
  273. '(-s|--namespace)'{-s,--namespace}'[project associated namespace]' \
  274. '(-p|--defaultpackagedir)'{-p,--defaultpackagedir}'[default package directory name (force-app*)]' \
  275. '(-x|--manifest)'{-x,--manifest}'[generate a manifest (package.xml) for change-set-based development]' \
  276. '(--json)--json[JSON output]' \
  277. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  278. )
  279. ;;
  280. force:org:delete)
  281. _command_args=(
  282. '(-p|--noprompt)'{-p,--noprompt}'[no prompt to confirm deletion]' \
  283. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org]' \
  284. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  285. '(--json)--json[format output as json]' \
  286. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  287. )
  288. ;;
  289. force:source:delete)
  290. _command_args=(
  291. '(-r|--noprompt)'{-r,--noprompt}'[do not prompt for delete confirmation]' \
  292. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  293. '(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of paths to the local metadata to delete]:file:_files' \
  294. '(-m|--metadata)'{-m,--metadata}'[comma-separated list of names of metadata components to delete]' \
  295. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  296. '(--json)--json[format output as json]' \
  297. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  298. )
  299. ;;
  300. force:mdapi:deploy)
  301. _command_args=(
  302. '(-c|--checkonly)'{-c,--checkonly}'[validate deploy but don’t save to the org (default:false)]' \
  303. '(-d|--deploydir)'{-d,--deploydir}'[root of directory tree of files to deploy]:file:_files' \
  304. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 0)]' \
  305. '(-i|--jobid)'{-i,--jobid}'[(deprecated) job ID of the deployment you want to check; defaults to your most recent CLI deployment if not specified]' \
  306. '(-l|--testlevel)'{-l,--testlevel}'[deployment testing level (NoTestRun,RunSpecifiedTests,RunLocalTests,RunAllTestsInOrg)]' \
  307. '(-r|--runtests)'{-r,--runtests}'[tests to run if --testlevel RunSpecifiedTests]' \
  308. '(-e|--rollbackonerror)'{-e,--rollbackonerror}'[(deprecated) roll back deployment for any failure (default:true)]' \
  309. '(-o|--ignoreerrors)'{-o,--ignoreerrors}'[ignore any errors and do not roll back deployment (default:false)]' \
  310. '(-g|--ignorewarnings)'{-g,--ignorewarnings}'[whether a warning will allow a deployment to complete successfully (default:false)]' \
  311. '(-q|--validateddeployrequestid)'{-q,--validateddeployrequestid}'[request ID of the validated deployment to run a Quick Deploy]' \
  312. '(-f|--zipfile)'{-f,--zipfile}'[path to .zip file of metadata to deploy]:file:_files' \
  313. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  314. '(--json)--json[format output as json]' \
  315. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  316. '(--verbose)--verbose[verbose output of deploy results]' \
  317. )
  318. ;;
  319. force:source:deploy)
  320. _command_args=(
  321. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  322. '(-m|--metadata)'{-m,--metadata}'[comma-separated list of metadata component names]' \
  323. '(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of paths to the local source files to deploy]:file:_files' \
  324. '(-x|--manifest)'{-x,--manifest}'[file path for manifest (package.xml) of components to deploy]:file:_files' \
  325. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  326. '(--json)--json[format output as json]' \
  327. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  328. )
  329. ;;
  330. force:mdapi:deploy:cancel)
  331. _command_args=(
  332. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  333. '(-i|--jobid)'{-i,--jobid}'[job ID of the deployment you want to cancel; defaults to your most recent CLI deployment if not specified]' \
  334. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  335. '(--json)--json[format output as json]' \
  336. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  337. )
  338. ;;
  339. force:mdapi:deploy:report)
  340. _command_args=(
  341. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 0)]' \
  342. '(-i|--jobid)'{-i,--jobid}'[job ID of the deployment you want to check; defaults to your most recent CLI deployment if not specified]' \
  343. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  344. '(--json)--json[format output as json]' \
  345. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  346. '(--verbose)--verbose[verbose output of deploy results]' \
  347. )
  348. ;;
  349. force:org:display)
  350. _command_args=(
  351. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  352. '(--json)--json[format output as json]' \
  353. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  354. '(--verbose)--verbose[emit additional command output to stdout]' \
  355. )
  356. ;;
  357. force:user:display)
  358. _command_args=(
  359. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  360. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  361. '(--json)--json[format output as json]' \
  362. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  363. )
  364. ;;
  365. force:lightning:event:create)
  366. _command_args=(
  367. '(-n|--eventname)'{-n,--eventname}'[name of the generated Lightning event]' \
  368. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningEvt*)]' \
  369. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  370. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  371. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  372. '(--json)--json[JSON output]' \
  373. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  374. )
  375. ;;
  376. force:apex:execute)
  377. _command_args=(
  378. '(-f|--apexcodefile)'{-f,--apexcodefile}'[path to a local file containing Apex code]:file:_files' \
  379. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  380. '(--json)--json[format output as json]' \
  381. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  382. )
  383. ;;
  384. force:config:get)
  385. _command_args=(
  386. '(--json)--json[format output as json]' \
  387. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  388. '(--verbose)--verbose[emit additional command output to stdout]' \
  389. )
  390. ;;
  391. force:package:hammertest:list)
  392. _command_args=(
  393. '(-i|--packageversionid)'{-i,--packageversionid}'[ID of the package version to list results for]' \
  394. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  395. '(--json)--json[format output as json]' \
  396. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  397. )
  398. ;;
  399. force:package:hammertest:report)
  400. _command_args=(
  401. '(-i|--requestid)'{-i,--requestid}'[ID of the hammer request to report on]' \
  402. '(-s|--summary)'{-s,--summary}'[report only a results summary (hide Apex test failures)]' \
  403. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  404. '(--json)--json[format output as json]' \
  405. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  406. )
  407. ;;
  408. force:package:hammertest:run)
  409. _command_args=(
  410. '(-i|--packageversionid)'{-i,--packageversionid}'[ID of the package version to test]' \
  411. '(-s|--subscriberorg)'{-s,--subscriberorg}'[comma-separated list of subscriber orgs IDs]' \
  412. '(-f|--subscriberfile)'{-f,--subscriberfile}'[file with list of subscriber orgs IDs, one per line]' \
  413. '(-d|--scheduledrundatetime)'{-d,--scheduledrundatetime}'[earliest date/time to run the test]' \
  414. '(-p|--preview)'{-p,--preview}'[run the package hammer test in the Salesforce preview version]' \
  415. '(-t|--apextests)'{-t,--apextests}'[run the apex tests in the subscriber org]' \
  416. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  417. '(--json)--json[format output as json]' \
  418. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  419. )
  420. ;;
  421. force:package:install)
  422. _command_args=(
  423. '(-w|--wait)'{-w,--wait}'[number of minutes to wait for installation status]' \
  424. '(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (default: null)]' \
  425. '(-b|--publishwait)'{-b,--publishwait}'[number of minutes to wait for subscriber package version ID to become available in the target org ]' \
  426. '(-r|--noprompt)'{-r,--noprompt}'[allow Remote Site Settings and Content Security Policy websites to send or receive data without confirmation]' \
  427. '(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to install]' \
  428. '(-s|--securitytype)'{-s,--securitytype}'[security access type for the installed package (AllUsers,AdminsOnly)]' \
  429. '(-t|--upgradetype)'{-t,--upgradetype}'[the upgrade type for the package installation (Mixed*,DeprecateOnly)]' \
  430. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  431. '(--json)--json[format output as json]' \
  432. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  433. )
  434. ;;
  435. force:package:install:report)
  436. _command_args=(
  437. '(-i|--requestid)'{-i,--requestid}'[ID of the package install request you want to check]' \
  438. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  439. '(--json)--json[format output as json]' \
  440. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  441. )
  442. ;;
  443. force:package:installed:list)
  444. _command_args=(
  445. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  446. '(--json)--json[format output as json]' \
  447. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  448. )
  449. ;;
  450. force:lightning:interface:create)
  451. _command_args=(
  452. '(-n|--interfacename)'{-n,--interfacename}'[name of the generated Lightning interface]' \
  453. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningIntf*)]' \
  454. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  455. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  456. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  457. '(--json)--json[JSON output]' \
  458. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  459. )
  460. ;;
  461. force:auth:jwt:grant)
  462. _command_args=(
  463. '(-u|--username)'{-u,--username}'[authentication username]' \
  464. '(-f|--jwtkeyfile)'{-f,--jwtkeyfile}'[path to a file containing the private key]:file:_files' \
  465. '(-i|--clientid)'{-i,--clientid}'[OAuth client ID (sometimes called the consumer key)]' \
  466. '(-r|--instanceurl)'{-r,--instanceurl}'[the login URL of the instance the org lives on]' \
  467. '(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
  468. '(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
  469. '(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
  470. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
  471. '(--json)--json[format output as json]' \
  472. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  473. )
  474. ;;
  475. force:lightning:lint)
  476. _command_args=(
  477. '(--ignore)--ignore[pattern used to ignore some folders]' \
  478. '(--files)--files[pattern used to include specific files]' \
  479. '(--json)--json[format output as JSON]' \
  480. '(--config)--config[path to a custom ESLint configuration file]' \
  481. '(--verbose)--verbose[report warnings in addition to errors]' \
  482. '(--exit)--exit[exit with error code 1 if there are lint issues]' \
  483. )
  484. ;;
  485. force:alias:list)
  486. _command_args=(
  487. '(--json)--json[format output as json]' \
  488. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  489. )
  490. ;;
  491. force:config:list)
  492. _command_args=(
  493. '(--json)--json[format output as json]' \
  494. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  495. )
  496. ;;
  497. force:org:list)
  498. _command_args=(
  499. '(--all)--all[include expired, deleted, and unknown-status scratch orgs]' \
  500. '(--clean)--clean[remove all local org authorizations for non-active orgs]' \
  501. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
  502. '(--json)--json[format output as json]' \
  503. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  504. '(--verbose)--verbose[list more information about each org]' \
  505. )
  506. ;;
  507. force:package:list)
  508. _command_args=(
  509. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  510. '(--json)--json[format output as json]' \
  511. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  512. '(--verbose)--verbose[display extended package detail]' \
  513. )
  514. ;;
  515. force:user:list)
  516. _command_args=(
  517. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  518. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  519. '(--json)--json[format output as json]' \
  520. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  521. )
  522. ;;
  523. force:apex:log:get)
  524. _command_args=(
  525. '(-c|--color)'{-c,--color}'[colorize noteworthy log lines]' \
  526. '(-i|--logid)'{-i,--logid}'[ID of the log to display]' \
  527. '(-n|--number)'{-n,--number}'[number of most recent logs to display (min:1, max:25)]' \
  528. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  529. '(--json)--json[format output as json]' \
  530. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  531. )
  532. ;;
  533. force:apex:log:list)
  534. _command_args=(
  535. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  536. '(--json)--json[format output as json]' \
  537. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  538. )
  539. ;;
  540. force:apex:log:tail)
  541. _command_args=(
  542. '(-c|--color)'{-c,--color}'[colorize noteworthy log lines]' \
  543. '(-d|--debuglevel)'{-d,--debuglevel}'[debug level for trace flag]' \
  544. '(-s|--skiptraceflag)'{-s,--skiptraceflag}'[skip trace flag setup]' \
  545. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  546. '(--json)--json[format output as json]' \
  547. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  548. )
  549. ;;
  550. force:auth:logout)
  551. _command_args=(
  552. '(-a|--all)'{-a,--all}'[include all authenticated orgs]' \
  553. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
  554. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  555. '(--json)--json[format output as json]' \
  556. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  557. )
  558. ;;
  559. force:org:open)
  560. _command_args=(
  561. '(-p|--path)'{-p,--path}'[navigation URL path]' \
  562. '(-r|--urlonly)'{-r,--urlonly}'[display navigation URL, but don’t launch browser]' \
  563. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  564. '(--json)--json[format output as json]' \
  565. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  566. )
  567. ;;
  568. force:source:open)
  569. _command_args=(
  570. '(-f|--sourcefile)'{-f,--sourcefile}'[file to edit]:file:_files' \
  571. '(-r|--urlonly)'{-r,--urlonly}'[generate a navigation URL; don’t launch the editor]' \
  572. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  573. '(--json)--json[format output as json]' \
  574. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  575. )
  576. ;;
  577. force:visualforce:page:create)
  578. _command_args=(
  579. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultVFPage*)]' \
  580. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  581. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  582. '(-n|--pagename)'{-n,--pagename}'[name of the generated Visualforce page]' \
  583. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  584. '(-l|--label)'{-l,--label}'[Visualforce page label]' \
  585. '(--json)--json[JSON output]' \
  586. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  587. )
  588. ;;
  589. force:user:password:generate)
  590. _command_args=(
  591. '(-o|--onbehalfof)'{-o,--onbehalfof}'[comma-separated list of usernames for which to generate passwords]' \
  592. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  593. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  594. '(--json)--json[format output as json]' \
  595. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  596. )
  597. ;;
  598. force:user:permset:assign)
  599. _command_args=(
  600. '(-n|--permsetname)'{-n,--permsetname}'[the name of the permission set to assign]' \
  601. '(-o|--onbehalfof)'{-o,--onbehalfof}'[comma-separated list of usernames or aliases to assign the permission set to]' \
  602. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  603. '(--json)--json[format output as json]' \
  604. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  605. )
  606. ;;
  607. force:source:pull)
  608. _command_args=(
  609. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  610. '(-f|--forceoverwrite)'{-f,--forceoverwrite}'[ignore conflict warnings and overwrite changes to the project]' \
  611. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  612. '(--json)--json[format output as json]' \
  613. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  614. )
  615. ;;
  616. force:source:push)
  617. _command_args=(
  618. '(-f|--forceoverwrite)'{-f,--forceoverwrite}'[ignore conflict warnings and overwrite changes to scratch org]' \
  619. '(-g|--ignorewarnings)'{-g,--ignorewarnings}'[deploy changes even if warnings are generated]' \
  620. '(-r|--replacetokens)'{-r,--replacetokens}'[replace tokens in source files prior to deployment]' \
  621. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  622. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  623. '(--json)--json[format output as json]' \
  624. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  625. )
  626. ;;
  627. force:data:record:create)
  628. _command_args=(
  629. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record you’re creating]' \
  630. '(-v|--values)'{-v,--values}'[the <fieldName>=<value> pairs you’re creating]' \
  631. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[create the record with tooling api]' \
  632. '(--perflog)--perflog[get API performance data.]' \
  633. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  634. '(--json)--json[format output as json]' \
  635. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  636. )
  637. ;;
  638. force:data:record:delete)
  639. _command_args=(
  640. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record you’re deleting]' \
  641. '(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record you’re deleting]' \
  642. '(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
  643. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[delete the record with Tooling API]' \
  644. '(--perflog)--perflog[get API performance data.]' \
  645. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  646. '(--json)--json[format output as json]' \
  647. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  648. )
  649. ;;
  650. force:data:record:get)
  651. _command_args=(
  652. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record you’re retrieving]' \
  653. '(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record you’re retrieving]' \
  654. '(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
  655. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[retrieve the record with Tooling API]' \
  656. '(--perflog)--perflog[get API performance data.]' \
  657. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  658. '(--json)--json[format output as json]' \
  659. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  660. )
  661. ;;
  662. force:data:record:update)
  663. _command_args=(
  664. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record you’re updating]' \
  665. '(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record you’re updating]' \
  666. '(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
  667. '(-v|--values)'{-v,--values}'[the <fieldName>=<value> pairs you’re updating]' \
  668. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[update the record with Tooling API]' \
  669. '(--perflog)--perflog[get API performance data.]' \
  670. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  671. '(--json)--json[format output as json]' \
  672. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  673. )
  674. ;;
  675. force:mdapi:retrieve)
  676. _command_args=(
  677. '(-a|--apiversion)'{-a,--apiversion}'[target API version for the retrieve (default 45.0)]' \
  678. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: -1 (no limit))]' \
  679. '(-r|--retrievetargetdir)'{-r,--retrievetargetdir}'[directory root for the retrieved files]:file:_files' \
  680. '(-k|--unpackaged)'{-k,--unpackaged}'[file path of manifest of components to retrieve]:file:_files' \
  681. '(-d|--sourcedir)'{-d,--sourcedir}'[source dir to use instead of default manifest sfdx-project.xml]:file:_files' \
  682. '(-p|--packagenames)'{-p,--packagenames}'[a comma-separated list of packages to retrieve]' \
  683. '(-s|--singlepackage)'{-s,--singlepackage}'[a single-package retrieve (default: false)]' \
  684. '(-i|--jobid)'{-i,--jobid}'[(deprecated) job ID of the retrieve you want to check; defaults to your most recent CLI retrieval if not specified]' \
  685. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  686. '(--json)--json[format output as json]' \
  687. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  688. '(--verbose)--verbose[verbose output of retrieve result]' \
  689. )
  690. ;;
  691. force:source:retrieve)
  692. _command_args=(
  693. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
  694. '(-x|--manifest)'{-x,--manifest}'[file path for manifest (package.xml) of components to retrieve]:file:_files' \
  695. '(-m|--metadata)'{-m,--metadata}'[comma-separated list of metadata component names]' \
  696. '(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of source file paths to retrieve]:file:_files' \
  697. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  698. '(--json)--json[format output as json]' \
  699. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  700. )
  701. ;;
  702. force:mdapi:retrieve:report)
  703. _command_args=(
  704. '(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: -1 (no limit))]' \
  705. '(-r|--retrievetargetdir)'{-r,--retrievetargetdir}'[directory root for the retrieved files]:file:_files' \
  706. '(-i|--jobid)'{-i,--jobid}'[job ID of the retrieve you want to check; defaults to your most recent CLI retrieval if not specified]' \
  707. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  708. '(--json)--json[format output as json]' \
  709. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  710. '(--verbose)--verbose[verbose output of retrieve result]' \
  711. )
  712. ;;
  713. force:alias:set)
  714. _command_args=(
  715. '(--json)--json[format output as json]' \
  716. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  717. )
  718. ;;
  719. force:config:set)
  720. _command_args=(
  721. '(-g|--global)'{-g,--global}'[set config var globally (to be used from any directory)]' \
  722. '(--json)--json[format output as json]' \
  723. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  724. )
  725. ;;
  726. force:auth:sfdxurl:store)
  727. _command_args=(
  728. '(-f|--sfdxurlfile)'{-f,--sfdxurlfile}'[path to a file containing the sfdx url]:file:_files' \
  729. '(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
  730. '(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
  731. '(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
  732. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
  733. '(--json)--json[format output as json]' \
  734. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  735. )
  736. ;;
  737. force:org:shape:create)
  738. _command_args=(
  739. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  740. '(--json)--json[format output as json]' \
  741. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  742. )
  743. ;;
  744. force:org:shape:delete)
  745. _command_args=(
  746. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
  747. '(-u|--targetusername)'{-u,--targetusername}'[username for the target org]' \
  748. '(--json)--json[format output as json]' \
  749. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  750. )
  751. ;;
  752. force:org:shape:list)
  753. _command_args=(
  754. '(--json)--json[format output as json]' \
  755. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  756. '(--verbose)--verbose[list more information about each org shape]' \
  757. )
  758. ;;
  759. force:org:snapshot:create)
  760. _command_args=(
  761. '(-o|--sourceorg)'{-o,--sourceorg}'[ID or locally authenticated username or alias of scratch org to snapshot]' \
  762. '(-n|--snapshotname)'{-n,--snapshotname}'[unique name of snapshot]' \
  763. '(-d|--description)'{-d,--description}'[description of snapshot]' \
  764. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  765. '(--json)--json[format output as json]' \
  766. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  767. )
  768. ;;
  769. force:org:snapshot:delete)
  770. _command_args=(
  771. '(-s|--snapshot)'{-s,--snapshot}'[name or ID of snapshot to delete]' \
  772. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  773. '(--json)--json[format output as json]' \
  774. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  775. )
  776. ;;
  777. force:org:snapshot:get)
  778. _command_args=(
  779. '(-s|--snapshot)'{-s,--snapshot}'[name or ID of snapshot to retrieve]' \
  780. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  781. '(--json)--json[format output as json]' \
  782. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  783. )
  784. ;;
  785. force:org:snapshot:list)
  786. _command_args=(
  787. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  788. '(--json)--json[format output as json]' \
  789. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  790. )
  791. ;;
  792. force:schema:sobject:describe)
  793. _command_args=(
  794. '(-s|--sobjecttype)'{-s,--sobjecttype}'[the API name of the object to describe]' \
  795. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[execute with Tooling API]' \
  796. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  797. '(--json)--json[format output as json]' \
  798. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  799. )
  800. ;;
  801. force:schema:sobject:list)
  802. _command_args=(
  803. '(-c|--sobjecttypecategory)'{-c,--sobjecttypecategory}'[the type of objects to list (all|custom|standard)]' \
  804. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  805. '(--json)--json[format output as json]' \
  806. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  807. )
  808. ;;
  809. force:data:soql:query)
  810. _command_args=(
  811. '(-q|--query)'{-q,--query}'[SOQL query to execute]' \
  812. '(-t|--usetoolingapi)'{-t,--usetoolingapi}'[execute query with Tooling API]' \
  813. '(-r|--resultformat)'{-r,--resultformat}'[query result format emitted to stdout; --json flag overrides this parameter (human*,csv,json)]' \
  814. '(--perflog)--perflog[get API performance data.]' \
  815. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  816. '(--json)--json[format output as json]' \
  817. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  818. )
  819. ;;
  820. force:source:status)
  821. _command_args=(
  822. '(-a|--all)'{-a,--all}'[list all the changes that have been made]' \
  823. '(-l|--local)'{-l,--local}'[list the changes that have been made locally]' \
  824. '(-r|--remote)'{-r,--remote}'[list the changes that have been made in the scratch org]' \
  825. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  826. '(--json)--json[format output as json]' \
  827. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  828. )
  829. ;;
  830. force:lightning:test:create)
  831. _command_args=(
  832. '(-n|--testname)'{-n,--testname}'[name of the generated Lightning test]' \
  833. '(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningTest*)]' \
  834. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  835. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  836. '(--json)--json[JSON output]' \
  837. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  838. )
  839. ;;
  840. force:lightning:test:install)
  841. _command_args=(
  842. '(-w|--wait)'{-w,--wait}'[number of minutes to wait for installation status (default:2)]' \
  843. '(-r|--releaseversion)'{-r,--releaseversion}'[release version of Lightning Testing Service (default:latest)]' \
  844. '(-t|--packagetype)'{-t,--packagetype}'[type of unmanaged package. 'full' option contains both jasmine and mocha, plus examples (full*,jasmine,mocha)]' \
  845. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  846. '(--json)--json[format output as json]' \
  847. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  848. )
  849. ;;
  850. force:apex:test:report)
  851. _command_args=(
  852. '(-i|--testrunid)'{-i,--testrunid}'[ID of test run]' \
  853. '(-c|--codecoverage)'{-c,--codecoverage}'[retrieve code coverage results]' \
  854. '(-d|--outputdir)'{-d,--outputdir}'[directory to store test run files]:file:_files' \
  855. '(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
  856. '(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
  857. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  858. '(--json)--json[format output as json]' \
  859. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  860. '(--verbose)--verbose[display Apex test processing details]' \
  861. )
  862. ;;
  863. force:apex:test:run)
  864. _command_args=(
  865. '(-n|--classnames)'{-n,--classnames}'[comma-separated list of Apex test class names to run]' \
  866. '(-s|--suitenames)'{-s,--suitenames}'[comma-separated list of Apex test suite names to run]' \
  867. '(-t|--tests)'{-t,--tests}'[comma-separated list of Apex test class names or IDs and, if applicable, test methods to run]' \
  868. '(-c|--codecoverage)'{-c,--codecoverage}'[retrieve code coverage results]' \
  869. '(-d|--outputdir)'{-d,--outputdir}'[directory to store test run files]:file:_files' \
  870. '(-l|--testlevel)'{-l,--testlevel}'[testlevel enum value (RunLocalTests,RunAllTestsInOrg,RunSpecifiedTests)]' \
  871. '(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
  872. '(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
  873. '(--precompilewait)--precompilewait[how long to wait (in minutes) for Apex pre-compilation (default:3, min:3)]' \
  874. '(-y|--synchronous)'{-y,--synchronous}'[run tests from a single class synchronously]' \
  875. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  876. '(--json)--json[format output as json]' \
  877. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  878. '(--verbose)--verbose[display Apex test processing details]' \
  879. )
  880. ;;
  881. force:lightning:test:run)
  882. _command_args=(
  883. '(-a|--appname)'{-a,--appname}'[name of your Lightning test application]' \
  884. '(-d|--outputdir)'{-d,--outputdir}'[directory path to store test run artifacts: for example, log files and test results]:file:_files' \
  885. '(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
  886. '(-f|--configfile)'{-f,--configfile}'[path to config file for the test]:file:_files' \
  887. '(-o|--leavebrowseropen)'{-o,--leavebrowseropen}'[leave browser open]' \
  888. '(-t|--timeout)'{-t,--timeout}'[time (ms) to wait for results element in dom (default:60000)]' \
  889. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  890. '(--json)--json[format output as json]' \
  891. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  892. )
  893. ;;
  894. force:data:tree:export)
  895. _command_args=(
  896. '(-q|--query)'{-q,--query}'[soql query, or filepath of file containing a soql query, to retrieve records]' \
  897. '(-p|--plan)'{-p,--plan}'[generate multiple sobject tree files and a plan definition file for aggregated import]' \
  898. '(-x|--prefix)'{-x,--prefix}'[prefix of generated files]' \
  899. '(-d|--outputdir)'{-d,--outputdir}'[directory to store files]:file:_files' \
  900. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  901. '(--json)--json[format output as json]' \
  902. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  903. )
  904. ;;
  905. force:data:tree:import)
  906. _command_args=(
  907. '(-f|--sobjecttreefiles)'{-f,--sobjecttreefiles}'[comma-delimited, ordered paths of json files containing collection of record trees to insert]:file:_files' \
  908. '(-p|--plan)'{-p,--plan}'[path to plan to insert multiple data files that have master-detail relationships]:file:_files' \
  909. '(-c|--contenttype)'{-c,--contenttype}'[if data file extension is not .json, provide content type (applies to all files)]' \
  910. '(--confighelp)--confighelp[display schema information for the --plan configuration file to stdout; if you use this option, all other options except --json are ignored]' \
  911. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  912. '(--json)--json[format output as json]' \
  913. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  914. )
  915. ;;
  916. force:apex:trigger:create)
  917. _command_args=(
  918. '(-n|--triggername)'{-n,--triggername}'[name of the generated Apex trigger]' \
  919. '(-t|--template)'{-t,--template}'[template to use for file creation (ApexTrigger*)]' \
  920. '(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
  921. '(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
  922. '(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
  923. '(-s|--sobject)'{-s,--sobject}'[sObject to create a trigger on (SOBJECT*)]' \
  924. '(-e|--triggerevents)'{-e,--triggerevents}'[events that fire the trigger (before insert*,before update,before delete,after insert,after update,after delete,after undelete)]' \
  925. '(--json)--json[JSON output]' \
  926. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  927. )
  928. ;;
  929. force:package:uninstall)
  930. _command_args=(
  931. '(-w|--wait)'{-w,--wait}'[number of minutes to wait for uninstall status]' \
  932. '(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to uninstall]' \
  933. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  934. '(--json)--json[format output as json]' \
  935. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  936. )
  937. ;;
  938. force:package:uninstall:report)
  939. _command_args=(
  940. '(-i|--requestid)'{-i,--requestid}'[ID of the package uninstall request you want to check]' \
  941. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  942. '(--json)--json[format output as json]' \
  943. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  944. )
  945. ;;
  946. force:package:update)
  947. _command_args=(
  948. '(-p|--package)'{-p,--package}'[ID (starts with 0Ho) or alias of the package to update]' \
  949. '(-n|--name)'{-n,--name}'[new package name]' \
  950. '(-d|--description)'{-d,--description}'[new package description]' \
  951. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  952. '(--json)--json[format output as json]' \
  953. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  954. )
  955. ;;
  956. force:project:upgrade)
  957. _command_args=(
  958. '(-f|--forceupgrade)'{-f,--forceupgrade}'[run all upgrades even if project has already been upgraded]' \
  959. '(--json)--json[format output as json]' \
  960. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  961. )
  962. ;;
  963. force:package:version:create)
  964. _command_args=(
  965. '(-p|--package)'{-p,--package}'[ID (starts with 0Ho) or alias of the package to create a version of]' \
  966. '(-d|--path)'{-d,--path}'[path to directory that contains the contents of the package]:file:_files' \
  967. '(-f|--definitionfile)'{-f,--definitionfile}'[path to a definition file similar to scratch org definition file that contains the list of features and org preferences that the metadata of the package version depends on]:file:_files' \
  968. '(-b|--branch)'{-b,--branch}'[the package version’s branch]' \
  969. '(-t|--tag)'{-t,--tag}'[the package version’s tag]' \
  970. '(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (either --installationkey or --installationkeybypass is required)]' \
  971. '(-x|--installationkeybypass)'{-x,--installationkeybypass}'[bypass the installation key requirement (either --installationkey or --installationkeybypass is required)]' \
  972. '(-r|--preserve)'{-r,--preserve}'[temp files are preserved that would otherwise be deleted]' \
  973. '(-j|--validateschema)'{-j,--validateschema}'[sfdx-project.json is validated against JSON schema]' \
  974. '(-w|--wait)'{-w,--wait}'[minutes to wait for the package version to be created (default:0)]' \
  975. '(-s|--buildinstance)'{-s,--buildinstance}'[the instance where the package version will be created——for example, NA50]' \
  976. '(-o|--sourceorg)'{-o,--sourceorg}'[the source org ID used to copy the org shape for the build org]' \
  977. '(-a|--versionname)'{-a,--versionname}'[the name of the package version to be created]' \
  978. '(-n|--versionnumber)'{-n,--versionnumber}'[the version number of the package version to be created]' \
  979. '(-e|--versiondescription)'{-e,--versiondescription}'[the description of the package version to be created]' \
  980. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  981. '(--json)--json[format output as json]' \
  982. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  983. )
  984. ;;
  985. force:package1:version:create)
  986. _command_args=(
  987. '(-i|--packageid)'{-i,--packageid}'[ID of the metadata package (starts with 033) of which you’re creating a new version]' \
  988. '(-n|--name)'{-n,--name}'[package version name]' \
  989. '(-d|--description)'{-d,--description}'[package version description]' \
  990. '(-v|--version)'{-v,--version}'[package version in major.minor format, for example, 3.2]' \
  991. '(-m|--managedreleased)'{-m,--managedreleased}'[create a managed package version]' \
  992. '(-r|--releasenotesurl)'{-r,--releasenotesurl}'[release notes URL]' \
  993. '(-p|--postinstallurl)'{-p,--postinstallurl}'[post install URL]' \
  994. '(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (default: null)]' \
  995. '(-w|--wait)'{-w,--wait}'[minutes to wait for the package version to be created (default: 2 minutes)]' \
  996. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  997. '(--json)--json[format output as json]' \
  998. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  999. )
  1000. ;;
  1001. force:package1:version:create:get)
  1002. _command_args=(
  1003. '(-i|--requestid)'{-i,--requestid}'[PackageUploadRequest ID]' \
  1004. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  1005. '(--json)--json[format output as json]' \
  1006. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1007. )
  1008. ;;
  1009. force:package:version:create:list)
  1010. _command_args=(
  1011. '(-c|--createdlastdays)'{-c,--createdlastdays}'[created in the last specified number of days (starting at 00:00:00 of first day to now; 0 for today)]' \
  1012. '(-s|--status)'{-s,--status}'[filter the list by version creation request status (Queued,InProgress,Success,Error)]' \
  1013. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1014. '(--json)--json[format output as json]' \
  1015. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1016. )
  1017. ;;
  1018. force:package:version:create:report)
  1019. _command_args=(
  1020. '(-i|--packagecreaterequestid)'{-i,--packagecreaterequestid}'[package version creation request ID (starts with 08c)]' \
  1021. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1022. '(--json)--json[format output as json]' \
  1023. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1024. )
  1025. ;;
  1026. force:package1:version:display)
  1027. _command_args=(
  1028. '(-i|--packageversionid)'{-i,--packageversionid}'[metadata package version ID (starts with 04t)]' \
  1029. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  1030. '(--json)--json[format output as json]' \
  1031. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1032. )
  1033. ;;
  1034. force:package:version:list)
  1035. _command_args=(
  1036. '(-c|--createdlastdays)'{-c,--createdlastdays}'[created in the last specified number of days (starting at 00:00:00 of first day to now; 0 for today)]' \
  1037. '(-m|--modifiedlastdays)'{-m,--modifiedlastdays}'[list items modified in the specified last number of days (starting at 00:00:00 of first day to now; 0 for today)]' \
  1038. '(-p|--packages)'{-p,--packages}'[filter results on specified comma-delimited packages (aliases or 0Ho IDs)]' \
  1039. '(-r|--released)'{-r,--released}'[display released versions only]' \
  1040. '(-o|--orderby)'{-o,--orderby}'[order by the specified package version fields]' \
  1041. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1042. '(--concise)--concise[display limited package version details]' \
  1043. '(--json)--json[format output as json]' \
  1044. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1045. '(--verbose)--verbose[display extended package version details]' \
  1046. )
  1047. ;;
  1048. force:package1:version:list)
  1049. _command_args=(
  1050. '(-i|--packageid)'{-i,--packageid}'[metadata package ID (starts with 033)]' \
  1051. '(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
  1052. '(--json)--json[format output as json]' \
  1053. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1054. )
  1055. ;;
  1056. force:package:version:promote)
  1057. _command_args=(
  1058. '(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to promote]' \
  1059. '(-n|--noprompt)'{-n,--noprompt}'[no prompt to confirm setting the package version as released]' \
  1060. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1061. '(--json)--json[format output as json]' \
  1062. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1063. )
  1064. ;;
  1065. force:package:version:report)
  1066. _command_args=(
  1067. '(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package to retrieve details for]' \
  1068. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1069. '(--json)--json[format output as json]' \
  1070. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1071. '(--verbose)--verbose[displays extended package version details]' \
  1072. )
  1073. ;;
  1074. force:package:version:update)
  1075. _command_args=(
  1076. '(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package to update a version of]' \
  1077. '(-a|--versionname)'{-a,--versionname}'[new package version name]' \
  1078. '(-e|--versiondescription)'{-e,--versiondescription}'[new package version description]' \
  1079. '(-b|--branch)'{-b,--branch}'[new package version branch]' \
  1080. '(-t|--tag)'{-t,--tag}'[new package version tag]' \
  1081. '(-k|--installationkey)'{-k,--installationkey}'[new installation key for key-protected package (default: null)]' \
  1082. '(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
  1083. '(--json)--json[format output as json]' \
  1084. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1085. )
  1086. ;;
  1087. force:auth:web:login)
  1088. _command_args=(
  1089. '(-i|--clientid)'{-i,--clientid}'[OAuth client ID (sometimes called the consumer key)]' \
  1090. '(-r|--instanceurl)'{-r,--instanceurl}'[the login URL of the instance the org lives on]' \
  1091. '(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
  1092. '(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
  1093. '(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
  1094. '(--disablemasking)--disablemasking[disable masking of user input (for use with problematic terminals)]' \
  1095. '(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
  1096. '(--json)--json[format output as json]' \
  1097. '(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
  1098. )
  1099. ;;
  1100. esac
  1101. _arguments \
  1102. $_command_args \
  1103. && return 0