# package1 version list

List package versions for the specified first-generation package or for the org.

## Aliases for package1 version list

`force:package1:version:list`

## 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                                                                                                             |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                                                                            |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                                                                        |
| `--package-id`   | `-i`              | **Type:** Value<br><br>Metadata package ID (starts with 033) whose package versions you want to list.<br><br>If not specified, shows all versions for all packages (managed and unmanaged) in the org. |
| `--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.                                                    |

## Examples for package1 version list

List all first-generation package versions in your default org:

```shell
sf package1 version list
```

List package versions for the specified first-generation package in the specifief org:

```shell
sf package1 version list --package-id 033... --target-org myorg@example.com
```
