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‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑description | ‑d | Type: Value Package version description. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑installation‑key | ‑k | Type: Value Installation key for key-protected package (default: null). |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑managed‑released | ‑m | Type: Boolean Create a managed package version. To create a beta version, don’t include this parameter. |
‑‑name | ‑n | Type: Value Required Package version name. |
‑‑package‑id | ‑i | Type: Value Required ID of the metadata package (starts with 033) of which you’re creating a new version. |
‑‑post‑install‑url | ‑p | Type: 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 | ‑r | Type: 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 | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
‑‑version | ‑v | Type: Value Package version in major.minor format, for example, 3.2. |
‑‑wait | ‑w | Type: 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: