# uip rpa-legacy pack

> Syntax and options for `uip rpa-legacy pack`, which packs an RPA project using the legacy `uipcli` packager on Windows.

`uip rpa-legacy pack` packs an RPA project into a deployable `.nupkg` using the legacy `uipcli` packager directly. For new pipelines that do not depend on a legacy-only feature, prefer the cross-platform [`uip rpa pack`](./uip-rpa-pack.md) — it accepts the same project and produces an equivalent NuGet package on Linux, macOS, or Windows.

Windows-only — see the [overview](./uip-rpa-legacy.md) warning.

## Synopsis

```
uip rpa-legacy pack <project-path> -o <output-dir> [options]
```

- `<project-path>` *(required)* — Path to the RPA project or `project.json`.

## Options

| Flag | Description |
|---|---|
| `-o, --output <path>` | Output directory for the generated `.nupkg`. |
| `-v, --version <version>` | Package version. |
| `--auto-version` | Auto-generate package version. |
| `--output-type <type>` | Force output type (`Process`, `Library`, `Tests`, `Objects`). |
| `--split-output` | Split output into runtime and design libraries. |
| `--repository-url <url>` | Source repository URL. |
| `--repository-commit <sha>` | Source repository commit SHA. |
| `--repository-branch <branch>` | Source repository branch. |
| `--repository-type <type>` | Source repository type. |
| `--project-url <url>` | Automation Hub project URL. |
| `--release-notes <text>` | Release notes for the package. |
| `--timeout <seconds>` | Timeout in seconds for the operation. |

## Examples

```bash
# Pack a project to ./out with an explicit version
uip rpa-legacy pack ./MyProject -o ./out --version 1.4.0

# Pack a library with auto-versioning and split runtime/design output
uip rpa-legacy pack ./MyLibrary -o ./out \
    --output-type Library --auto-version --split-output

# Pack with VCS metadata embedded for traceability
uip rpa-legacy pack ./MyProject -o ./out \
    --version 1.4.0 \
    --repository-url https://github.com/acme/automations \
    --repository-branch main \
    --repository-commit a1b2c3d4e5f6 \
    --release-notes "Adds invoice routing rules."
```

## Related

- [`uip rpa-legacy validate`](./uip-rpa-legacy-validate.md) — validate before packaging.
- [`uip rpa-legacy debug`](./uip-rpa-legacy-debug.md) — debug a workflow before packaging.
- [`uip rpa pack`](./uip-rpa-pack.md) — cross-platform packager; prefer it for non-legacy projects.
- [`uip rpa-legacy`](./uip-rpa-legacy.md) — tool overview.

## See also

- [Global options](./global-options.md)
- [Exit codes](./exit-codes.md)
