sfdx force:package:version:create

Create a package version

Options

NameDescription
--jsonFormat output as json
--loglevel <loglevel>Logging level for this command invocation
-v, --targetdevhubusername <targetdevhubusername>Username or alias for the dev hub org; overrides default dev hub org
--apiversion <apiversion>Override the api version used for api requests made by this command
-p, --package <package>ID (starts with 0Ho) or alias of the package to create a version of
-d, --path <path>Path to directory that contains the contents of the package
-f, --definitionfile <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
-b, --branch <branch>The package version’s branch
-t, --tag <tag>The package version’s tag
-k, --installationkey <installationkey>Installation key for key-protected package (either --installationkey or --installationkeybypass is required)
-x, --installationkeybypassBypass the installation key requirement (either --installationkey or --installationkeybypass is required)
-w, --wait <wait>Minutes to wait for the package version to be created
-a, --versionname <versionname>The name of the package version to be created
-n, --versionnumber <versionnumber>The version number of the package version to be created
-e, --versiondescription <versiondescription>The description of the package version to be created
-c, --codecoverageCalculate the code coverage by running the packaged Apex tests
--releasenotesurl <releasenotesurl>Release notes URL
--postinstallurl <postinstallurl>Post-install URL
--postinstallscript <postinstallscript>Post-install script name; managed packages only
--uninstallscript <uninstallscript>Uninstall script name; managed packages only
--skipvalidationSkip validation during package version creation; you can’t promote unvalidated package versions