package1 version create

Create a first-generation package version in the release org.

The package version is based on the contents of the specified metadata package. Omit –managed-released if you want to create an unmanaged package version.

force:package1:version:create

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑description‑dType: Value

Package version description.
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑installation‑key‑kType: Value

Installation key for key-protected package (default: null).
‑‑jsonN/AType: Boolean

Format output as json.
‑‑managed‑released‑mType: Boolean

Create a managed package version.

To create a beta version, don’t include this parameter.
‑‑name‑nType: Value
Required

Package version name.
‑‑package‑id‑iType: Value
Required

ID of the metadata package (starts with 033) of which you’re creating a new version.
‑‑post‑install‑url‑pType: Value

Post install URL.

The contents of the post-installation instructions URL are displayed in the UI after installation of the package version.
‑‑release‑notes‑url‑rType: Value

Release notes URL.

This link is displayed in the package installation UI to provide release notes for this package version to subscribers.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.
‑‑version‑vType: Value

Package version in major.minor format, for example, 3.2.
‑‑wait‑wType: Value

Minutes to wait for the package version to be created (default: 2 minutes).

Create a first-generation package version from the package with the specified ID and name the package version “example”; use your default org:

Same as previous example, but provide a description and wait for 30 minutes for the package version to be created; use the specified org: