# uip rpa analyze

> Syntax and options for `uip rpa analyze`, which runs the UiPath workflow analyzer against a Studio project for governance violations.

`uip rpa analyze` runs the UiPath workflow analyzer against a Studio project, reporting rule violations against a governance policy. It is the modern replacement for `uipcli package analyze` from the legacy .NET CLI — see [Migration — package analyze](./migration-command-map.md#package-analyze) for the full flag-to-flag map.

:::warning
**Runtime requirements**

- **.NET runtime** must be available on the runner — the workflow analyzer is .NET-backed. See [Breaking changes — .NET runtime](./migration-breaking-changes.md#runtime-change-nodejs-18-replaces-net-as-the-cli-runtime-rpa-tool-keeps-a-net-dependency).
- **Windows runner for Windows projects.** Cross-platform projects (`targetFramework: "Portable"`) analyze on any OS. **Windows projects** (`targetFramework: "Windows"`) require a Windows runner. See [uip rpa overview](./uip-rpa.md) for the full project-flavor matrix.
:::

## Synopsis

```
uip rpa analyze <project> --governance-file-path <policy> [options]
```

- `<project>` — path to the Studio project (a directory containing `project.json`).
- `--governance-file-path <policy>` — path to the governance JSON file that enumerates the workflow-analyzer rules and severities to apply.

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

```bash
uip rpa analyze --help
```

The flag set mirrors legacy `uipcli package analyze` in concept: a results-output file (`--result-path`), a fail-on-severity threshold (`--stop-on-rule-violation`), and optional rule-selection flags. Flag names are kebab-case (`--governance-file-path`, `--result-path`, `--stop-on-rule-violation`) rather than the PascalCase used by `uipcli`.

## Migration from the legacy .NET CLI

| Legacy .NET CLI | Modern CLI |
|---|---|
| `uipcli package analyze <project>` | `uip rpa analyze <project>` |
| `--governance-file-path <policy>` | `--governance-file-path <policy>` |

See [Migration — package analyze](./migration-command-map.md#package-analyze) for the full flag-level map.

## Related

- [uip rpa pack](./uip-rpa-pack.md) — run before or after packaging.
- [uip rpa restore](./uip-rpa-restore.md) — ensure dependencies are present on disk so activities resolve for analysis.

## See also

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