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