# uip maestro flow process and uip maestro flow processes

> Syntax and options for `uip maestro flow process` and `uip maestro flow processes`, covering per-folder and tenant-wide published Flow process operations.

Once a Flow package is published to Orchestrator it becomes a **process**. This page covers two related command groups:

- **`uip maestro flow process`** — per-folder operations on a single process definition (list in a folder, get its schema, run it).
- **`uip maestro flow processes`** *(plural)* — tenant-wide summaries and per-process incident lookup.

## Synopsis

```
# Singular — per-folder, operational
uip maestro flow process list (-f <folder-key> | --folder-path <path>) [--filter <odata>] [--limit <n>] [--offset <n>] [--login-validity <minutes>]
uip maestro flow process get  <process-key> <feed-id> -f <folder-key> [--login-validity <minutes>]
uip maestro flow process run  <process-key> <folder-key>
                       [-i, --inputs <json>]
                       [--release-key <key>] [--feed-id <id>] [--robot-ids <ids>]
                       [--entry-point <id>]
                       [--attachment <name=path>]...
                       [--wait [--timeout <seconds>] [--poll-interval <seconds>]]
                       [--validate] [--login-validity <minutes>]
uip maestro flow process settings get       <process-key> -f <folder-key>
uip maestro flow process settings set       <process-key> -f <folder-key> [--inputs <json|@file>]
uip maestro flow process variable-tags list   <process-key> -f <folder-key> [--process-version <version>]
uip maestro flow process variable-tags create <process-key> -f <folder-key> (--variables <variable...> | --all) [--dry-run] [--process-version <version>]
uip maestro flow process variable-tags delete <process-key> -f <folder-key> (--variables <variable...> | --all --yes) [--dry-run] [--process-version <version>]

# Plural — tenant-wide summary and incident surface
uip maestro flow processes list [--folder-key <key>] [-l, --limit <number>] [--offset <number>] [--status <status>]
uip maestro flow processes incidents    <process-key> --folder-key <key>
uip maestro flow processes diagnose     <process-key> --folder-key <key>
uip maestro flow processes error-codes  <process-key> --folder-key <key>
```

All subcommands require `uip login` and honor [global options](./global-options.md). Exit codes follow the [standard contract](./exit-codes.md).

---

## uip maestro flow process list

List available Flow processes (releases) in a specific folder.

### Options

| Option | Required | Description |
|---|---|---|
| `-f, --folder-key <key>` | one of `--folder-key` or `--folder-path` | Folder key (GUID). |
| `--folder-path <path>` | one of `--folder-key` or `--folder-path` | Folder path, e.g. `Shared/Invoices`. When you pass both options, they must refer to the same folder. |
| `--filter <odata>` | no | Additional OData filter applied server-side. |
| `-l, --limit <number>` | no | Number of processes to return, 1–1000. |
| `--offset <number>` | no | Number of processes to skip, 0–1000000. Default `0`. |
| `--login-validity <minutes>` | no | Token-refresh threshold (default `10`). |

Orchestrator applies `--limit` and `--offset`, so the `Pagination` object in the response has no `Total`. It carries:

- `Returned`
- `Limit`
- `Offset`
- `HasMore`

Passing neither `--folder-key` nor `--folder-path` fails with exit code `3`.

### Data shape (`--output json`)

```json
{
  "Code": "FlowProjectList",
  "Data": [
    {
      "name":       "InvoiceFlow",
      "processKey": "a1b2c3d4-0000-0000-0000-000000000001:1.0.0",
      "releaseKey": "e5f6a7b8-0000-0000-0000-000000000001",
      "folderKey":  "c3d4e5f6-0000-0000-0000-000000000001",
      "feedId":     "default",
      "folderId":   42,
      "releaseActive": "Yes",
      "releaseLatest": "Yes"
    }
  ]
}
```

`releaseActive` and `releaseLatest` reflect the Orchestrator release state: whether the release is marked active, and whether it is the highest version. They do not indicate whether the process is deployed or runnable.

---

## uip maestro flow process get

Fetch the entry-point schema (input/output JSON schemas) for a Flow process. Use the result to build a valid `--inputs` payload for `process run`.

### Arguments

- `<process-key>` *(required)* — process key, e.g. `MyFlow.flow.Flow:1.0.0` or `<package-id>:<version>`.
- `<feed-id>` *(required)* — feed ID (from the `list` output).

### Options

- `-f, --folder-key <key>` *(required)*
- `--login-validity`

### Data shape

```json
{
  "Code": "FlowProjectGet",
  "Data": [
    {
      "Path":         "/content/main.flow",
      "DisplayName":  "Main",
      "Type":         "Flow",
      "InputSchema":  "{\"type\":\"object\",\"properties\":{}}",
      "OutputSchema": "{\"type\":\"object\",\"properties\":{}}"
    }
  ]
}
```

`InputSchema` and `OutputSchema` are re-stringified JSON; parse them as JSON Schema to drive input construction.

---

## uip maestro flow process run

Start a Flow job for a published process.

### Arguments

- `<process-key>` *(required)* — process key (e.g. `MyFlow.flow.Flow:1.0.0`).
- `<folder-key>` *(required)* — folder key (GUID).

### Options

| Option | Description |
|---|---|
| `-i, --inputs <json>` | Inputs as a JSON string or `@path/to/file.json`. If omitted and stdin is piped, stdin is parsed as inputs. |
| `--release-key <key>` | Release key (GUID) — from `process list`. When omitted, the command looks up the release that matches `<process-key>` (name and version) in the folder. If no release or more than one release matches, the command fails with `Code: "FlowReleaseKeyRequired"`; pass the matching `releaseKey` from `process list`. |
| `--feed-id <id>` | Feed ID for package lookup (optional). |
| `--robot-ids <ids>` | Comma-separated robot IDs (integers). Invalid values fail fast. |
| `--entry-point <id>` | Entry point to start the job at: a trigger node ID from the `.flow` file. Defaults to the release's default entry point. An ID that matches no entry point of the process fails with exit code `3`, before any attachment is uploaded. With `--validate`, the inputs are checked against this entry point's schema. |
| `--attachment <name=path>` | Upload a local file to Orchestrator and bind it as a file-type input variable. Repeatable, e.g. `--attachment file1=./resume.pdf`. Overrides the same variable name if also present in `--inputs`. |
| `--wait` | Block until the job reaches a terminal state instead of returning immediately with `Pending`. |
| `--timeout <seconds>` | Maximum seconds to wait. `0` = no timeout. Default: `1800`. Requires `--wait`. |
| `--poll-interval <seconds>` | Seconds between status checks while waiting. Default: `5`. Requires `--wait`. |
| `--validate` | Validate inputs against the process schema before running. Performs basic checks only — required fields present and primitive types match. Complex constraints (enums, patterns, references) are not enforced by this pass. |
| `--login-validity <minutes>` | Token-refresh threshold (default `10`). |

**Input precedence**: `--inputs <json>` / `--inputs @file.json` > stdin > empty object `{}`.

### Examples

```bash
# Run with inline JSON (the release key is looked up)
uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-0000-0000-0000-000000000001" \
  --inputs '{"amount":100}'

# Run a specific release
uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-…" \
  --release-key "e5f6a7b8-…" --inputs '{"amount":100}'

# Bind a local file to a file-typed input variable
uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-…" --attachment file1=./resume.pdf

# Run with inputs from a file
uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-…" --inputs @inputs.json

# Run with inputs piped from stdin
echo '{"amount":100}' | uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-…"

# Validate before running
uip maestro flow process run "InvoiceFlow.flow.Flow:1.0.0" "c3d4e5f6-…" \
  --inputs '{"amount":100}' --validate
```

### Data shape

```json
{
  "Code": "FlowJobStarted",
  "Data": {
    "jobKey":  "b2c3d4e5-0000-0000-0000-000000000001",
    "state":   "Pending",
    "traceId": "d4e5f6a7-0000-0000-0000-000000000001",
    "folderKey": "c3d4e5f6-0000-0000-0000-000000000001"
  }
}
```

Next step: `uip maestro flow jobs traces <jobKey> --folder-key <folder-key>` to stream execution or `uip maestro flow jobs status <jobKey>` to poll. With `--wait`, the command keeps polling after this output until the job reaches a terminal state.

---

## uip maestro flow process settings

Get or update a process's runtime settings.

### uip maestro flow process settings get

#### Arguments

- `<process-key>` *(required)* — process definition key.

#### Options

- `-f, --folder-key <key>` *(required)*

#### Data shape

`Code: "ProcessSettingsGet"`, `Data` is the process settings object.

### uip maestro flow process settings set

#### Arguments

- `<process-key>` *(required)*

#### Options

| Option | Description |
|---|---|
| `-f, --folder-key <key>` | *(required)* Folder key (GUID). |
| `--inputs <value>` | Settings payload as a JSON string, an `@file` path, or piped via stdin. |

#### Data shape

`Code: "ProcessSettingsSet"`.

## uip maestro flow process variable-tags

List, tag, and untag the variables that Flow process instances can be filtered by. The commands read the variables that the deployed process version declares and save the whole selection in one write.

Flow instances can be filtered by these values only on tenants that have Flow variable filtering enabled.

The three commands share these arguments and options:

- `<process-key>` *(required)* — process key (GUID), the `releaseKey` value that `process list` returns.
- `-f, --folder-key <key>` *(required)* — folder key (GUID).
- `--process-version <version>` — process version whose variables are offered. Default: the version that new instances run.

`create` and `delete` name a variable as `<name>`, `<element>.<name>`, or `<element>.<name>.<field>`, or by the `Id` that `list` returns. A name that matches more than one variable fails with `ErrorCode: "invalid_argument"` and lists the matching IDs. A name that matches no variable fails with `ErrorCode: "not_found"`.

### uip maestro flow process variable-tags list

List the variables that the process offers for tagging, and which of them are tagged.

#### Example

```bash
uip maestro flow process variable-tags list e5f6a7b8-0000-0000-0000-000000000001 --folder-key c3d4e5f6-0000-0000-0000-000000000001
```

#### Data shape

```json
{
  "Code": "ProcessVariableTagsList",
  "Data": [
    {
      "Element": "Review claim",
      "Variable": "claimAmount",
      "Id": "Task_Review.claimAmount",
      "Tagged": true,
      "Label": "Claim amount",
      "Stale": false,
      "Note": ""
    }
  ]
}
```

`Stale` is `true` for a saved variable that this version of the process no longer declares. `Note` says why a variable can't be tagged, when that is the case. A process version with no variables to tag returns `Data: []`.

### uip maestro flow process variable-tags create

Tag variables so that instances can be filtered by them.

#### Options

| Option | Description |
|---|---|
| `--variables <variable...>` | Variables to tag, each as `<variable>` or `<variable>=<label>`. Without `=<label>`, the variable gets a default label. Labels are unique within a process. |
| `--all` | Tag every variable that can be tagged. |
| `--dry-run` | Show the result without saving it. |

Pass `--variables` or `--all`. Passing both, or neither, fails with `Result: "ValidationError"` and exit code `3`.

#### Example

```bash
uip maestro flow process variable-tags create e5f6a7b8-0000-0000-0000-000000000001 --folder-key c3d4e5f6-0000-0000-0000-000000000001 \
  --variables claimAmount="Claim amount"
```

#### Data shape

`Code: "ProcessVariableTagsCreated"`. `Data` is an array of the variables that are tagged after the write, in the row shape that `list` returns. `Instructions` says what was added or relabeled, or that nothing changed. With `--dry-run`, the response has `Code: "ProcessVariableTagsDryRun"` and nothing is saved.

### uip maestro flow process variable-tags delete

Stop tagging variables. A saved variable that the process no longer declares can be untagged too.

#### Options

| Option | Description |
|---|---|
| `--variables <variable...>` | Variables to untag. |
| `--all` | Untag every variable, including the ones that the process no longer declares. Requires `--yes` or `--dry-run`. |
| `--yes` | Confirm `--all`. |
| `--dry-run` | Show the result without saving it. |

Pass `--variables` or `--all`. Passing both, or neither, or `--all` without `--yes` or `--dry-run`, fails with `Result: "ValidationError"` and exit code `3`.

#### Data shape

`Code: "ProcessVariableTagsDeleted"`. `Data` is an array of the variables that are still tagged after the write, and `[]` when none are. With `--dry-run`, the response has `Code: "ProcessVariableTagsDryRun"` and nothing is saved.

---

## uip maestro flow processes list

Tenant-wide summary of Flow processes.

### Options

| Option | Description |
|---|---|
| `--folder-key <key>` | Folder key, to keep only the processes of one folder. |
| `-l, --limit <number>` | Number of items to return (`1`–`10000`). |
| `--offset <number>` | Number of items to skip (`0`–`1000000`). Default: `0`. |
| `--status <status>` | Keep only the processes that have at least one instance in this status: `Canceling`, `Cancelled`, `Completed`, `Faulted`, `Paused`, `Pausing`, `Pending`, `Resuming`, `Retrying`, `Running`, or `Upgrading`. |

The CLI applies `--folder-key`, `--status`, `--offset`, and `--limit` to the full list that the service returns. A `--status` value outside the list fails with `Result: "ValidationError"` and exit code `3`.

### Data shape

```json
{
  "Code": "ProcessList",
  "Data": [
    {
      "processKey":     "…",
      "name":           "…",
      "folderKey":      "…",
      "latestVersion":  "…"
    }
  ]
}
```

:::note
The exact field set of each process summary is specified by the Maestro runtime and may evolve; run the command once with `--output json` against a tenant with data to see the fields you will be consuming, and pin `@uipath/cli` in CI if you parse specific fields.
:::

---

## uip maestro flow processes incidents

Get all incidents for a specific Flow process definition (not a single instance).

### Arguments

- `<process-key>` *(required)* — process definition key.

### Options

- `--folder-key <key>` *(required)* — folder key to scope the lookup.

### Data shape

```json
{
  "Code": "ProcessIncidents",
  "Data": [ /* array of process incidents */ ]
}
```

Refer to [`uip maestro flow incidents`](./uip-maestro-flow-incidents.md) for the per-incident shape.

## uip maestro flow processes diagnose

Correlate a process's summary, incidents, and error codes in one call — a quick triage command.

### Arguments

- `<process-key>` *(required)* — process definition key.

### Options

- `--folder-key <key>` *(required)*

When the process is in another folder than `--folder-key`, the command fails with `Result: "ValidationError"` and exit code `3`, and `Instructions` gives the folder key to pass.

### Data shape

```json
{
  "Code": "ProcessDiagnostics",
  "Data": {
    "ProcessKey": "…",
    "FolderKey": "…",
    "Summary": { /* this process's entry from processes/summary, or null if not found */ },
    "FaultedCount": 0,
    "RunningCount": 0,
    "Incidents": [ /* array of incidents */ ],
    "IncidentCount": 0,
    "ErrorCodes": [ /* array of error code strings */ ],
    "ErrorCodeCount": 0
  }
}
```

## uip maestro flow processes error-codes

Get the unique set of error codes seen across a process's incidents.

### Arguments

- `<process-key>` *(required)*

### Options

- `--folder-key <key>` *(required)*

### Data shape

```json
{
  "Code": "ProcessIncidentErrorCodes",
  "Data": ["Process.UnhandledException"]
}
```

## See also

- [`uip maestro flow instances`](./uip-maestro-flow-instances.md) — inspect and steer running executions
- [`uip maestro flow jobs`](./uip-maestro-flow-job.md) — traces and status for a single job
- [`uip maestro flow incidents`](./uip-maestro-flow-incidents.md) — incident summaries and details
- [Orchestrator jobs](./uip-or-jobs.md), [Orchestrator processes](./uip-or-processes.md)
- [Flow overview](./uip-maestro-flow.md)
