---
schema_version: "1"
id: d212ea7f63eb1c0c634c3dff56107abb2d87b81d7411bc22e665733d18ec2bf9
title: package1 version create
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/package1/cli_reference_package1_version_create.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_package1_version_create.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e934edf6e2c2c692ec755e262371d304069220dd3b45f78ff02c452c1bb70e0e
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# package1 version create

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>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;description</code> | <code>&#8209;d</code> | **Type:** Value<br><br>Package version description. |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;installation&#8209;key</code> | <code>&#8209;k</code> | **Type:** Value<br><br>Installation key for key-protected package (default: null). |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;managed&#8209;released</code> | <code>&#8209;m</code> | **Type:** Boolean<br><br>Create a managed package version.<br><br>To create a beta version, don’t include this parameter. |
| <code>&#8209;&#8209;name</code> | <code>&#8209;n</code> | **Type:** Value<br>**Required**<br><br>Package version name. |
| <code>&#8209;&#8209;package&#8209;id</code> | <code>&#8209;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>&#8209;&#8209;post&#8209;install&#8209;url</code> | <code>&#8209;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>&#8209;&#8209;release&#8209;notes&#8209;url</code> | <code>&#8209;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>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;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>&#8209;&#8209;version</code> | <code>&#8209;v</code> | **Type:** Value<br><br>Package version in major.minor format, for example, 3.2. |
| <code>&#8209;&#8209;wait</code> | <code>&#8209;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:

```shell
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:

```shell
sf package1 version create --package-id 033... --name example --description "example description" --wait 30 --target-org myorg@example.com
```
<!-- prettier-ignore-end -->
