package1 version create

<!-- prettier-ignore-start -->

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

Description for package1 version create

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.

Aliases for package1 version create

force:package1:version:create

Flags

Flag Name (Long) Flag Name (Short) Description
<code>‑‑api‑version</code> N/A Type: Value<br><br>Override the api version used for api requests made by this command
<code>‑‑description</code> <code>‑d</code> Type: Value<br><br>Package version description.
<code>‑‑flags‑dir</code> N/A Type: Value<br><br>Import flag values from a directory.
<code>‑‑installation‑key</code> <code>‑k</code> Type: Value<br><br>Installation key for key-protected package (default: null).
<code>‑‑json</code> N/A Type: Boolean<br><br>Format output as json.
<code>‑‑managed‑released</code> <code>‑m</code> Type: Boolean<br><br>Create a managed package version.<br><br>To create a beta version, don’t include this parameter.
<code>‑‑name</code> <code>‑n</code> Type: Value<br>Required<br><br>Package version name.
<code>‑‑package‑id</code> <code>‑i</code> Type: Value<br>Required<br><br>ID of the metadata package (starts with 033) of which you’re creating a new version.
<code>‑‑post‑install‑url</code> <code>‑p</code> Type: Value<br><br>Post install URL.<br><br>The contents of the post-installation instructions URL are displayed in the UI after installation of the package version.
<code>‑‑release‑notes‑url</code> <code>‑r</code> Type: Value<br><br>Release notes URL.<br><br>This link is displayed in the package installation UI to provide release notes for this package version to subscribers.
<code>‑‑target‑org</code> <code>‑o</code> Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set.
<code>‑‑version</code> <code>‑v</code> Type: Value<br><br>Package version in major.minor format, for example, 3.2.
<code>‑‑wait</code> <code>‑w</code> Type: Value<br><br>Minutes to wait for the package version to be created (default: 2 minutes).

Examples for package1 version create

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

sf package1 version create --package-id 033... --name example

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

sf package1 version create --package-id 033... --name example --description "example description" --wait 30 --target-org myorg@example.com
<!-- prettier-ignore-end -->