1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 03:40:08 +00:00
ohmyzsh/plugins/sfdx/_sfdx
2019-04-16 22:08:32 +02:00

1110 lines
65 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#compdef sfdx
# DESCRIPTION: Zsh completion script for the Salesforce CLI
# AUTHOR: Wade Wegner (@WadeWegner)
# REPO: https://github.com/wadewegner/salesforce-cli-zsh-completion
# LICENSE: https://github.com/wadewegner/salesforce-cli-zsh-completion/blob/master/LICENSE
local -a _1st_arguments
_1st_arguments=(
"force\:alias\:list":"list username aliases for the Salesforce CLI"
"force\:alias\:set":"set username aliases for the Salesforce CLI"
"force\:apex\:class\:create":"create an Apex class"
"force\:apex\:execute":"execute anonymous Apex code"
"force\:apex\:log\:get":"fetch a debug log"
"force\:apex\:log\:list":"list debug logs"
"force\:apex\:log\:tail":"start debug logging and display logs"
"force\:apex\:test\:report":"display test results"
"force\:apex\:test\:run":"invoke Apex tests"
"force\:apex\:trigger\:create":"create an Apex trigger"
"force\:auth\:jwt\:grant":"authorize an org using the JWT flow"
"force\:auth\:logout":"log out from authorized orgs"
"force\:auth\:sfdxurl\:store":"authorize an org using an SFDX auth URL"
"force\:auth\:web\:login":"authorize an org using the web login flow"
"force\:config\:get":"get config var values for given names"
"force\:config\:list":"list config vars for the Salesforce CLI"
"force\:config\:set":"set config vars for the Salesforce CLI"
"force\:data\:bulk\:delete":"bulk delete records from a csv file"
"force\:data\:bulk\:status":"view the status of a bulk data load job or batch"
"force\:data\:bulk\:upsert":"bulk upsert records from a CSV file"
"force\:data\:record\:create":"create a record"
"force\:data\:record\:delete":"delete a record"
"force\:data\:record\:get":"view a record"
"force\:data\:record\:update":"update a record"
"force\:data\:soql\:query":"execute a SOQL query"
"force\:data\:tree\:export":"export data from an org into sObject tree format for force:data:tree:import consumption"
"force\:data\:tree\:import":"import data into an org using SObject Tree Save API"
"force\:doc\:commands\:display":"display help for force commands"
"force\:doc\:commands\:list":"list the force commands"
"force\:lightning\:app\:create":"create a Lightning app"
"force\:lightning\:component\:create":"create a bundle for an Aura component or a Lightning web component"
"force\:lightning\:event\:create":"create a Lightning event"
"force\:lightning\:interface\:create":"create a Lightning interface"
"force\:lightning\:lint":"analyse (lint) Lightning component code"
"force\:lightning\:test\:create":"create a Lightning test"
"force\:lightning\:test\:install":"install Lightning Testing Service unmanaged package in your org"
"force\:lightning\:test\:run":"invoke Aura component tests"
"force\:limits\:api\:display":"display current orgs limits"
"force\:mdapi\:convert":"convert metadata from the Metadata API format into the source format"
"force\:mdapi\:deploy":"deploy metadata to an org using Metadata API"
"force\:mdapi\:deploy\:cancel":"cancel a metadata deployment"
"force\:mdapi\:deploy\:report":"check the status of a metadata deployment"
"force\:mdapi\:retrieve":"retrieve metadata from an org using Metadata API"
"force\:mdapi\:retrieve\:report":"check the status of a metadata retrieval"
"force\:org\:create":"create a scratch org"
"force\:org\:delete":"mark a scratch org for deletion"
"force\:org\:display":"get org description"
"force\:org\:list":"list all orgs youve created or authenticated to"
"force\:org\:open":"open an org in your browser"
"force\:org\:shape\:create":"create a snapshot of org edition, features, and licenses"
"force\:org\:shape\:delete":"delete all org shapes for a target org"
"force\:org\:shape\:list":"list all org shapes youve created"
"force\:org\:snapshot\:create":"snapshot a scratch org"
"force\:org\:snapshot\:delete":"delete a scratch org snapshot"
"force\:org\:snapshot\:get":"get details about a scratch org snapshot"
"force\:org\:snapshot\:list":"list scratch org snapshots"
"force\:package1\:version\:create":"create a first-generation package version in the release org"
"force\:package1\:version\:create\:get":"retrieve the status of a package version creation request"
"force\:package1\:version\:display":"display details about a first-generation package version"
"force\:package1\:version\:list":"list package versions for the specified first-generation package or for the org"
"force\:package\:create":"create a package"
"force\:package\:hammertest\:list":"list the statuses of running and completed hammer tests"
"force\:package\:hammertest\:report":"display the status or results of a hammer test"
"force\:package\:hammertest\:run":"run ISV Hammer"
"force\:package\:install":"install a package in the target org"
"force\:package\:install\:report":"retrieve the status of a package installation request"
"force\:package\:installed\:list":"list the orgs installed packages"
"force\:package\:list":"list all packages in the Dev Hub org"
"force\:package\:uninstall":"uninstall a second-generation package from the target org"
"force\:package\:uninstall\:report":"retrieve status of package uninstall request"
"force\:package\:update":"update package details"
"force\:package\:version\:create":"create a package version"
"force\:package\:version\:create\:list":"list package version creation requests"
"force\:package\:version\:create\:report":"retrieve details about a package version creation request"
"force\:package\:version\:list":"list all package versions in the Dev Hub org"
"force\:package\:version\:promote":"promote a package version to released"
"force\:package\:version\:report":"retrieve details about a package version in the Dev Hub org"
"force\:package\:version\:update":"update a package version"
"force\:project\:create":"create a new SFDX project"
"force\:project\:upgrade":"update project config files to the latest format"
"force\:schema\:sobject\:describe":"describe an object"
"force\:schema\:sobject\:list":"list all objects of a specified category"
"force\:source\:convert":"convert source into Metadata API format"
"force\:source\:delete":"delete source from your project and from a non-source-tracked org"
"force\:source\:deploy":"deploy source to a non-source-tracked org"
"force\:source\:open":"edit a Lightning Page with Lightning App Builder"
"force\:source\:pull":"pull source from the scratch org to the project"
"force\:source\:push":"push source to a scratch org from the project"
"force\:source\:retrieve":"retrieve source from a non-source-tracked org"
"force\:source\:status":"list local changes and/or changes in a scratch org"
"force\:user\:create":"create a user for a scratch org"
"force\:user\:display":"displays information about a user of a scratch org"
"force\:user\:list":"lists all users of a scratch org"
"force\:user\:password\:generate":"generate a password for scratch org users"
"force\:user\:permset\:assign":"assign a permission set to one or more users of an org"
"force\:visualforce\:component\:create":"create a Visualforce component"
"force\:visualforce\:page\:create":"create a Visualforce page"
)
_arguments '*:: :->command'
if (( CURRENT == 1 )); then
_describe -t commands "sfdx command" _1st_arguments
return
fi
local -a _command_args
case "$words[1]" in
force:limits:api:display)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:app:create)
_command_args=(
'(-n|--appname)'{-n,--appname}'[name of the generated Lightning app]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningApp*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:bulk:delete)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the sObject type of the records youre deleting]' \
'(-f|--csvfile)'{-f,--csvfile}'[the path to the CSV file containing the ids of the records to delete]:file:_files' \
'(-w|--wait)'{-w,--wait}'[the number of minutes to wait for the command to complete before displaying the results]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:bulk:status)
_command_args=(
'(-i|--jobid)'{-i,--jobid}'[the ID of the job you want to view or of the job whose batch you want to view]' \
'(-b|--batchid)'{-b,--batchid}'[the ID of the batch whose status you want to view]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:bulk:upsert)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the sObject type of the records you want to upsert]' \
'(-f|--csvfile)'{-f,--csvfile}'[the path to the CSV file that defines the records to upsert]:file:_files' \
'(-i|--externalid)'{-i,--externalid}'[the column name of the external ID]' \
'(-w|--wait)'{-w,--wait}'[the number of minutes to wait for the command to complete before displaying the results]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:class:create)
_command_args=(
'(-n|--classname)'{-n,--classname}'[name of the generated Apex class]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultApexClass*,ApexException,ApexUnitTest,InboundEmailService)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:doc:commands:display)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:doc:commands:list)
_command_args=(
'(-u|--usage)'{-u,--usage}'[list only docopt usage strings]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:visualforce:component:create)
_command_args=(
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultVFComponent*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-n|--componentname)'{-n,--componentname}'[name of the generated Visualforce component]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(-l|--label)'{-l,--label}'[Visualforce component label]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:component:create)
_command_args=(
'(-n|--componentname)'{-n,--componentname}'[name of the generated Lightning component]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningCmp*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(--type)--type[type of the Lightning component (aura*,lwc)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:convert)
_command_args=(
'(-r|--rootdir)'{-r,--rootdir}'[the root directory containing the Metadata APIformatted metadata]:file:_files' \
'(-d|--outputdir)'{-d,--outputdir}'[the output directory to store the sourceformatted files]:file:_files' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:convert)
_command_args=(
'(-r|--rootdir)'{-r,--rootdir}'[a source directory other than the default package to convert]:file:_files' \
'(-d|--outputdir)'{-d,--outputdir}'[output directory to store the Metadata APIformatted files in]:file:_files' \
'(-n|--packagename)'{-n,--packagename}'[name of the package to associate with the metadata-formatted files]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:create)
_command_args=(
'(-f|--definitionfile)'{-f,--definitionfile}'[path to a scratch org definition file]:file:_files' \
'(-j|--definitionjson)'{-j,--definitionjson}'[scratch org definition in json format ]' \
'(-n|--nonamespace)'{-n,--nonamespace}'[creates the scratch org with no namespace]' \
'(-c|--noancestors)'{-c,--noancestors}'[do not include second-generation package ancestors in the scratch org]' \
'(-i|--clientid)'{-i,--clientid}'[connected app consumer key]' \
'(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the created org as the default username]' \
'(-a|--setalias)'{-a,--setalias}'[set an alias for for the created scratch org]' \
'(-e|--env)'{-e,--env}'[environment where the scratch org is created: \[sandbox*,virtual,prototype\] (sandbox*,virtual,prototype)]' \
'(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
'(-d|--durationdays)'{-d,--durationdays}'[duration of the scratch org (in days) (default:7, min:1, max:30)]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:create)
_command_args=(
'(-n|--name)'{-n,--name}'[package name]' \
'(-t|--packagetype)'{-t,--packagetype}'[package type (Managed,Unlocked)]' \
'(-d|--description)'{-d,--description}'[package description]' \
'(-e|--nonamespace)'{-e,--nonamespace}'[creates the package with no namespace; available only for unlocked packages.]' \
'(-r|--path)'{-r,--path}'[path to directory that contains the contents of the package]:file:_files' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:user:create)
_command_args=(
'(-f|--definitionfile)'{-f,--definitionfile}'[file path to a user definition]:file:_files' \
'(-a|--setalias)'{-a,--setalias}'[set an alias for the created username to reference within the CLI]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:project:create)
_command_args=(
'(-n|--projectname)'{-n,--projectname}'[name of the generated project]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (Defaultsfdx-project.json*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-l|--loginurl)'{-l,--loginurl}'[Salesforce instance login URL (https://login.salesforce.com*)]' \
'(--sourceapiversion)--sourceapiversion[source API version number (45.0*)]' \
'(-s|--namespace)'{-s,--namespace}'[project associated namespace]' \
'(-p|--defaultpackagedir)'{-p,--defaultpackagedir}'[default package directory name (force-app*)]' \
'(-x|--manifest)'{-x,--manifest}'[generate a manifest (package.xml) for change-set-based development]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:delete)
_command_args=(
'(-p|--noprompt)'{-p,--noprompt}'[no prompt to confirm deletion]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:delete)
_command_args=(
'(-r|--noprompt)'{-r,--noprompt}'[do not prompt for delete confirmation]' \
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of paths to the local metadata to delete]:file:_files' \
'(-m|--metadata)'{-m,--metadata}'[comma-separated list of names of metadata components to delete]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:deploy)
_command_args=(
'(-c|--checkonly)'{-c,--checkonly}'[validate deploy but dont save to the org (default:false)]' \
'(-d|--deploydir)'{-d,--deploydir}'[root of directory tree of files to deploy]:file:_files' \
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 0)]' \
'(-i|--jobid)'{-i,--jobid}'[(deprecated) job ID of the deployment you want to check; defaults to your most recent CLI deployment if not specified]' \
'(-l|--testlevel)'{-l,--testlevel}'[deployment testing level (NoTestRun,RunSpecifiedTests,RunLocalTests,RunAllTestsInOrg)]' \
'(-r|--runtests)'{-r,--runtests}'[tests to run if --testlevel RunSpecifiedTests]' \
'(-e|--rollbackonerror)'{-e,--rollbackonerror}'[(deprecated) roll back deployment for any failure (default:true)]' \
'(-o|--ignoreerrors)'{-o,--ignoreerrors}'[ignore any errors and do not roll back deployment (default:false)]' \
'(-g|--ignorewarnings)'{-g,--ignorewarnings}'[whether a warning will allow a deployment to complete successfully (default:false)]' \
'(-q|--validateddeployrequestid)'{-q,--validateddeployrequestid}'[request ID of the validated deployment to run a Quick Deploy]' \
'(-f|--zipfile)'{-f,--zipfile}'[path to .zip file of metadata to deploy]:file:_files' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[verbose output of deploy results]' \
)
;;
force:source:deploy)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-m|--metadata)'{-m,--metadata}'[comma-separated list of metadata component names]' \
'(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of paths to the local source files to deploy]:file:_files' \
'(-x|--manifest)'{-x,--manifest}'[file path for manifest (package.xml) of components to deploy]:file:_files' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:deploy:cancel)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-i|--jobid)'{-i,--jobid}'[job ID of the deployment you want to cancel; defaults to your most recent CLI deployment if not specified]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:deploy:report)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 0)]' \
'(-i|--jobid)'{-i,--jobid}'[job ID of the deployment you want to check; defaults to your most recent CLI deployment if not specified]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[verbose output of deploy results]' \
)
;;
force:org:display)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[emit additional command output to stdout]' \
)
;;
force:user:display)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:event:create)
_command_args=(
'(-n|--eventname)'{-n,--eventname}'[name of the generated Lightning event]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningEvt*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:execute)
_command_args=(
'(-f|--apexcodefile)'{-f,--apexcodefile}'[path to a local file containing Apex code]:file:_files' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:config:get)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[emit additional command output to stdout]' \
)
;;
force:package:hammertest:list)
_command_args=(
'(-i|--packageversionid)'{-i,--packageversionid}'[ID of the package version to list results for]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:hammertest:report)
_command_args=(
'(-i|--requestid)'{-i,--requestid}'[ID of the hammer request to report on]' \
'(-s|--summary)'{-s,--summary}'[report only a results summary (hide Apex test failures)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:hammertest:run)
_command_args=(
'(-i|--packageversionid)'{-i,--packageversionid}'[ID of the package version to test]' \
'(-s|--subscriberorg)'{-s,--subscriberorg}'[comma-separated list of subscriber orgs IDs]' \
'(-f|--subscriberfile)'{-f,--subscriberfile}'[file with list of subscriber orgs IDs, one per line]' \
'(-d|--scheduledrundatetime)'{-d,--scheduledrundatetime}'[earliest date/time to run the test]' \
'(-p|--preview)'{-p,--preview}'[run the package hammer test in the Salesforce preview version]' \
'(-t|--apextests)'{-t,--apextests}'[run the apex tests in the subscriber org]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:install)
_command_args=(
'(-w|--wait)'{-w,--wait}'[number of minutes to wait for installation status]' \
'(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (default: null)]' \
'(-b|--publishwait)'{-b,--publishwait}'[number of minutes to wait for subscriber package version ID to become available in the target org ]' \
'(-r|--noprompt)'{-r,--noprompt}'[allow Remote Site Settings and Content Security Policy websites to send or receive data without confirmation]' \
'(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to install]' \
'(-s|--securitytype)'{-s,--securitytype}'[security access type for the installed package (AllUsers,AdminsOnly)]' \
'(-t|--upgradetype)'{-t,--upgradetype}'[the upgrade type for the package installation (Mixed*,DeprecateOnly)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:install:report)
_command_args=(
'(-i|--requestid)'{-i,--requestid}'[ID of the package install request you want to check]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:installed:list)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:interface:create)
_command_args=(
'(-n|--interfacename)'{-n,--interfacename}'[name of the generated Lightning interface]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningIntf*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:auth:jwt:grant)
_command_args=(
'(-u|--username)'{-u,--username}'[authentication username]' \
'(-f|--jwtkeyfile)'{-f,--jwtkeyfile}'[path to a file containing the private key]:file:_files' \
'(-i|--clientid)'{-i,--clientid}'[OAuth client ID (sometimes called the consumer key)]' \
'(-r|--instanceurl)'{-r,--instanceurl}'[the login URL of the instance the org lives on]' \
'(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
'(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
'(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:lint)
_command_args=(
'(--ignore)--ignore[pattern used to ignore some folders]' \
'(--files)--files[pattern used to include specific files]' \
'(--json)--json[format output as JSON]' \
'(--config)--config[path to a custom ESLint configuration file]' \
'(--verbose)--verbose[report warnings in addition to errors]' \
'(--exit)--exit[exit with error code 1 if there are lint issues]' \
)
;;
force:alias:list)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:config:list)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:list)
_command_args=(
'(--all)--all[include expired, deleted, and unknown-status scratch orgs]' \
'(--clean)--clean[remove all local org authorizations for non-active orgs]' \
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[list more information about each org]' \
)
;;
force:package:list)
_command_args=(
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[display extended package detail]' \
)
;;
force:user:list)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:log:get)
_command_args=(
'(-c|--color)'{-c,--color}'[colorize noteworthy log lines]' \
'(-i|--logid)'{-i,--logid}'[ID of the log to display]' \
'(-n|--number)'{-n,--number}'[number of most recent logs to display (min:1, max:25)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:log:list)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:log:tail)
_command_args=(
'(-c|--color)'{-c,--color}'[colorize noteworthy log lines]' \
'(-d|--debuglevel)'{-d,--debuglevel}'[debug level for trace flag]' \
'(-s|--skiptraceflag)'{-s,--skiptraceflag}'[skip trace flag setup]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:auth:logout)
_command_args=(
'(-a|--all)'{-a,--all}'[include all authenticated orgs]' \
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:open)
_command_args=(
'(-p|--path)'{-p,--path}'[navigation URL path]' \
'(-r|--urlonly)'{-r,--urlonly}'[display navigation URL, but dont launch browser]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:open)
_command_args=(
'(-f|--sourcefile)'{-f,--sourcefile}'[file to edit]:file:_files' \
'(-r|--urlonly)'{-r,--urlonly}'[generate a navigation URL; dont launch the editor]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:visualforce:page:create)
_command_args=(
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultVFPage*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-n|--pagename)'{-n,--pagename}'[name of the generated Visualforce page]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(-l|--label)'{-l,--label}'[Visualforce page label]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:user:password:generate)
_command_args=(
'(-o|--onbehalfof)'{-o,--onbehalfof}'[comma-separated list of usernames for which to generate passwords]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:user:permset:assign)
_command_args=(
'(-n|--permsetname)'{-n,--permsetname}'[the name of the permission set to assign]' \
'(-o|--onbehalfof)'{-o,--onbehalfof}'[comma-separated list of usernames or aliases to assign the permission set to]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:pull)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-f|--forceoverwrite)'{-f,--forceoverwrite}'[ignore conflict warnings and overwrite changes to the project]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:push)
_command_args=(
'(-f|--forceoverwrite)'{-f,--forceoverwrite}'[ignore conflict warnings and overwrite changes to scratch org]' \
'(-g|--ignorewarnings)'{-g,--ignorewarnings}'[deploy changes even if warnings are generated]' \
'(-r|--replacetokens)'{-r,--replacetokens}'[replace tokens in source files prior to deployment]' \
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:record:create)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record youre creating]' \
'(-v|--values)'{-v,--values}'[the <fieldName>=<value> pairs youre creating]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[create the record with tooling api]' \
'(--perflog)--perflog[get API performance data.]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:record:delete)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record youre deleting]' \
'(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record youre deleting]' \
'(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[delete the record with Tooling API]' \
'(--perflog)--perflog[get API performance data.]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:record:get)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record youre retrieving]' \
'(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record youre retrieving]' \
'(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[retrieve the record with Tooling API]' \
'(--perflog)--perflog[get API performance data.]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:record:update)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the type of the record youre updating]' \
'(-i|--sobjectid)'{-i,--sobjectid}'[the ID of the record youre updating]' \
'(-w|--where)'{-w,--where}'[a list of <fieldName>=<value> pairs to search for]' \
'(-v|--values)'{-v,--values}'[the <fieldName>=<value> pairs youre updating]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[update the record with Tooling API]' \
'(--perflog)--perflog[get API performance data.]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:retrieve)
_command_args=(
'(-a|--apiversion)'{-a,--apiversion}'[target API version for the retrieve (default 45.0)]' \
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: -1 (no limit))]' \
'(-r|--retrievetargetdir)'{-r,--retrievetargetdir}'[directory root for the retrieved files]:file:_files' \
'(-k|--unpackaged)'{-k,--unpackaged}'[file path of manifest of components to retrieve]:file:_files' \
'(-d|--sourcedir)'{-d,--sourcedir}'[source dir to use instead of default manifest sfdx-project.xml]:file:_files' \
'(-p|--packagenames)'{-p,--packagenames}'[a comma-separated list of packages to retrieve]' \
'(-s|--singlepackage)'{-s,--singlepackage}'[a single-package retrieve (default: false)]' \
'(-i|--jobid)'{-i,--jobid}'[(deprecated) job ID of the retrieve you want to check; defaults to your most recent CLI retrieval if not specified]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[verbose output of retrieve result]' \
)
;;
force:source:retrieve)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: 33) (default:33, min:1)]' \
'(-x|--manifest)'{-x,--manifest}'[file path for manifest (package.xml) of components to retrieve]:file:_files' \
'(-m|--metadata)'{-m,--metadata}'[comma-separated list of metadata component names]' \
'(-p|--sourcepath)'{-p,--sourcepath}'[comma-separated list of source file paths to retrieve]:file:_files' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:mdapi:retrieve:report)
_command_args=(
'(-w|--wait)'{-w,--wait}'[wait time for command to finish in minutes (default: -1 (no limit))]' \
'(-r|--retrievetargetdir)'{-r,--retrievetargetdir}'[directory root for the retrieved files]:file:_files' \
'(-i|--jobid)'{-i,--jobid}'[job ID of the retrieve you want to check; defaults to your most recent CLI retrieval if not specified]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[verbose output of retrieve result]' \
)
;;
force:alias:set)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:config:set)
_command_args=(
'(-g|--global)'{-g,--global}'[set config var globally (to be used from any directory)]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:auth:sfdxurl:store)
_command_args=(
'(-f|--sfdxurlfile)'{-f,--sfdxurlfile}'[path to a file containing the sfdx url]:file:_files' \
'(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
'(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
'(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:shape:create)
_command_args=(
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:shape:delete)
_command_args=(
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for confirmation]' \
'(-u|--targetusername)'{-u,--targetusername}'[username for the target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:shape:list)
_command_args=(
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[list more information about each org shape]' \
)
;;
force:org:snapshot:create)
_command_args=(
'(-o|--sourceorg)'{-o,--sourceorg}'[ID or locally authenticated username or alias of scratch org to snapshot]' \
'(-n|--snapshotname)'{-n,--snapshotname}'[unique name of snapshot]' \
'(-d|--description)'{-d,--description}'[description of snapshot]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:snapshot:delete)
_command_args=(
'(-s|--snapshot)'{-s,--snapshot}'[name or ID of snapshot to delete]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:snapshot:get)
_command_args=(
'(-s|--snapshot)'{-s,--snapshot}'[name or ID of snapshot to retrieve]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:org:snapshot:list)
_command_args=(
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:schema:sobject:describe)
_command_args=(
'(-s|--sobjecttype)'{-s,--sobjecttype}'[the API name of the object to describe]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[execute with Tooling API]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:schema:sobject:list)
_command_args=(
'(-c|--sobjecttypecategory)'{-c,--sobjecttypecategory}'[the type of objects to list (all|custom|standard)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:soql:query)
_command_args=(
'(-q|--query)'{-q,--query}'[SOQL query to execute]' \
'(-t|--usetoolingapi)'{-t,--usetoolingapi}'[execute query with Tooling API]' \
'(-r|--resultformat)'{-r,--resultformat}'[query result format emitted to stdout; --json flag overrides this parameter (human*,csv,json)]' \
'(--perflog)--perflog[get API performance data.]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:source:status)
_command_args=(
'(-a|--all)'{-a,--all}'[list all the changes that have been made]' \
'(-l|--local)'{-l,--local}'[list the changes that have been made locally]' \
'(-r|--remote)'{-r,--remote}'[list the changes that have been made in the scratch org]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:test:create)
_command_args=(
'(-n|--testname)'{-n,--testname}'[name of the generated Lightning test]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (DefaultLightningTest*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:lightning:test:install)
_command_args=(
'(-w|--wait)'{-w,--wait}'[number of minutes to wait for installation status (default:2)]' \
'(-r|--releaseversion)'{-r,--releaseversion}'[release version of Lightning Testing Service (default:latest)]' \
'(-t|--packagetype)'{-t,--packagetype}'[type of unmanaged package. 'full' option contains both jasmine and mocha, plus examples (full*,jasmine,mocha)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:test:report)
_command_args=(
'(-i|--testrunid)'{-i,--testrunid}'[ID of test run]' \
'(-c|--codecoverage)'{-c,--codecoverage}'[retrieve code coverage results]' \
'(-d|--outputdir)'{-d,--outputdir}'[directory to store test run files]:file:_files' \
'(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
'(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[display Apex test processing details]' \
)
;;
force:apex:test:run)
_command_args=(
'(-n|--classnames)'{-n,--classnames}'[comma-separated list of Apex test class names to run]' \
'(-s|--suitenames)'{-s,--suitenames}'[comma-separated list of Apex test suite names to run]' \
'(-t|--tests)'{-t,--tests}'[comma-separated list of Apex test class names or IDs and, if applicable, test methods to run]' \
'(-c|--codecoverage)'{-c,--codecoverage}'[retrieve code coverage results]' \
'(-d|--outputdir)'{-d,--outputdir}'[directory to store test run files]:file:_files' \
'(-l|--testlevel)'{-l,--testlevel}'[testlevel enum value (RunLocalTests,RunAllTestsInOrg,RunSpecifiedTests)]' \
'(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
'(-w|--wait)'{-w,--wait}'[the streaming client socket timeout (in minutes) (default:6, min:2)]' \
'(--precompilewait)--precompilewait[how long to wait (in minutes) for Apex pre-compilation (default:3, min:3)]' \
'(-y|--synchronous)'{-y,--synchronous}'[run tests from a single class synchronously]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[display Apex test processing details]' \
)
;;
force:lightning:test:run)
_command_args=(
'(-a|--appname)'{-a,--appname}'[name of your Lightning test application]' \
'(-d|--outputdir)'{-d,--outputdir}'[directory path to store test run artifacts: for example, log files and test results]:file:_files' \
'(-r|--resultformat)'{-r,--resultformat}'[test result format emitted to stdout; --json flag overrides this parameter (human*,tap,junit,json)]' \
'(-f|--configfile)'{-f,--configfile}'[path to config file for the test]:file:_files' \
'(-o|--leavebrowseropen)'{-o,--leavebrowseropen}'[leave browser open]' \
'(-t|--timeout)'{-t,--timeout}'[time (ms) to wait for results element in dom (default:60000)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:tree:export)
_command_args=(
'(-q|--query)'{-q,--query}'[soql query, or filepath of file containing a soql query, to retrieve records]' \
'(-p|--plan)'{-p,--plan}'[generate mulitple sobject tree files and a plan definition file for aggregated import]' \
'(-x|--prefix)'{-x,--prefix}'[prefix of generated files]' \
'(-d|--outputdir)'{-d,--outputdir}'[directory to store files]:file:_files' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:data:tree:import)
_command_args=(
'(-f|--sobjecttreefiles)'{-f,--sobjecttreefiles}'[comma-delimited, ordered paths of json files containing collection of record trees to insert]:file:_files' \
'(-p|--plan)'{-p,--plan}'[path to plan to insert multiple data files that have master-detail relationships]:file:_files' \
'(-c|--contenttype)'{-c,--contenttype}'[if data file extension is not .json, provide content type (applies to all files)]' \
'(--confighelp)--confighelp[display schema information for the --plan configuration file to stdout; if you use this option, all other options except --json are ignored]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:apex:trigger:create)
_command_args=(
'(-n|--triggername)'{-n,--triggername}'[name of the generated Apex trigger]' \
'(-t|--template)'{-t,--template}'[template to use for file creation (ApexTrigger*)]' \
'(-d|--outputdir)'{-d,--outputdir}'[folder for saving the created files]' \
'(-r|--reflect)'{-r,--reflect}'[switch to return flag detailed information]' \
'(-a|--apiversion)'{-a,--apiversion}'[API version number (45.0*,44.0)]' \
'(-s|--sobject)'{-s,--sobject}'[sObject to create a trigger on (SOBJECT*)]' \
'(-e|--triggerevents)'{-e,--triggerevents}'[events that fire the trigger (before insert*,before update,before delete,after insert,after update,after delete,after undelete)]' \
'(--json)--json[JSON output]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:uninstall)
_command_args=(
'(-w|--wait)'{-w,--wait}'[number of minutes to wait for uninstall status]' \
'(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to uninstall]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:uninstall:report)
_command_args=(
'(-i|--requestid)'{-i,--requestid}'[ID of the package uninstall request you want to check]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:update)
_command_args=(
'(-p|--package)'{-p,--package}'[ID (starts with 0Ho) or alias of the package to update]' \
'(-n|--name)'{-n,--name}'[new package name]' \
'(-d|--description)'{-d,--description}'[new package description]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:project:upgrade)
_command_args=(
'(-f|--forceupgrade)'{-f,--forceupgrade}'[run all upgrades even if project has already been upgraded]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:create)
_command_args=(
'(-p|--package)'{-p,--package}'[ID (starts with 0Ho) or alias of the package to create a version of]' \
'(-d|--path)'{-d,--path}'[path to directory that contains the contents of the package]:file:_files' \
'(-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' \
'(-b|--branch)'{-b,--branch}'[the package versions branch]' \
'(-t|--tag)'{-t,--tag}'[the package versions tag]' \
'(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (either --installationkey or --installationkeybypass is required)]' \
'(-x|--installationkeybypass)'{-x,--installationkeybypass}'[bypass the installation key requirement (either --installationkey or --installationkeybypass is required)]' \
'(-r|--preserve)'{-r,--preserve}'[temp files are preserved that would otherwise be deleted]' \
'(-j|--validateschema)'{-j,--validateschema}'[sfdx-project.json is validated against JSON schema]' \
'(-w|--wait)'{-w,--wait}'[minutes to wait for the package version to be created (default:0)]' \
'(-s|--buildinstance)'{-s,--buildinstance}'[the instance where the package version will be created——for example, NA50]' \
'(-o|--sourceorg)'{-o,--sourceorg}'[the source org ID used to copy the org shape for the build org]' \
'(-a|--versionname)'{-a,--versionname}'[the name of the package version to be created]' \
'(-n|--versionnumber)'{-n,--versionnumber}'[the version number of the package version to be created]' \
'(-e|--versiondescription)'{-e,--versiondescription}'[the description of the package version to be created]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package1:version:create)
_command_args=(
'(-i|--packageid)'{-i,--packageid}'[ID of the metadata package (starts with 033) of which youre creating a new version]' \
'(-n|--name)'{-n,--name}'[package version name]' \
'(-d|--description)'{-d,--description}'[package version description]' \
'(-v|--version)'{-v,--version}'[package version in major.minor format, for example, 3.2]' \
'(-m|--managedreleased)'{-m,--managedreleased}'[create a managed package version]' \
'(-r|--releasenotesurl)'{-r,--releasenotesurl}'[release notes URL]' \
'(-p|--postinstallurl)'{-p,--postinstallurl}'[post install URL]' \
'(-k|--installationkey)'{-k,--installationkey}'[installation key for key-protected package (default: null)]' \
'(-w|--wait)'{-w,--wait}'[minutes to wait for the package version to be created (default: 2 minutes)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package1:version:create:get)
_command_args=(
'(-i|--requestid)'{-i,--requestid}'[PackageUploadRequest ID]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:create:list)
_command_args=(
'(-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)]' \
'(-s|--status)'{-s,--status}'[filter the list by version creation request status (Queued,InProgress,Success,Error)]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:create:report)
_command_args=(
'(-i|--packagecreaterequestid)'{-i,--packagecreaterequestid}'[package version creation request ID (starts with 08c)]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package1:version:display)
_command_args=(
'(-i|--packageversionid)'{-i,--packageversionid}'[metadata package version ID (starts with 04t)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:list)
_command_args=(
'(-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)]' \
'(-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)]' \
'(-p|--packages)'{-p,--packages}'[filter results on specified comma-delimited packages (aliases or 0Ho IDs)]' \
'(-r|--released)'{-r,--released}'[display released versions only]' \
'(-o|--orderby)'{-o,--orderby}'[order by the specified package version fields]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--concise)--concise[display limited package version details]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[display extended package version details]' \
)
;;
force:package1:version:list)
_command_args=(
'(-i|--packageid)'{-i,--packageid}'[metadata package ID (starts with 033)]' \
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:promote)
_command_args=(
'(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package version to promote]' \
'(-n|--noprompt)'{-n,--noprompt}'[no prompt to confirm setting the package version as released]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:package:version:report)
_command_args=(
'(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package to retrieve details for]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
'(--verbose)--verbose[displays extended package version details]' \
)
;;
force:package:version:update)
_command_args=(
'(-p|--package)'{-p,--package}'[ID (starts with 04t) or alias of the package to update a version of]' \
'(-a|--versionname)'{-a,--versionname}'[new package version name]' \
'(-e|--versiondescription)'{-e,--versiondescription}'[new package version description]' \
'(-b|--branch)'{-b,--branch}'[new package version branch]' \
'(-t|--tag)'{-t,--tag}'[new package version tag]' \
'(-k|--installationkey)'{-k,--installationkey}'[new installation key for key-protected package (default: null)]' \
'(-v|--targetdevhubusername)'{-v,--targetdevhubusername}'[username or alias for the dev hub org; overrides default dev hub org]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
force:auth:web:login)
_command_args=(
'(-i|--clientid)'{-i,--clientid}'[OAuth client ID (sometimes called the consumer key)]' \
'(-r|--instanceurl)'{-r,--instanceurl}'[the login URL of the instance the org lives on]' \
'(-d|--setdefaultdevhubusername)'{-d,--setdefaultdevhubusername}'[set the authenticated org as the default dev hub org for scratch org creation]' \
'(-s|--setdefaultusername)'{-s,--setdefaultusername}'[set the authenticated org as the default username that all commands run against]' \
'(-a|--setalias)'{-a,--setalias}'[set an alias for the authenticated org]' \
'(--disablemasking)--disablemasking[disable masking of user input (for use with problematic terminals)]' \
'(-p|--noprompt)'{-p,--noprompt}'[do not prompt for auth confirmation in demo mode]' \
'(--json)--json[format output as json]' \
'(--loglevel)--loglevel[logging level for this command invocation (error*,trace,debug,info,warn,fatal)]' \
)
;;
esac
_arguments \
$_command_args \
&& return 0