# uip rpa get-versions

> `uip rpa get-versions` lists the available versions of a NuGet package across every feed configured for the active project, sorted newest-first. Use it to pin a dependency to a known-good version before calling [`uip rpa install-or-update-packages`](./uip-rpa-install-or-update-packages.md), or to discover the latest stable version of an activity package.

`uip rpa get-versions` lists the available versions of a NuGet package across every feed configured for the active project, sorted newest-first. Use it to pin a dependency to a known-good version before calling [`uip rpa install-or-update-packages`](./uip-rpa-install-or-update-packages.md), or to discover the latest stable version of an activity package.

Feed configuration is loaded by Studio, so the verb requires a Windows runner.

## Synopsis

```
uip rpa get-versions --package-id <string> [--include-prerelease]
```

## Options

| Flag | Description |
|---|---|
| `--package-id <string>` | NuGet package ID, e.g. `UiPath.UIAutomation.Activities`. |
| `--include-prerelease` | Include prerelease versions in the output. Default: `false`. |

For the complete option list on your installed tool version, run:

```bash
uip rpa get-versions --help
```

## Examples

```bash
# Latest stable versions of the UI Automation activities package
uip rpa get-versions --package-id UiPath.UIAutomation.Activities

# Include prereleases when picking the next version to qualify
uip rpa get-versions --package-id UiPath.Excel.Activities --include-prerelease
```

## Related

- [`uip rpa inspect-package`](./uip-rpa-inspect-package.md) — inspect the public API of a specific package version.
- [`uip rpa install-or-update-packages`](./uip-rpa-install-or-update-packages.md) — install a chosen version into the project.

## See also

- [RPA tool overview](./uip-rpa.md)
- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
