﻿# octopus package versions

List versions of a package.

```text
Usage:
  octopus package versions [flags]

Aliases:
  versions, show

Flags:
      --package string   package ID to show versions for. required.
  -q, --filter string    filter packages to match only ones that contain the given string
      --limit int32      limit the maximum number of results that will be returned

Global Flags:
  -h, --help                   Show help for a command
      --no-prompt              Disable prompting in interactive mode
  -f, --output-format string   Specify the output format for a command ("json", "table", or "basic") (default "table")
  -s, --space string           Specify the space for operations

```

## Examples

:::div{.success}
**Octopus Samples instance**

Many of the examples we use, reference the [samples instance](https://samples.octopus.app/app#/users/sign-in) of Octopus Deploy. If you'd like to explore the samples instance, you can log in as a guest.
:::

```bash
octopus package versions --package SomePackage
octopus package versions SomePackage --filter beta --limit 5
octopus package show SomePackage -n 2

```

## Learn more

- [Octopus CLI](/docs/octopus-rest-api/cli)
- [Creating API keys](/docs/octopus-rest-api/how-to-create-an-api-key)
