# uip api-workflow

> Commands for running UiPath API Workflows locally and packaging them for publication, using the `uip api-workflow` tool.

`uip api-workflow` runs UiPath API Workflows locally and packages them for publication. API Workflows are the Serverless Workflow-based execution model used for orchestration code that does not ship as an RPA process. The `run` verb executes a workflow JSON on your machine — useful for local iteration before publishing — while `build` and `pack` produce a `.nupkg` ready to upload. Install it with `uip tools install api-workflow`, or invoke `uip api-workflow …` and let auto-install run. See [Tools (plugins)](./concepts-tools.md) for the install model and [uip tools](./uip-tools.md) for the command that manages tool installation. `api-workflow` is the command prefix; the underlying package is `@uipath/api-workflow-tool`.

## Commands

Every `uip api-workflow` verb has its own reference page. For live argument lists on your installed tool version, run `uip api-workflow <verb> --help`.

| Verb | Description |
|---|---|
| [`init`](./uip-api-workflow-init.md) | Scaffold a new API Workflow project with boilerplate files. |
| [`pack`](./uip-api-workflow-pack.md) | Build and package an API Workflow project into a `.nupkg`. |
| [`build`](./uip-api-workflow-build.md) | Compile an API Workflow project without packaging it. |
| [`run`](./uip-api-workflow-run.md) | Execute an API Workflow JSON file locally using the bundled Serverless Workflow executor. |
| [`validate`](./uip-api-workflow-validate.md) | Validate an API Workflow JSON file's structure. |
| [`bindings`](./uip-api-workflow-bindings.md) | Generate a `bindings_v2.json` file from a workflow, for solutions authored outside Studio Web. |
| [`registry`](./uip-api-workflow-registry.md) | Look up connector/DAP activities and emit ready-to-paste activity stubs. |

## Synopsis

```
uip api-workflow init          <name> [options]
uip api-workflow pack          <projectPath> <destinationPath> [options]
uip api-workflow build         <projectPath>
uip api-workflow run           <file> [options]
uip api-workflow validate      <file> [options]
uip api-workflow bindings sync --workflow <path>
uip api-workflow registry resolve <keyword> [options]
uip api-workflow registry stub    <activity-type-id> [options]
```

All `uip api-workflow` verbs honor the [global options](./global-options.md) (`--output`, `--output-filter`, `--log-level`, `--log-file`). Standard [exit codes](./exit-codes.md) apply.

## See also

- [Tools (plugins)](./concepts-tools.md) — install model for `@uipath/api-workflow-tool`.
- [`uip login`](./uip-login.md) — credentials that `run` loads unless you pass `--no-auth`.
- [Configuration](./configuration.md) — credential precedence for the `run` loader.
