package Commands
force:package:create
Help for force:package:create
First, use this command to create a package. Then create a package version.
If you don’t have a namespace defined in your sfdx-project.json file, use --nonamespace.
Your --name value must be unique within your namespace.
Examples:
1sfdx force:package:create -n YourPackageName -t Unlocked -r force-app1sfdx force:package:create -n YourPackageName -d "Your Package Descripton" -t Unlocked -r force-appRun 'sfdx force:package:list' to list all packages in the Dev Hub org.
Command Syntax
- sfdx force:package:create
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -n NAME
- -t PACKAGETYPE
- [-d DESCRIPTION]
- [-e]
- -r PATH
- [--orgdependent]
- [-o ERRORNOTIFICATIONUSERNAME]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -n | --name NAME
- Required
-
Name of the package to create.
- Type: string
- -t | --packagetype PACKAGETYPE
- Required
-
Package type for the package.
The options for package type are Managed and Unlocked (Managed=DeveloperManagedSubscriberManaged, Unlocked=DeveloperControlledSubscriberEditable).
These options determine upgrade and editability rules.
- Type: enum
- Permissible values are: Managed, Unlocked
- -d | --description DESCRIPTION
- Optional
-
Description of the package.
- Type: string
- -e | --nonamespace
- Optional
-
Creates the package with no namespace. Available only for unlocked packages. Useful when you’re migrating an existing org to packages. But, use a namespaced package for new metadata.
- Type: boolean
- -r | --path PATH
- Required
-
The path to the directory that contains the contents of the package.
- Type: directory
- --orgdependent
- Optional
-
Package depends on unpackaged metadata in the installation org. Applies to unlocked packages only.
Use Source Tracking in Sandboxes to develop your org-dependent unlocked package.
For more information, see "Create Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
- Type: boolean
- -o | --errornotificationusername ERRORNOTIFICATIONUSERNAME
- Optional
-
An active Dev Hub org user designated to receive email notifications for unhandled Apex exceptions, and install, upgrade, or uninstall failures associated with your package.
- Type: string
force:package:delete
Help for force:package:delete
Specify the ID or alias of the package you want to delete.
Examples:
1sfdx force:package:delete -p "Your Package Alias"1sfdx force:package:delete -p 0Ho...Command Syntax
- sfdx force:package:delete
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [-n]
- -p PACKAGE
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -n | --noprompt
- Optional
-
don’t prompt before deleting the package
- Type: boolean
- -p | --package PACKAGE
- Required
-
The ID (starts with 0Ho) or alias of the package to delete.
- Type: string
force:package:install
Help for force:package:install
Supply the ID of the package version to install. The package installs in your default target org unless you supply the username for a different target org.
For package upgrades, to specify options for component deprecation or deletion of removed components, include an --upgradetype value. To delete components that can be safely deleted and deprecate the others, specify --upgradetype Mixed (the default). To deprecate all removed components, specify --upgradetype DeprecateOnly. To delete all removed components, except for custom objects and custom fields, that don't have dependencies, specify --upgradetype Delete. (Note: This option can result in the loss of data that is associated with the deleted components.) The default is Mixed.
Examples:
1sfdx force:package:install --package 04t... -u me@example.com1sfdx force:package:install --package awesome_package_alias1sfdx force:package:install --package "Awesome Package Alias"1sfdx force:package:install --package 04t... -t DeprecateOnlyCommand Syntax
- sfdx force:package:install
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- [-w WAIT]
- [-k INSTALLATIONKEY]
- [-b PUBLISHWAIT]
- [-r]
- [-p PACKAGE]
- [-a APEXCOMPILE]
- [-s SECURITYTYPE]
- [-t UPGRADETYPE]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -w | --wait WAIT
- Optional
-
Maximum number of minutes to wait for installation status. The default is 0.
- Type: minutes
- -k | --installationkey INSTALLATIONKEY
- Optional
-
Installation key for installing a key-protected package. The default is null.
- Type: string
- -b | --publishwait PUBLISHWAIT
- Optional
-
Maximum number of minutes to wait for the Subscriber Package Version ID to become available in the target org before canceling the install request. The default is 0.
- Type: minutes
- -r | --noprompt
- Optional
-
Allows the following without an explicit confirmation response: 1) Remote Site Settings and Content Security Policy websites to send or receive data, and 2) --upgradetype Delete to proceed.
- Type: boolean
- -p | --package PACKAGE
- Optional
-
The ID (starts with 04t) or alias of the package version to install.
- Type: string
- -a | --apexcompile APEXCOMPILE
- Optional
-
Applies to unlocked packages only. Specifies whether to compile all Apex in the org and package, or only the Apex in the package.
For package installs into production orgs, or any org that has Apex Compile on Deploy enabled, the platform compiles all Apex in the org after the package install or upgrade operation completes.
This approach assures that package installs and upgrades don’t impact the performance of an org, and is done even if --apexcompile package is specified.
- Type: enum
- Permissible values are: all, package
- Default value: all
- -s | --securitytype SECURITYTYPE
- Optional
-
Security access type for the installed package.
Deprecation notice: The --securitytype parameter's default value will change from AllUsers to AdminsOnly in an upcoming release (v47.0 or later).
- Type: enum
- Permissible values are: AllUsers, AdminsOnly
- Default value: AdminsOnly
- -t | --upgradetype UPGRADETYPE
- Optional
-
For package upgrades, specifies whether to mark all removed components as deprecated (DeprecateOnly), to delete removed components that can be safely deleted and deprecate the others (Mixed), or to delete all removed components, except for custom objects and custom fields, that don't have dependencies (Delete). The default is Mixed. Can specify DeprecateOnly or Delete only for unlocked package upgrades.
- Type: enum
- Permissible values are: DeprecateOnly, Mixed, Delete
- Default value: Mixed
force:package:install:report
Help for force:package:install:report
Examples:
1sfdx force:package:install:report -i 0Hf...1sfdx force:package:install:report -i 0Hf... -u me@example.comCommand Syntax
- sfdx force:package:install:report
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- -i REQUESTID
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -i | --requestid REQUESTID
- Required
-
The ID of the package install request you want to check.
- Type: id
force:package:installed:list
Help for force:package:installed:list
Examples:
1sfdx force:package:installed:list1sfdx force:package:installed:list -u me@example.comCommand Syntax
- sfdx force:package:installed:list
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
force:package:list
Help for force:package:list
You can view the namespace, IDs, and other details for each package.
Examples:
1sfdx force:package:list -v devhub@example.com1sfdx force:package:list -v devhub@example.com --verboseCommand Syntax
- sfdx force:package:list
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [--verbose]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- --verbose
- Optional
-
Displays extended package details.
- Type: boolean
force:package:uninstall
Help for force:package:uninstall
Specify the package ID for a second-generation package.
Examples:
1sfdx force:package:uninstall -p 04t... -u me@example.com1sfdx force:package:uninstall -p undesirable_package_alias1sfdx force:package:uninstall -p "Undesirable Package Alias"To list the org’s installed packages, run "sfdx force:package:installed:list".
To uninstall a first-generation package, from Setup, enter Installed Packages in the Quick Find box, then select Installed Packages.
Command Syntax
- sfdx force:package:uninstall
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- [-w WAIT]
- [-p PACKAGE]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -w | --wait WAIT
- Optional
-
Maximum number of minutes to wait for uninstall status. The default is 0.
- Type: minutes
- -p | --package PACKAGE
- Optional
-
The ID (starts with 04t) or alias of the package version to uninstall.
- Type: string
force:package:uninstall:report
Help for force:package:uninstall:report
Examples:
1sfdx force:package:uninstall:report -i 06y...1sfdx force:package:uninstall:report -i 06y... -u me@example.comCommand Syntax
- sfdx force:package:uninstall:report
- [--json]
- [--loglevel LOGLEVEL]
- [-u TARGETUSERNAME]
- [--apiversion APIVERSION]
- -i REQUESTID
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -u | --targetusername TARGETUSERNAME
- Optional
-
A username or alias for the target org. Overrides the default target org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -i | --requestid REQUESTID
- Required
-
The ID of the package uninstall request you want to check.
- Type: id
force:package:update
Help for force:package:update
Specify a new value for each option you want to update.
Examples:
1sfdx force:package:update -p "Your Package Alias" -n "New Package Name"1sfdx force:package:update -p 0Ho... -d "New Package Description"Run "sfdx force:package:list" to list all packages in the Dev Hub org.
Command Syntax
- sfdx force:package:update
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -p PACKAGE
- [-n NAME]
- [-d DESCRIPTION]
- [-o ERRORNOTIFICATIONUSERNAME]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Required
-
The ID (starts with 0Ho) or alias of the package to update.
- Type: string
- -n | --name NAME
- Optional
-
New name of the package.
- Type: string
- -d | --description DESCRIPTION
- Optional
-
New description of the package.
- Type: string
- -o | --errornotificationusername ERRORNOTIFICATIONUSERNAME
- Optional
-
An active Dev Hub org user designated to receive email notifications for unhandled Apex exceptions, and install, upgrade, or uninstall failures associated with your package.
- Type: string
force:package:version:create
Help for force:package:version:create
The package version is based on the package contents in the specified directory.
To retrieve details about a package version create request, including status and package version ID (04t), run "sfdx force:package:version:create:report -i 08c...".
We recommend that you specify the --installationkey parameter to protect the contents of your package and to prevent unauthorized installation of your package.
To list package version creation requests in the org, run "sfdx force:package:version:create:list".
To promote a package version to released, you must use the --codecoverage parameter. The package must also meet the code coverage requirements. This requirement applies to both managed and unlocked packages.
We don’t calculate code coverage for org-dependent unlocked packages, or for package versions that specify --skipvalidation.
Examples:
1sfdx force:package:version:create -d common -k password1231sfdx force:package:version:create -p "Your Package Alias" -k password1231sfdx force:package:version:create -p 0Ho... -k password1231sfdx force:package:version:create -d common -k password123 --skipvalidationCommand Syntax
- sfdx force:package:version:create
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [-p PACKAGE]
- [-d PATH]
- [-f DEFINITIONFILE]
- [-b BRANCH]
- [-t TAG]
- [-k INSTALLATIONKEY]
- [-x]
- [-w WAIT]
- [-a VERSIONNAME]
- [-n VERSIONNUMBER]
- [-e VERSIONDESCRIPTION]
- [-c]
- [--releasenotesurl RELEASENOTESURL]
- [--postinstallurl POSTINSTALLURL]
- [--postinstallscript POSTINSTALLSCRIPT]
- [--uninstallscript UNINSTALLSCRIPT]
- [--skipvalidation]
- [--skipancestorcheck]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Optional
-
The ID (starts with 0Ho) or alias of the package to create a version of.
- Type: string
- -d | --path PATH
- Optional
-
The path to the directory that contains the contents of the package.
- Type: directory
- -f | --definitionfile DEFINITIONFILE
- Optional
-
The 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.
- Type: filepath
- -b | --branch BRANCH
- Optional
-
Name of the branch in your source control system that the package version is based on.
- Type: string
- -t | --tag TAG
- Optional
-
The package version’s tag.
- Type: string
- -k | --installationkey INSTALLATIONKEY
- Optional
-
Installation key for creating the key-protected package. Either an --installationkey value or the --installationkeybypass flag is required.
- Type: string
- -x | --installationkeybypass
- Optional
-
Bypasses the installation key requirement. If you bypass this requirement, anyone can install your package. Either an --installationkey value or the --installationkeybypass flag is required.
- Type: boolean
- -w | --wait WAIT
- Optional
-
The number of minutes to wait for the package version to be created.
- Type: minutes
- Default value: 0 minutes
- -a | --versionname VERSIONNAME
- Optional
-
The name of the package version to be created. Overrides the sfdx-project.json value.
- Type: string
- -n | --versionnumber VERSIONNUMBER
- Optional
-
The version number of the package version to be created. Overrides the sfdx-project.json value.
- Type: string
- -e | --versiondescription VERSIONDESCRIPTION
- Optional
-
The description of the package version to be created. Overrides the sfdx-project.json value.
- Type: string
- -c | --codecoverage
- Optional
-
Calculate and store the code coverage percentage by running the Apex tests included in this package version. Before you can promote and release a managed or unlocked package version, the Apex code must meet a minimum 75% code coverage requirement. We don’t calculate code coverage for org-dependent unlocked packages or for package versions that specify --skipvalidation.
- Type: boolean
- --releasenotesurl RELEASENOTESURL
- Optional
-
The release notes URL. This link is displayed in the package installation UI to provide release notes for this package version to subscribers.
- Type: url
- --postinstallurl POSTINSTALLURL
- Optional
-
The post-install instructions URL. The contents of the post-installation instructions URL are displayed in the UI after installation of the package version.
- Type: url
- --postinstallscript POSTINSTALLSCRIPT
- Optional
-
Applies to managed packages only. The post-install script name. The post-install script is an Apex class within this package that is run in the installing org after installations or upgrades of this package version.
- Type: string
- --uninstallscript UNINSTALLSCRIPT
- Optional
-
Applies to managed packages only. The uninstall script name. The uninstall script is an Apex class within this package that is run in the installing org after uninstallations of this package.
- Type: string
- --skipvalidation
- Optional
-
Skips validation of dependencies, package ancestors, and metadata during package version creation. Skipping validation reduces the time it takes to create a new package version, but you can promote only validated package versions. Skipping validation can suppress important errors that can surface at a later stage. You can specify skip validation or code coverage, but not both. Code coverage is calculated during validation.
- Type: boolean
- --skipancestorcheck
- Optional
-
Override ancestry requirements, which allows you to specify a package ancestor that isn’t the highest released package version.
- Type: boolean
force:package:version:create:list
Help for force:package:version:create:list
Shows the details of each request to create a package version in the Dev Hub org.
All filter parameters are applied using the AND logical operator (not OR).
To get information about a specific request, run "sfdx force:package:version:create:report" and supply the request ID.
Examples:
1sfdx force:package:version:create:list1sfdx force:package:version:create:list --createdlastdays 31sfdx force:package:version:create:list --status Error1sfdx force:package:version:create:list -s InProgress1sfdx force:package:version:create:list -c 3 -s SuccessCommand Syntax
- sfdx force:package:version:create:list
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [-c CREATEDLASTDAYS]
- [-s STATUS]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -c | --createdlastdays CREATEDLASTDAYS
- Optional
-
Filters the list based on the specified maximum number of days since the request was created (starting at 00:00:00 of first day to now; 0 for today).
- Type: number
- -s | --status STATUS
- Optional
-
Filters the list based on the status of version creation requests.
- Type: enum
- Permissible values are: Queued, InProgress, Success, Error
force:package:version:create:report
Help for force:package:version:create:report
Specify the request ID for which you want to view details. If applicable, the command displays errors related to the request.
Examples:
1sfdx force:package:version:create:report -i 08c...1sfdx force:package:version:create:report -i 08c... -v devhub@example.comTo show all requests in the org, run "sfdx force:package:version:create:list".
Command Syntax
- sfdx force:package:version:create:report
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -i PACKAGECREATEREQUESTID
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -i | --packagecreaterequestid PACKAGECREATEREQUESTID
- Required
-
The ID (starts with 08c) of the package version creation request you want to display.
- Type: id
force:package:version:delete
Help for force:package:version:delete
Specify the ID or alias of the package version you want to delete.
Examples:
1sfdx force:package:version:delete -p "Your Package Alias"1sfdx force:package:version:delete -p 04t...Command Syntax
- sfdx force:package:version:delete
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [-n]
- -p PACKAGE
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -n | --noprompt
- Optional
-
don’t prompt before deleting the package version
- Type: boolean
- -p | --package PACKAGE
- Required
-
The ID (starts with 04t) or alias of the package version to delete.
- Type: string
force:package:version:displayancestry
Help for force:package:version:displayancestry
Examples:
1sfdx force:package:version:displayancestry -p package_version_alias1sfdx force:package:version:displayancestry -p package_version_alias --dotcode1sfdx force:package:version:displayancestry -p OHo...1sfdx force:package:version:displayancestry -p 04t...Command Syntax
- sfdx force:package:version:displayancestry
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -p PACKAGE
- [--dotcode]
- [--verbose]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Required
-
The ID or alias of the package or package version to display ancestry for. If you specify a package ID (starts with 0Ho) or alias, the ancestor tree for every package version associated with the package ID is displayed.
If you specify a package version (starts with 04t) or alias, the ancestry tree of the specified package version is displayed.
- Type: string
- --dotcode
- Optional
-
Displays the ancestry tree in DOT code. You can use the DOT code output in graph visualization software to create tree visualizations.
- Type: boolean
- --verbose
- Optional
-
Displays both the package version ID (starts with 04t) and the version number (major.minor.patch.build) in the ancestry tree.
- Type: boolean
force:package:version:list
Help for force:package:version:list
Displays details of each package version in the org.
Use --concise or --verbose to display limited or additional details, respectively.
All filter parameters are applied using the AND logical operator (not OR).
Examples:
1sfdx force:package:version:list --verbose --createdlastdays 3 --released --orderby PatchVersion1sfdx force:package:version:list --packages 0Ho000000000000,0Ho000000000001 --released --modifiedlastdays 01sfdx force:package:version:list --released1sfdx force:package:version:list --concise --modifiedlastdays 01sfdx force:package:version:list --concise -c 3 -r1sfdx force:package:version:list --packages exp-mgr,exp-mgr-util --released --modifiedlastdays 0Command Syntax
- sfdx force:package:version:list
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- [-c CREATEDLASTDAYS]
- [--concise]
- [-m MODIFIEDLASTDAYS]
- [-p PACKAGES]
- [-r]
- [-o ORDERBY]
- [--verbose]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -c | --createdlastdays CREATEDLASTDAYS
- Optional
-
Filters the list based on the specified maximum number of days since the request was created (starting at 00:00:00 of first day to now; 0 for today).
- Type: number
- --concise
- Optional
-
Displays limited package version details.
- Type: boolean
- -m | --modifiedlastdays MODIFIEDLASTDAYS
- Optional
-
Lists the items modified in the specified last number of days, starting at 00:00:00 of first day to now. Use 0 for today.
- Type: number
- -p | --packages PACKAGES
- Optional
-
Filters results on the specified comma-delimited packages (aliases or 0Ho IDs).
- Type: array
- -r | --released
- Optional
-
Displays released versions only (IsReleased=true).
- Type: boolean
- -o | --orderby ORDERBY
- Optional
-
Orders the list by the specified package version fields.
- Type: array
- --verbose
- Optional
-
Displays extended package version details.
- Type: boolean
force:package:version:promote
Help for force:package:version:promote
Supply the ID or alias of the package version you want to promote. Promotes the package version to released status.
Examples:
1sfdx force:package:version:promote -p 04t...1sfdx force:package:version:promote -p awesome_package_alias1sfdx force:package:version:promote -p "Awesome Package Alias"Command Syntax
- sfdx force:package:version:promote
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -p PACKAGE
- [-n]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Required
-
The ID (starts with 04t) or alias of the package version to promote.
- Type: string
- -n | --noprompt
- Optional
-
Do not prompt to confirm setting the package version as released.
- Type: boolean
force:package:version:report
Help for force:package:version:report
Examples:
1sfdx force:package:version:report -p 04t...1sfdx force:package:version:report -p "Your Package Alias"To update package version values, run "sfdx force:package:version:update".
Command Syntax
- sfdx force:package:version:report
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -p PACKAGE
- [--verbose]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Required
-
The ID (starts with 04t) or alias of the package to retrieve details for.
- Type: string
- --verbose
- Optional
-
Displays extended package version details.
- Type: boolean
force:package:version:update
Help for force:package:version:update
Specify a new value for each option you want to update.
Examples:
1sfdx force:package:version:update -p "Your Package Alias" -k password1231sfdx force:package:version:update -p 04t... -b main -t 'Release 1.0.7'1sfdx force:package:version:update -p 04t... -e "New Package Version Description"To display details about a package version, run "sfdx force:package:version:report".
Command Syntax
- sfdx force:package:version:update
- [--json]
- [--loglevel LOGLEVEL]
- [-v TARGETDEVHUBUSERNAME]
- [--apiversion APIVERSION]
- -p PACKAGE
- [-a VERSIONNAME]
- [-e VERSIONDESCRIPTION]
- [-b BRANCH]
- [-t TAG]
- [-k INSTALLATIONKEY]
Parameters
- --json
- Optional
-
Format output as JSON.
- Type: boolean
- --loglevel LOGLEVEL
- Optional
-
The logging level for this command invocation. Logs are stored in $HOME/.sf/sf.log.
- Type: enum
- Permissible values are: trace, debug, info, warn, error, fatal, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- Default value: warn
- -v | --targetdevhubusername TARGETDEVHUBUSERNAME
- Optional
-
A username or alias for the target Dev Hub org. Overrides the default Dev Hub org.
- Type: string
- --apiversion APIVERSION
- Optional
-
Override the API version used for API requests made by this command.
- Type: string
- -p | --package PACKAGE
- Required
-
The ID (starts with 04t) or alias of the package to update a version of.
- Type: string
- -a | --versionname VERSIONNAME
- Optional
-
The new package version name.
- Type: string
- -e | --versiondescription VERSIONDESCRIPTION
- Optional
-
The new package version description.
- Type: string
- -b | --branch BRANCH
- Optional
-
The new package version branch.
- Type: string
- -t | --tag TAG
- Optional
-
The new package version tag.
- Type: string
- -k | --installationkey INSTALLATIONKEY
- Optional
-
The new installation key for the key-protected package. The default is null.
- Type: string