> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/cli/commands/integrations.md). Agents can also search and read this documentation through its [MCP server](https://developer.celigo.com/~gitbook/mcp).

# integrations

Containers that group flows, connections, and settings together. Reach for `integrations` when you need to create, clone, snapshot, or triage errors at the integration level.

**REST API**: [Integrations](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations)

```
celigo integrations <subcommand> [args] [flags]
```

Supports all [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

***

## Subcommands

| Subcommand                                              | Purpose                                                                                                                                           |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `list`                                                  | List every integration.                                                                                                                           |
| `get <id>`                                              | Fetch one integration by ID.                                                                                                                      |
| `create`                                                | Create from a JSON body (`--file <path>` or stdin).                                                                                               |
| `update <id>`                                           | Full PUT replace from a JSON body (`--file <path>` or stdin).                                                                                     |
| `set <id> <key=value>...`                               | Safe field edit: whitelisted fields via PATCH, others via GET + modify + PUT. Supports `key=file://<path>`.                                       |
| `delete <id>`                                           | Delete an integration.                                                                                                                            |
| `clone <id> <environmentId>`                            | Clone the integration (and children) into an environment.                                                                                         |
| `dependencies <id>` (alias `used-by`)                   | List resources that depend on this integration.                                                                                                   |
| `audit <id>`                                            | Show the audit log (change history) for one integration.                                                                                          |
| `flow-groups <id>`                                      | List flow groups (sections) within an integration.                                                                                                |
| `create-flow-group <id> <name>`                         | Create a flow group.                                                                                                                              |
| `delete-flow-group <id> <flowGroupingId>`               | Remove a flow group (flows in it become ungrouped).                                                                                               |
| `api-groups <id>`                                       | List API groups (sections) within an integration.                                                                                                 |
| `create-api-group <id> <name>`                          | Create an API group.                                                                                                                              |
| `delete-api-group <id> <apiGroupingId>`                 | Remove an API group. The platform keeps a group that still holds APIs: move them out first with `apis unset-group`.                               |
| `register-connections <id> <connectionIds...>`          | Register one or more connections.                                                                                                                 |
| `deregister-connections <id> <connectionIds...>`        | Deregister one or more connections.                                                                                                               |
| `register-lookup-caches <id> <lookupCacheIds...>`       | Register one or more lookup caches.                                                                                                               |
| `deregister-lookup-caches <id> <lookupCacheIds...>`     | Deregister one or more lookup caches.                                                                                                             |
| `register-topics <id> <topicIds...>`                    | Register one or more Event Streams topics (`_registeredTopicIds`). Added in celigo-cli 2026.9.6.                                                  |
| `deregister-topics <id> <topicIds...>`                  | Deregister one or more topics that no step of the integration binds; the topics and their messages are untouched. Added in celigo-cli 2026.9.6.   |
| `register-knowledge-bases <id> <knowledgeBaseIds...>`   | Register one or more knowledge bases (`_registeredKnowledgeBaseIds`). Added in celigo-cli 2026.11.2.                                              |
| `deregister-knowledge-bases <id> <knowledgeBaseIds...>` | Deregister one or more knowledge bases; the knowledge bases, their files, and their indexed content are untouched. Added in celigo-cli 2026.11.2. |
| `download <id>`                                         | Download the integration as a ZIP.                                                                                                                |
| `errors <id>`                                           | Summarize open errors per flow — one row for every flow that has run.                                                                             |
| `settings <id>`                                         | List an Integration App's settings-form fields, flat. Added in celigo-cli 2026.9.1.                                                               |
| `refresh-settings-metadata <id>`                        | Refresh the options behind an Integration App settings field (the UI's Refresh button). Added in celigo-cli 2026.9.1.                             |
| `persist-settings <id> <fieldName>=<value>…`            | Save Integration App settings through the app's connector code (the UI's Save button). Added in celigo-cli 2026.9.1.                              |
| `revisions <id>`                                        | List revisions (snapshots, pulls, reverts).                                                                                                       |
| `revision <id> <revisionId>`                            | Fetch a single revision.                                                                                                                          |
| `revision-errors <id> <revisionId>`                     | List the errors recorded while a pull or revert revision was applied — why it ended `failed`. Added in celigo-cli 2026.9.6.                       |
| `create-snapshot <id>`                                  | Create a snapshot revision.                                                                                                                       |
| `revision-diff <id> <revisionId>`                       | Show the before/after diff of a pull or revert revision, in progress or completed.                                                                |

***

## `celigo integrations list`

List every integration in the account. Rows are projected to `_id`, `name`, and the table columns by default; `--fields all` returns complete documents.

**Signature**

```bash
celigo integrations list [--fields <spec>] [--limit <n>]
```

**Arguments**

*None.*

**Flags**

| Flag              | Type    | Default   | Description                                                                                                                                                                                                                                                                                  |
| ----------------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--fields <spec>` | string  | `default` | Fields to request per row: `default` (`_id`, `name`, and the table columns), `all` (complete documents), or a comma-separated field list (dot notation allowed). See [field projection](https://developer.celigo.com/cli/getting-started/global-flags.md#field-projection-on-list-commands). |
| `--limit <n>`     | integer | —         | Return at most `<n>` rows, fetching a single page.                                                                                                                                                                                                                                           |

Default table columns: `_id`, `name`, `mode`, `install`, `lastModified`. Since celigo-cli 2026.10.1, `--fields a,b,…` with `--format table` draws `_id`, `name`, and the fields you name instead.

**Example**

```bash
celigo integrations list --format table
```

**Corresponds to**: [`GET /v1/integrations`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations) (operationId: `listIntegrations`).

***

## `celigo integrations get`

Fetch a single integration by ID.

**Signature**

```bash
celigo integrations get <id>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 --format json | jq '{name,mode}'
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) (operationId: `getIntegration`).

***

## `celigo integrations create`

Create an integration from a JSON body. Read the body from a file with `-f, --file` (recommended), or pipe it on stdin.

Since celigo-cli 2026.10.1, the body is checked before it is sent. It is validated against the published API schemas — the pack [`celigo lint`](https://developer.celigo.com/cli/local-tree/lint-and-resolve.md#celigo-lint) uses: a field the spec does not document, a wrong JSON type, or a value outside an enum prints a `warning` line on stderr, and the integration is still created. Refused before any request, with no override: a body that is not a JSON object and masked `"******"` credential placeholders.

**Signature**

```bash
celigo integrations create --file <path>
celigo integrations create < integration.json     # or pipe on stdin
```

**Arguments**

*None.*

**Flags**

| Flag                | Type   | Default | Description                                                                                                  |
| ------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------ |
| `-f, --file <path>` | string | —       | Read the JSON body from a file instead of stdin (`--file -` also means stdin). Added in celigo-cli 2026.6.1. |

**Request body**

A JSON object matching the `POST /v1/integrations` request schema.

**Example**

```bash
celigo integrations create --file ./integration.json
cat integration.json | celigo integrations create
```

**Corresponds to**: [`POST /v1/integrations`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#post-v1-integrations) (operationId: `createIntegration`).

***

## `celigo integrations update`

Full PUT replace of an integration from a JSON body (`--file <path>` or stdin). Omitted fields are erased.

> ⚠️ **`PUT` fully replaces the integration.** Any field omitted from the body is erased. Prefer `set` for targeted edits, or round-trip via `get` + `jq` before `update`.

Since celigo-cli 2026.10.1, the body is checked against the published API schemas before the PUT (when it has findings, the current integration is read first, so only what the update adds or changes is reported); findings are stderr warnings and never block. A body that is not a JSON object is refused before any request. On an Integration App's integration (`_connectorId` set), the platform answers `200` and keeps its own value for every field the app locks: each field the update changed whose reply still holds the previous value is named on stderr — `celigo: integrations update: the platform kept its own value for <fields> — the Integration App locks them` — and the command exits `1`.

**Signature**

```bash
celigo integrations update <id> --file <path>
celigo integrations update <id> < body.json     # or pipe on stdin
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

| Flag                | Type   | Default | Description                                                                                                                                                                                                                                                |
| ------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-f, --file <path>` | string | —       | Read the JSON body from a file instead of stdin (`--file -` also means stdin). Added in celigo-cli 2026.6.1.                                                                                                                                               |
| `--force`           | bool   | `false` | Submit even if the body contains masked credential values (`"******"`) copied from a `get`. Since celigo-cli 2026.10.1, a masked value is four or more asterisks and nothing else: a lone `*` (a wildcard, for example) is a value and needs no `--force`. |

**Request body**

A JSON object matching the `PUT /v1/integrations/{_id}` request schema.

**Example**

```bash
celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 --format json \
  | jq '.name = "renamed"' \
  | celigo integrations update 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`PUT /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id) (operationId: `updateIntegration`).

***

## `celigo integrations set`

Safe field edit. The fields on the integrations PATCH whitelist are applied via an atomic `PATCH`: `apiGroupings`, `flowGroupings`, and `settings`, and since celigo-cli 2026.11.2 `tag`, `celigoAgentAutoRunMode`, `iLMIgnore`, `version`, and `updateInProgress`, which used to go through a GET + PUT. A `set` sent as one PATCH prints the PATCH's answer; when that answer has no body, stdout stays empty, stderr says `Updated integration <id>.`, and the exit code is `0`. Other fields go through GET + in-memory mutation + PUT. Values are auto-parsed as JSON (`disabled=false` is a boolean, `key=null` removes the field), with a fallback to the literal string when the value isn't valid JSON. Dot notation and array indexing are supported.

A `key=file://<path>` value loads that field's value from a file instead of the command line. A JSON file parses to an object; anything else is read as a literal string. A leading `~` and paths relative to the current directory are supported. Added in celigo-cli 2026.6.1.

Since celigo-cli 2026.10.1:

* `settings=null`, `flowGroupings=null`, and `apiGroupings=null` clear the field through a GET + PUT: the integrations PATCH takes only `replace` on those fields, and the `remove` the CLI used to send was refused. Since celigo-cli 2026.11.2, `tag=null`, `celigoAgentAutoRunMode=null`, and `iLMIgnore=null` remove the field with one `PATCH`, while `version=null` and `updateInProgress=null` clear it through a GET + PUT.
* A key holding a backslash — a shell's escape that reached the CLI — is refused before any request instead of writing a field named after it: `Invalid key 'settings\.region': a backslash is not part of a field name — a dot separates path segments and needs no escaping (platform field names never contain one). Did you mean 'settings.region'?`
* `operate` mode refuses every field — an integration has no operational field — where a field name such as `disabled` used to open a GET + PUT. `set` needs `full` mode. See [Profiles & regions](https://developer.celigo.com/cli/getting-started/profiles.md#permission-modes).
* The assigned values (PATCH) or the document a GET + PUT would send are checked against the published API schemas; findings are stderr warnings and never block.
* After a GET + PUT, a field the server's reply still holds at its previous value prints `not stored <field> the server answered the PUT but still holds its previous value …` on stderr, and the command exits `1`. On an Integration App's integration (`_connectorId` set), one stderr line names the fields the app kept instead — `celigo: integrations set: the platform kept its own value for <fields> — the Integration App locks them` — and the command exits `1`.

**Signature**

```bash
celigo integrations set <id> key=value [key2=value2 ...]
```

**Arguments**

| Argument                 | Type              | Required | Description                                                                                                                            |
| ------------------------ | ----------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `<id>`                   | string            | Yes      | Integration ID.                                                                                                                        |
| `key=value` (repeatable) | string (variadic) | Yes      | One or more assignments, e.g. `name=Prod` or `settings.general.notifyEmail=null`. Use `key=file://<path>` to load a value from a file. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations set 5f83a9b2c7d3e8f1a2b3c4d5 'name=Shopify -> NetSuite (v2)'
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) + [`PUT /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id) (operationIds: `getIntegration`, `updateIntegration`), or `PATCH /v1/integrations/{_id}` for whitelisted fields.

***

## `celigo integrations delete`

Delete an integration by ID.

> ⚠️ **Deleting an integration is destructive.** The integration and the flows it contains are removed. Run `dependencies` first to confirm nothing relies on it.

The platform refuses the delete while the integration still owns an alias that points at another resource. Since celigo-cli 2026.10.1, the error then says how to drop the alias first: `celigo integrations set <id> aliases=[]` removes every alias of the integration; to drop just one, edit `aliases` and `update` the integration.

**Signature**

```bash
celigo integrations delete <id> [--yes]
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

| Flag          | Type | Default | Description                               |
| ------------- | ---- | ------- | ----------------------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the interactive confirmation prompt. |

**Example**

```bash
celigo integrations delete 5f83a9b2c7d3e8f1a2b3c4d5 --yes
```

**Corresponds to**: [`DELETE /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#delete-v1-integrations-_id) (operationId: `deleteIntegration`).

***

## `celigo integrations clone`

Clone an integration (and all child resources) into a target environment.

Same-environment clones auto-build a self-map from the source integration's `_registeredConnectionIds`. For cross-environment clones, pass an explicit `connectionMap` on stdin or with `--file` so source connections are remapped to target-environment connections. A map you pass must name every connection registered to the source integration: the platform refuses a map that leaves one out with `422`.

The clone is standalone. It joins the source's clone family and records the source as `_sourceId`, but it isn't lifecycle-linked to the source. An ILM pull between the two (run in the integrator.io UI, not `celigo pull`) reports no changes.

Since celigo-cli 2026.10.1, the clone is created in `<environmentId>`: the CLI sends it as `envId`, the field the clone endpoint reads. It used to send `_envId`, which the API ignores, so every clone landed in the profile's own environment and a map to target-environment connections failed with `422 invalid_connectionId`. Also since 2026.10.1, a body that is not a JSON object is refused before any request (such a body used to be ignored); a body piped without `--file` gets one second to start arriving and is then read to its end, while `--file -` waits until the pipe closes; and a clone is never resent after a timeout or a `5xx`, so a slow clone that landed is not created twice. Since celigo-cli 2026.11.1, a clone is not resent after a `429` either; earlier releases retried it. Since celigo-cli 2026.11.2, a blank `--name` or `--stack-id` value, such as an unset shell variable, is refused before any request.

An integration that holds hooks or wrapper connections running on a [stack](https://developer.celigo.com/cli/commands/stacks.md) clones only when the request names one. Without it, the platform refuses the clone with `400 stack_not_found`. Since celigo-cli 2026.10.2, `--stack-id <id>` sends the stack as `_stackId`. A string `_stackId` in the piped body is sent too, and `--stack-id` wins when both are given.

**Signature**

```bash
celigo integrations clone <id> <environmentId> [--name <name>] [-f <path>] [--stack-id <id>]
```

**Arguments**

| Argument          | Type   | Required | Description            |
| ----------------- | ------ | -------- | ---------------------- |
| `<id>`            | string | Yes      | Source integration ID. |
| `<environmentId>` | string | Yes      | Target environment ID. |

**Flags**

| Flag                | Type   | Default                 | Description                                                                                                                                                                                                                                                                               |
| ------------------- | ------ | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--name <name>`     | string | `Clone - <source name>` | Name for the cloned integration.                                                                                                                                                                                                                                                          |
| `-f, --file <path>` | string | —                       | Read the `connectionMap` body from a file instead of stdin (`-` waits for stdin to close; a body piped without `--file` must start arriving within 1s). Added in celigo-cli 2026.10.1.                                                                                                    |
| `--stack-id <id>`   | string | —                       | Stack the copy's hooks and wrapper connections run on (sent as `_stackId`). Required when the integration's hooks or wrapper connections run on a stack: without one the platform answers `400 stack_not_found`. Wins over a `_stackId` in the piped body. Added in celigo-cli 2026.10.2. |

**Request body**

A body on stdin or in `--file` is optional. It carries the connection map for cross-environment remapping, which must name every connection registered to the source integration:

```json
{"connectionMap":{"sourceConnId":"targetConnId"}}
```

**Example**

```bash
# Same environment: the CLI maps each registered connection to itself
celigo integrations clone 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e1 --name "Prod clone"

# Another environment, with the source → target connection map in a file
celigo integrations clone 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e2 --file connection-map.json

# An integration whose hooks run on a stack
celigo integrations clone 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e1 --stack-id 60a1b2c3d4e5f6a7b8c9d0e3
```

**Corresponds to**: [`POST /v1/integrations/{_id}/clone`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#post-v1-integrations-_id-clone) (operationId: `cloneIntegration`), with `name`, `connectionMap`, and the target environment as `envId` in the body, plus `_stackId` when given.

***

## `celigo integrations flow-groups`

List flow groups (sections) defined inside an integration. Reads from the integration's `flowGroupings` array. Since celigo-cli 2026.10.1, an integration with no flow groups prints `[]` in JSON output (stdout used to be empty) and `No flow groups in this integration.` in a table.

**Signature**

```bash
celigo integrations flow-groups <id>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations flow-groups 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) (operationId: `getIntegration`) — reads the `flowGroupings` field.

***

## `celigo integrations create-flow-group`

Create a new flow group inside an integration. Implemented as a GET + PUT that appends to `flowGroupings`.

**Signature**

```bash
celigo integrations create-flow-group <id> <name>
```

**Arguments**

| Argument | Type   | Required | Description                          |
| -------- | ------ | -------- | ------------------------------------ |
| `<id>`   | string | Yes      | Integration ID.                      |
| `<name>` | string | Yes      | Display name for the new flow group. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations create-flow-group 5f83a9b2c7d3e8f1a2b3c4d5 "Inbound orders"
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) + [`PUT /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id) (operationIds: `getIntegration`, `updateIntegration`).

***

## `celigo integrations delete-flow-group`

Remove a flow group from an integration. Implemented as a GET + PUT that drops the matching entry from `flowGroupings`. The flows that were in the group are **not** deleted — they become ungrouped.

Since celigo-cli 2026.10.1, the command moves the group's flows out of it first, then removes the group, and fails when the platform's reply still lists the group. The platform keeps a group a flow is still in and answers `200`, so the command used to print `Deleted` while the group stayed. The failure names the way out: `The platform kept flow group <flowGroupingId> in integration <id>: it answered the PUT but still lists the group. List the flows still in it with 'celigo flows list --integration <id> --fields _id,name,_flowGroupingId', move them out with 'celigo flows unset-group <flowId>', and delete the group again.` Requires `full` mode.

**Signature**

```bash
celigo integrations delete-flow-group <id> <flowGroupingId> [--yes]
```

**Arguments**

| Argument           | Type   | Required | Description                            |
| ------------------ | ------ | -------- | -------------------------------------- |
| `<id>`             | string | Yes      | Integration ID.                        |
| `<flowGroupingId>` | string | Yes      | Flow group `_id` (from `flow-groups`). |

**Flags**

| Flag          | Type | Default | Description                   |
| ------------- | ---- | ------- | ----------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the confirmation prompt. |

**Example**

```bash
celigo integrations delete-flow-group 5f83a9b2c7d3e8f1a2b3c4d5 fg_abc123 --yes
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id), `GET /v1/integrations/{_id}/flows` to find the group's flows, [`PUT /v1/flows/updateFlowGrouping`](https://developer.celigo.com/api/api-reference/integrations-and-flows/flows) with `_flowGroupingId: null` when the group holds any, then [`PUT /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id) (operationIds: `getIntegration`, `updateIntegration`).

***

> **Assigning flows to a group** is a flows operation, not an integration one — see [`flows set-group`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-set-group). `create-flow-group`/`delete-flow-group` define groups on the integration; `flows set-group` sets which flows belong to one.

***

## `celigo integrations api-groups` / `create-api-group` / `delete-api-group`

The API-grouping equivalents of the flow-group commands above. `apiGroupings` is a separate array on the integration that works identically to `flowGroupings`, but for API resources. All three use the same GET → mutate → PUT pattern on the integration. Since celigo-cli 2026.10.1, `api-groups` on an integration with no API groups prints `[]` in JSON output (stdout used to be empty) and `No API groups in this integration.` in a table.

`delete-api-group` differs from `delete-flow-group` in one way: it does not move the group's APIs out first. The platform keeps a group that still holds APIs and answers success. Since celigo-cli 2026.11.2, the command fails when the platform's reply still lists the group, where it used to report the group deleted: `The platform kept API group <apiGroupingId> in integration <id>: it answered the PUT but still lists the group, which it does while APIs are in it. List them with 'celigo apis list --fields _id,name,_integrationId,_apiGroupingId', move them out with 'celigo apis unset-group <apiId>...', and delete the group again.`

**Signatures**

```bash
celigo integrations api-groups <id>
celigo integrations create-api-group <id> <name>
celigo integrations delete-api-group <id> <apiGroupingId> [--yes]
```

**Arguments**

| Argument          | Type   | Required                 | Description                          |
| ----------------- | ------ | ------------------------ | ------------------------------------ |
| `<id>`            | string | Yes                      | Integration ID.                      |
| `<name>`          | string | Yes (`create-api-group`) | Display name for the new API group.  |
| `<apiGroupingId>` | string | Yes (`delete-api-group`) | API group `_id` (from `api-groups`). |

**Example**

```bash
celigo integrations api-groups 5f83a9b2c7d3e8f1a2b3c4d5
celigo integrations create-api-group 5f83a9b2c7d3e8f1a2b3c4d5 "Public endpoints"
celigo integrations delete-api-group 5f83a9b2c7d3e8f1a2b3c4d5 ag_abc123 --yes
```

**Corresponds to**: `api-groups` reads [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id); `create`/`delete` GET then [`PUT /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id) (operationIds: `getIntegration`, `updateIntegration`).

> **Assigning APIs to a group** is an apis operation — see [`apis set-group`](https://developer.celigo.com/cli/commands/apis.md#celigo-apis-set-group-unset-group). `create-api-group`/`delete-api-group` define groups on the integration; `apis set-group` sets which APIs belong to one.

***

## `celigo integrations register-connections`

Register one or more connections to an integration via the dedicated registration endpoint.

**Signature**

```bash
celigo integrations register-connections <id> <connectionIds...>
```

**Arguments**

| Argument             | Type              | Required | Description                 |
| -------------------- | ----------------- | -------- | --------------------------- |
| `<id>`               | string            | Yes      | Integration ID.             |
| `<connectionIds...>` | string (variadic) | Yes      | One or more connection IDs. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations register-connections 5f83a9b2c7d3e8f1a2b3c4d5 connA connB
```

**Corresponds to**: [`PUT /v1/integrations/{_id}/connections/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#put-v1-integrations-_id-connections-register).

***

## `celigo integrations deregister-connections`

Deregister one or more connections from an integration. Iterates a `DELETE` per connection ID. Since celigo-cli 2026.11.2, when the platform refuses one of several ids, a note on stderr names it, the ids deregistered before it, and the ids not tried.

**Signature**

```bash
celigo integrations deregister-connections <id> <connectionIds...> [--yes]
```

**Arguments**

| Argument             | Type              | Required | Description                 |
| -------------------- | ----------------- | -------- | --------------------------- |
| `<id>`               | string            | Yes      | Integration ID.             |
| `<connectionIds...>` | string (variadic) | Yes      | One or more connection IDs. |

**Flags**

| Flag          | Type | Default | Description                               |
| ------------- | ---- | ------- | ----------------------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the interactive confirmation prompt. |

**Example**

```bash
celigo integrations deregister-connections 5f83a9b2c7d3e8f1a2b3c4d5 connA connB --yes
```

**Corresponds to**: [`DELETE /v1/integrations/{_id}/connections/{_connectionId}/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#delete-v1-integrations-_id-connections-_connectionid-register) (one call per connection).

***

## `celigo integrations register-lookup-caches`

Register one or more lookup caches to an integration via the dedicated registration endpoint — the exact mirror of `register-connections`. Requires `full` mode. Added in celigo-cli 2026.8.7.

Registration also adds an entry to the integration's `aliases[]` for each cache (a slug of its name) — the handle the integration's steps reference the cache by.

**Signature**

```bash
celigo integrations register-lookup-caches <id> <lookupCacheIds...>
```

**Arguments**

| Argument              | Type              | Required | Description                   |
| --------------------- | ----------------- | -------- | ----------------------------- |
| `<id>`                | string            | Yes      | Integration ID.               |
| `<lookupCacheIds...>` | string (variadic) | Yes      | One or more lookup cache IDs. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations register-lookup-caches 5f83a9b2c7d3e8f1a2b3c4d5 cacheA cacheB
```

**Corresponds to**: [`PUT /v1/integrations/{_id}/lookupcaches/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations) — a batch `PUT` with the raw id-array body.

***

## `celigo integrations deregister-lookup-caches`

Deregister one or more lookup caches from an integration; the caches themselves and their data are untouched. Iterates a `DELETE` per cache ID, like `deregister-connections`. Requires `full` mode. Added in celigo-cli 2026.8.7.

Deregistering fails with `400` while an alias still references a cache — **including the alias that `register-lookup-caches` itself creates**. Remove the alias first: edit the integration's `aliases[]` via `integrations set`. Since celigo-cli 2026.11.2, when the platform refuses one of several ids, a note on stderr names it, the ids deregistered before it, and the ids not tried.

**Signature**

```bash
celigo integrations deregister-lookup-caches <id> <lookupCacheIds...> [--yes]
```

**Arguments**

| Argument              | Type              | Required | Description                   |
| --------------------- | ----------------- | -------- | ----------------------------- |
| `<id>`                | string            | Yes      | Integration ID.               |
| `<lookupCacheIds...>` | string (variadic) | Yes      | One or more lookup cache IDs. |

**Flags**

| Flag          | Type | Default | Description                               |
| ------------- | ---- | ------- | ----------------------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the interactive confirmation prompt. |

**Example**

```bash
# Remove the alias register-lookup-caches created, then deregister
celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 --jq '.aliases'
celigo integrations set 5f83a9b2c7d3e8f1a2b3c4d5 'aliases[0]=null'
celigo integrations deregister-lookup-caches 5f83a9b2c7d3e8f1a2b3c4d5 cacheA --yes
```

**Corresponds to**: [`DELETE /v1/integrations/{_id}/lookupcaches/{_lookupCacheId}/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations) (one call per cache).

***

## `celigo integrations register-topics`

Register one or more Event Streams topics to an integration — adds them to its `_registeredTopicIds` so flows in the integration can bind topic exports and imports to them. A batch `PUT` with the raw id-array body, like `register-lookup-caches`: duplicates and already-registered ids are collapsed, and every id must name a topic in this account or nothing is registered. Unlike lookup caches, registering a topic adds no `aliases[]` entry. Requires `full` mode. Added in celigo-cli 2026.9.6.

A topic can also be registered at creation — [`topics create`](https://developer.celigo.com/cli/commands/topics.md#celigo-topics-create) with `__integrationIds` in the body — and registration happens automatically when a flow in the integration is saved with a step bound to the topic. List what is registered with [`topics list --integration <id>`](https://developer.celigo.com/cli/commands/topics.md#celigo-topics-list).

**Signature**

```bash
celigo integrations register-topics <id> <topicIds...>
```

**Arguments**

| Argument        | Type              | Required | Description            |
| --------------- | ----------------- | -------- | ---------------------- |
| `<id>`          | string            | Yes      | Integration ID.        |
| `<topicIds...>` | string (variadic) | Yes      | One or more topic IDs. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations register-topics 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e1 60a1b2c3d4e5f6a7b8c9d0e2
celigo topics list --integration 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`PUT /v1/integrations/{_id}/topics/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations) — a batch `PUT` with the raw id-array body.

***

## `celigo integrations deregister-topics`

Deregister one or more topics from an integration. The topics and their retained messages are untouched — only the integration's `_registeredTopicIds` changes. Iterates a `DELETE` per topic ID, like `deregister-connections`. Prompts for confirmation unless `-y` is supplied. Requires `full` mode. Added in celigo-cli 2026.9.6.

Deregistering fails when a topic is not registered on the integration, or while any flow step in the integration — an export or import with `topic._topicId` set — still binds it. Repoint or delete those steps first, then retry. Saving a flow of the integration with a step bound to the topic registers the topic again. Since celigo-cli 2026.11.2, when the platform refuses one of several ids, a note on stderr names it, the ids deregistered before it, and the ids not tried.

**Signature**

```bash
celigo integrations deregister-topics <id> <topicIds...> [--yes]
```

**Arguments**

| Argument        | Type              | Required | Description            |
| --------------- | ----------------- | -------- | ---------------------- |
| `<id>`          | string            | Yes      | Integration ID.        |
| `<topicIds...>` | string (variadic) | Yes      | One or more topic IDs. |

**Flags**

| Flag          | Type | Default | Description                               |
| ------------- | ---- | ------- | ----------------------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the interactive confirmation prompt. |

**Example**

```bash
celigo integrations deregister-topics 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e1 --yes
```

**Corresponds to**: [`DELETE /v1/integrations/{_id}/topics/{_topicId}/register`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations) (one call per topic).

***

## `celigo integrations register-knowledge-bases`

Register one or more knowledge bases to an integration — adds them to its `_registeredKnowledgeBaseIds` so the AI agent and guardrail steps in the integration can attach them. A batch `PUT` with the raw id-array body, like `register-topics`: every id must name an existing knowledge base or nothing is registered, and a knowledge base that is already registered is not duplicated. Requires `full` mode. Added in celigo-cli 2026.11.2.

A knowledge base can also be registered at creation — [`knowledge-bases create`](https://developer.celigo.com/cli/commands/knowledge-bases.md#celigo-knowledge-bases-create) with `__integrationIds` in the body — and saving a flow of the integration whose AI agent attaches the knowledge base registers it too. List what is registered with [`knowledge-bases list --integration <id>`](https://developer.celigo.com/cli/commands/knowledge-bases.md#celigo-knowledge-bases-list).

**Signature**

```bash
celigo integrations register-knowledge-bases <id> <knowledgeBaseIds...>
```

**Arguments**

| Argument                | Type              | Required | Description                     |
| ----------------------- | ----------------- | -------- | ------------------------------- |
| `<id>`                  | string            | Yes      | Integration ID.                 |
| `<knowledgeBaseIds...>` | string (variadic) | Yes      | One or more knowledge base IDs. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations register-knowledge-bases 5f83a9b2c7d3e8f1a2b3c4d5 64f1a2b3c4d5e6f7a8b9c0d1 64f1a2b3c4d5e6f7a8b9c0d2
celigo knowledge-bases list --integration 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: `PUT /v1/integrations/{_id}/knowledgebases/register` — a batch `PUT` with the raw id-array body.

***

## `celigo integrations deregister-knowledge-bases`

Deregister one or more knowledge bases from an integration. The knowledge bases, their files, and their indexed content are untouched — only the integration's `_registeredKnowledgeBaseIds` changes. Iterates a `DELETE` per knowledge base ID, like `deregister-connections`. Prompts for confirmation unless `-y` is supplied. Requires `full` mode. Added in celigo-cli 2026.11.2.

The platform refuses the deregistration with `400` for a knowledge base that is not registered on the integration, or while a step of the integration uses an AI agent or guardrail that attaches it. Detach the knowledge base from that AI agent or guardrail, or remove the step, then retry.

With several ids, the ids before a refused one are already deregistered when the command fails. A note on stderr names the refused id, the ids deregistered before it, and the ids not tried:

```
Note: 64f1a2b3c4d5e6f7a8b9c0d2 was not deregistered from integration 5f83a9b2c7d3e8f1a2b3c4d5. 64f1a2b3c4d5e6f7a8b9c0d1 was deregistered before it. 64f1a2b3c4d5e6f7a8b9c0d3 was not tried.
```

**Signature**

```bash
celigo integrations deregister-knowledge-bases <id> <knowledgeBaseIds...> [--yes]
```

**Arguments**

| Argument                | Type              | Required | Description                     |
| ----------------------- | ----------------- | -------- | ------------------------------- |
| `<id>`                  | string            | Yes      | Integration ID.                 |
| `<knowledgeBaseIds...>` | string (variadic) | Yes      | One or more knowledge base IDs. |

**Flags**

| Flag          | Type | Default | Description                               |
| ------------- | ---- | ------- | ----------------------------------------- |
| `-y`, `--yes` | bool | `false` | Skip the interactive confirmation prompt. |

**Example**

```bash
celigo integrations deregister-knowledge-bases 5f83a9b2c7d3e8f1a2b3c4d5 64f1a2b3c4d5e6f7a8b9c0d1 --yes
```

**Corresponds to**: `DELETE /v1/integrations/{_id}/knowledgebases/{_knowledgeBaseId}/register` (one call per knowledge base).

***

## `celigo integrations download`

Download the integration as a ZIP. Resolves the signed URL from the template endpoint and writes the file locally. Rejects Integration App installations (non-standalone integrations).

Since celigo-cli 2026.10.1, an existing destination file is refused unless you pass `--force`, and so are a directory and a path whose directory does not exist — before any request when `-o` names the file, and before the template is requested when the name comes from the integration: `./backup.zip already exists; refusing to overwrite it. Pass --force to replace it, or choose another destination.` A leading `~` in `-o` means your home directory, and the archive is staged in a temporary file beside the target and renamed into place, so a failure mid-write never leaves a truncated archive.

**Signature**

```bash
celigo integrations download <id> [-o <path>] [--force]
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

| Flag                    | Type   | Default             | Description                                                                       |
| ----------------------- | ------ | ------------------- | --------------------------------------------------------------------------------- |
| `-o`, `--output <path>` | string | `<name>.zip` in CWD | Destination file path.                                                            |
| `--force`               | bool   | `false`             | Replace the destination file if it already exists. Added in celigo-cli 2026.10.1. |

**Example**

```bash
celigo integrations download 5f83a9b2c7d3e8f1a2b3c4d5 -o ./backup.zip
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) + [`GET /v1/integrations/{_id}/template`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations) (operationId for the first: `getIntegration`).

***

## `celigo integrations errors`

Summarize open errors per flow across an integration (paginated via `nextPageURL` in the body): one `{_flowId, numError, lastErrorAt}` row for every flow that has run. A row with `numError` `0` and no `lastErrorAt` is a flow whose runs never erred or whose errors were all resolved. A flow that has never run has no row. For the error records themselves, use [`flows errors <flowId> <exportOrImportId>`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-errors). Since celigo-cli 2026.10.1, the table shows those columns — `_flowId`, `numError`, `lastErrorAt` — instead of error-record columns the summary does not carry.

**Signature**

```bash
celigo integrations errors <id>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations errors 5f83a9b2c7d3e8f1a2b3c4d5 --format json
```

**Corresponds to**: [`GET /v1/integrations/{_id}/errors`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id-errors) (operationId: `listIntegrationErrors`).

***

## Integration App settings

An Integration App's settings form is driven by the app's connector code: the form is read from the integration document, and every save goes through the connector, which validates the values, rewrites the integration's settings, and may reconfigure the app's flows. Three commands, added in celigo-cli 2026.9.1, cover that form end to end — `settings` reads it, `refresh-settings-metadata` refreshes one field's options, and `persist-settings` saves values — through the UI's own routes. Since celigo-cli 2026.11.2, the three commands refuse a blank value for `--store`, `--section`, `--field-name`, `--type`, or `--file` — an unset shell variable, for example — before any request.

> ⚠️ **A plain `set` or `update` on `settings` bypasses the connector.** Writing an Integration App's `settings` with `integrations set` or `integrations update` skips the app's validation and the flow reconfiguration its connector performs. Use `persist-settings` instead. For the same reason `celigo push` never PUTs an Integration App's `integration.json` — its documents are withheld — and these commands are the write path for its settings. Since celigo-cli 2026.10.1, `celigo push --allow-connector-settings` saves the settings values edited in that file through the same connector route. See [push](https://developer.celigo.com/cli/local-tree/push.md).

***

## `celigo integrations settings`

List an Integration App's settings-form fields, flat, from the integration document. Each row carries `name` (the handle `refresh-settings-metadata` and `persist-settings` take), `label`, `type`, the `value` the document holds (a static map's `{map, default, allowFailures}`, or `{value: [rows]}` for one with `optionsMap`), the `section` path, `store` and `storeLabel` on a multi-store app, `flowId` for a flow's own settings, `refresh` — `[]` (no Refresh button), `["options"]` (refresh without `--type`), or a static map's `["extracts", "generates"]` or column ids (the `--type` values) — and the stored `options` as `[value, label]` pairs (usually only the current value; refresh for the full list).

The `type`, not the value held, decides what [`persist-settings`](#celigo-integrations-persist-settings) sends: a text field can hold a number and still takes a string. Since celigo-cli 2026.11.2, a static map with `optionsMap` lists its rows as `{value: [rows]}`, the object a save takes; earlier releases listed `{}`.

The command refuses a standalone integration: its settings are plain document fields, so use `get` and `set` there. Works in `read` mode. Since celigo-cli 2026.10.1, a filter that matches nothing prints `[]` in JSON output.

**Signature**

```bash
celigo integrations settings <id> [--store <id>] [--section <text>] [--field-name <name>] [--refreshable]
```

**Arguments**

| Argument | Type   | Required | Description                                        |
| -------- | ------ | -------- | -------------------------------------------------- |
| `<id>`   | string | Yes      | Integration ID of an Integration App installation. |

**Flags**

| Flag                  | Type    | Default | Description                                                                                                                                                                |
| --------------------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--store <id>`        | string  | —       | Only fields of this store (multi-store apps).                                                                                                                              |
| `--section <text>`    | string  | —       | Only fields whose section path contains this text.                                                                                                                         |
| `--field-name <name>` | string  | —       | Print one field's full definition (options, extracts, …). On a multi-store app a name several stores repeat must be scoped with `--store`; without it the name is refused. |
| `--refreshable`       | boolean | `false` | Only fields whose options can be refreshed.                                                                                                                                |

**Example**

```bash
# Every field of the form, as a table
celigo integrations settings 5f83a9b2c7d3e8f1a2b3c4d5 --format table

# One store's fields in one section
celigo integrations settings 5f83a9b2c7d3e8f1a2b3c4d5 --store 6a1b2c3d4e5f6a7b8c9d0e1f --section "Refund"

# The full definition of one field
celigo integrations settings 5f83a9b2c7d3e8f1a2b3c4d5 --field-name exports_7b2c3d4e5f6a7b8c9d0e1f2a_savedSearch_listSavedSearches
```

**Corresponds to**: [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) (operationId: `getIntegration`) — the form is read from the document; no other request is made.

***

## `celigo integrations refresh-settings-metadata`

Refresh the options behind an Integration App settings field — the UI's Refresh button. The connector re-pulls the field's list (saved searches, locations, accounts, price levels, …) from the connected app and the command prints the refreshed field: a select's `options` as `[value, label]` pairs, a static map's `extracts`/`generates` as `{id, text}` rows.

`--field-name` is checked against the form first: the field must exist (a typo gets suggestions) and be refreshable, and a static map needs `--type extracts` or `--type generates` (an n-column map: a column id) — see the field's `refresh` list in `settings`. Without the check the platform answers `[]` or `422 Unprocessable Entity`. The connector may write the refreshed list back into the integration document (a static map's `extracts` are rewritten; a select that yields value and label is not written). A raw JSON body via `--file`/stdin is sent unchecked, for connector-specific shapes — add-ons send `{"sectionId", "addOnId", "shopId", "fieldName", "pending"}`. Stdin is optional: with no flags and nothing piped the command prints the flag hint and exits `1` instead of waiting on an idle pipe.

**Required:** `operate` or `full` mode — the refresh is an operational write through the connector.

**Signature**

```bash
celigo integrations refresh-settings-metadata <id> --field-name <name> [--type <type>]
celigo integrations refresh-settings-metadata <id> -f <path>
```

**Arguments**

| Argument | Type   | Required | Description                                        |
| -------- | ------ | -------- | -------------------------------------------------- |
| `<id>`   | string | Yes      | Integration ID of an Integration App installation. |

**Flags**

| Flag                  | Type   | Default | Description                                                                                                                                                                    |
| --------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `--field-name <name>` | string | —       | The settings field's `name` (for example `exports_<id>_savedSearch_listSavedSearches`), from `settings`.                                                                       |
| `--type <type>`       | string | —       | Which list to refresh on a static map: `extracts`, `generates`, or a column id. Required for a static map; the field's `refresh` list in `settings` names the accepted values. |
| `-f, --file <path>`   | string | —       | Raw JSON body file instead of the flags (or pipe it; `-` waits for stdin to close, and a body piped without `--file` must start arriving within 1s). Sent unchecked.           |

**Example**

```bash
# Refresh a select's options
celigo integrations refresh-settings-metadata 5f83a9b2c7d3e8f1a2b3c4d5 \
  --field-name exports_7b2c3d4e5f6a7b8c9d0e1f2a_savedSearch_listSavedSearches

# One side of a static map
celigo integrations refresh-settings-metadata 5f83a9b2c7d3e8f1a2b3c4d5 \
  --field-name imports_7b2c3d4e5f6a7b8c9d0e1f2a_staticMap --type generates
```

**Corresponds to**: `PUT /v1/integrations/{_id}/settings/refreshMetadata` — the UI's own route, not yet in the published API reference — after [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) to check the field against the form.

***

## `celigo integrations persist-settings`

Save Integration App settings through the app's connector code — the UI's Save button. Give `<fieldName>=<value>` assignments. Since celigo-cli 2026.11.2, each value is sent as the JSON its field's declared `type` takes, whatever the field holds now:

| Field `type`                                                    | What a save takes                                                                                                                                                                                                                                                                                                                                                                    |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `text`, `input`, `textarea`, `expression`, `number`, or no type | A string, as typed: `…=7` sends `"7"`, and `…='["a","is","b"]'` sends that text. The empty string clears the field: `…=` (nothing after the `=`) and `…='""'` both send `""`. `null` is refused.                                                                                                                                                                                     |
| `checkbox`                                                      | `true` or `false`.                                                                                                                                                                                                                                                                                                                                                                   |
| `select`, `radio`                                               | The chosen option's own value, as the field's `options` list it. A value the options do not list goes as text when every option is a string, and as JSON otherwise. A field that yields value and label takes `{"id": …, "label": …}`: a bare value takes its label from the stored options, and is refused when they do not list it (`refresh-settings-metadata` lists the labels). |
| `multiselect`                                                   | A JSON array of those values (`[]` for none).                                                                                                                                                                                                                                                                                                                                        |
| `staticMapWidget`                                               | `{"map": {…}, "default": …, "allowFailures": …}`, or `{"value": [rows]}` for a static map with `optionsMap`.                                                                                                                                                                                                                                                                         |
| `date`, `datetime`                                              | An ISO 8601 timestamp with its time zone, sent in UTC as `2026-10-01T00:00:00.000Z`. The empty string (`…=`) clears the field.                                                                                                                                                                                                                                                       |
| `uploadfile`, `file`                                            | Nothing. The assignment is refused: the settings page uploads the file.                                                                                                                                                                                                                                                                                                              |
| Any other type                                                  | JSON as given, with a string fallback.                                                                                                                                                                                                                                                                                                                                               |

A value its field cannot take is refused before anything is sent, and the refusal names what the field takes. To send such a value as it is, give a raw body: a raw body is sent as given, whatever each field's type.

Earlier releases typed fewer values. Since celigo-cli 2026.10.1 they sent a number or `true`/`false` as text to a `text`, `input`, `textarea`, or `expression` field and to a select of string options, and everything else as typed. These results differ in celigo-cli 2026.11.2:

* A `number` field's number goes as its digits: `…=50` sends `"50"`, where it sent the JSON number.
* An `expression` field's JSON array goes as that text, where it went as an array.
* These values were sent and are now refused: `null` for a text field, a value other than `true` or `false` for a checkbox, a value that is not an array for a multiselect, a value that is not an object of its keys for a static map, a value that names no instant for a date field (a calendar date alone, for example), any value for a file upload, and a bare value the options do not list for a select that yields value and label.

Every name is resolved against the form before anything is sent (an unknown name is an error with suggestions), and a multi-store app's values are nested under the store id — `--store`, else the store the fields belong to. One store per call: a name several stores repeat is resolved within `--store` and refused without it.

After the save the document is re-read and each field is reported `saved`, `unchanged` (it already held that value), or `not-saved`. The platform answers `{"success": true}` and echoes the body even when it saved nothing — for an unknown field name, or a multi-store body not nested under the store id — so the exit code follows the fields, not the response: any `not-saved`, or a connector refusal (`success: false`), exits `1`. The output is `{success, store?, fields: [{name, status, before, after, store?, flowId?}], response}`.

Since celigo-cli 2026.11.2, the read-back follows the typing. A number read back for the digits sent is that value, so `"50"` sent to a `number` field that holds `50` is `unchanged`. A static map is compared on the keys the sent object carries — its rows, under `value`, for one with `optionsMap` — so an object that carries none of them, such as `{}`, is `not-saved` where it read `unchanged`. A connector refusal also prints its reason on stderr: `the app's connector code refused the save (<reason>), so nothing was saved.`

A raw body via `--file`/stdin (`{"pending": {…}}`, plus `sectionId`/`addOnId`/`shopId` for add-ons) is sent as given, whatever each field's type, and verified the same way, store by store: a name the form knows is reported as above; a name it does not know is looked up after the `PUT` where the body addressed it (present with the sent value → `saved`, absent → `not-saved`, exit `1`); the UI's flow toggle `{"flowId", "disabled"}` is checked against the flow document. A body with nothing the form can locate — an add-on body (`addOnId`), a store key holding no field values — is `unverified`, which exits `1` unless `--allow-unverified`; the flag never excuses a `not-saved`. Stdin is optional: with no assignments and nothing piped the command prints the assignment hint and exits `1` without fetching the integration.

A raw body's values are yours to type as the table has them. When the app's connector code reads a setting as text and receives a number or `true`/`false`, the platform answers `422` with `… is not a function`. Since celigo-cli 2026.11.2, that error ends with a hint: `The app's code read a setting's value as text and was sent a number or true/false. Send that value as a string: <fieldName>='"7"' as an assignment, "7" in a raw body.`

Since celigo-cli 2026.10.1, a value that is, or holds, a mask (`******` — four or more asterisks) is refused before anything is sent, in assignments and raw bodies alike, because the app would store the asterisks as the setting: `Refusing to save <fieldName>: the value is a mask ("******"), which persistSettings would store as the setting itself. Give the real value.`

**Required:** `full` mode — the save is a configuration write that rewrites the integration's settings and may reconfigure its flows.

**Signature**

```bash
celigo integrations persist-settings <id> <fieldName>=<value> [<fieldName>=<value> ...] [--store <id>]
celigo integrations persist-settings <id> -f <path> [--allow-unverified]
```

**Arguments**

| Argument                           | Type              | Required             | Description                                                                                                             |
| ---------------------------------- | ----------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `<id>`                             | string            | Yes                  | Integration ID of an Integration App installation.                                                                      |
| `<fieldName>=<value>` (repeatable) | string (variadic) | Yes, unless `--file` | One or more assignments. `<fieldName>` is the field's `name` from `settings`; `<value>` is typed by the field's `type`. |

**Flags**

| Flag                 | Type    | Default               | Description                                                                                                                                            |
| -------------------- | ------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `--store <id>`       | string  | the fields' own store | The store whose settings to save (multi-store apps). Required when a field name is repeated across stores.                                             |
| `-f, --file <path>`  | string  | —                     | Raw JSON body file instead of assignments (or pipe it; `-` waits for stdin to close, and a body piped without `--file` must start arriving within 1s). |
| `--allow-unverified` | boolean | `false`               | Exit `0` when the body's fields cannot be located on the form to verify (add-on bodies). Never excuses a `not-saved`.                                  |

**Example**

```bash
# A checkbox, and a number field (its number is sent as the string "3")
celigo integrations persist-settings 5f83a9b2c7d3e8f1a2b3c4d5 \
  imports_7b2c3d4e5f6a7b8c9d0e1f2a_syncTaxes=true \
  imports_7b2c3d4e5f6a7b8c9d0e1f2a_batchSize=3

# A select that yields value and label
celigo integrations persist-settings 5f83a9b2c7d3e8f1a2b3c4d5 \
  'exports_7b2c3d4e5f6a7b8c9d0e1f2a_savedSearch_listSavedSearches={"id":"5082","label":"Fulfillments"}'

# A static map, in one store of a multi-store app
celigo integrations persist-settings 5f83a9b2c7d3e8f1a2b3c4d5 --store 6a1b2c3d4e5f6a7b8c9d0e1f \
  'imports_7b2c3d4e5f6a7b8c9d0e1f2a_staticMap={"map":{"US":"1","CA":"2"},"default":"","allowFailures":true}'

# Only the fields that did not land
celigo integrations persist-settings 5f83a9b2c7d3e8f1a2b3c4d5 imports_7b2c3d4e5f6a7b8c9d0e1f2a_syncTaxes=true \
  --jq '[.fields[] | select(.status == "not-saved")]'
```

**Corresponds to**: `PUT /v1/integrations/{_id}/settings/persistSettings` — the UI's own route, not yet in the published API reference — after [`GET /v1/integrations/{_id}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id) to resolve the names against the form, and again after the save to verify each field (plus `GET /v1/flows/{_id}` before and after for a flow toggle).

***

## `celigo integrations revisions`

List all revisions for an integration. A revision is a snapshot, a pull, or a revert.

Revisions are for integrations you build. An Integration App install — an integration whose document carries `_connectorId` — has none: the platform answers every revision command for one (`revisions`, `revision`, `revision-diff`, `revision-errors`, and `create-snapshot`) with `400 not_supported`, before anything is read or created. The CLI makes no check of its own first: it sends the request, and the platform's answer is the refusal. The platform's message also names marketplace templates, but an integration installed from a template is not refused for that. Since celigo-cli 2026.11.2, the error ends with a hint that says what the refusal is:

```
(400): This operation is not supported for IAs or marketplace templates right now.
Hint: Integration 5f83a9b2c7d3e8f1a2b3c4d5 is an Integration App install (its document carries _connectorId), and the platform keeps no revisions for one: no snapshot, history, diff or revert, on any revision command, so sending it again gets the same answer. celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 prints its current document, settings included.
```

**Signature**

```bash
celigo integrations revisions <id>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations revisions 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`GET /v1/integrations/{_id}/revisions`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id-revisions) (operationId: `listIntegrationRevisions`).

***

## `celigo integrations revision`

Get details of a single revision.

**Signature**

```bash
celigo integrations revision <id> <revisionId>
```

**Arguments**

| Argument       | Type   | Required | Description     |
| -------------- | ------ | -------- | --------------- |
| `<id>`         | string | Yes      | Integration ID. |
| `<revisionId>` | string | Yes      | Revision ID.    |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations revision 5f83a9b2c7d3e8f1a2b3c4d5 rev987
```

**Corresponds to**: [`GET /v1/integrations/{_id}/revisions/{_revisionId}`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id-revisions-_revisionid) (operationId: `getIntegrationRevision`).

***

## `celigo integrations revision-errors`

List the errors recorded while a pull or revert revision was being applied — why the revision ended in the `failed` state: one `{code, message, createdAt}` per error, the same list the Revisions tab shows for a failed revision. Each record names the resource the apply step rejected. Works in `read` mode. Added in celigo-cli 2026.9.6.

Only `failed` revisions have error records. The platform answers a revision in any other state — `completed`, `canceled`, `inprogress`, snapshots included — with `400 invalid_revision_state`; since celigo-cli 2026.10.1 the command explains it instead of printing the raw `400`: `Revision <revisionId> is not in the failed state, so it recorded no errors — only a pull or revert revision that failed has them. See its state with 'celigo integrations revision <id> <revisionId>' (or list them with 'celigo integrations revisions <id>').` Read this, not `revision-diff`, to learn why a revision failed: the diff rejects `failed` revisions with the same code.

**Signature**

```bash
celigo integrations revision-errors <id> <revisionId>
```

**Arguments**

| Argument       | Type   | Required | Description                                                           |
| -------------- | ------ | -------- | --------------------------------------------------------------------- |
| `<id>`         | string | Yes      | Integration ID.                                                       |
| `<revisionId>` | string | Yes      | Revision ID of a `failed` pull or revert revision (from `revisions`). |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

Table output columns: `code`, `message`, `createdAt`.

**Example**

```bash
# The failed revisions, then the errors of one of them
celigo integrations revisions 5f83a9b2c7d3e8f1a2b3c4d5 --jq '[.[] | select(.status == "failed")]'
celigo integrations revision-errors 5f83a9b2c7d3e8f1a2b3c4d5 60a1b2c3d4e5f6a7b8c9d0e1 --format table
```

**Corresponds to**: [`GET /v1/integrations/{_id}/revisions/{_revisionId}/errors`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations)

***

## `celigo integrations create-snapshot`

Create a snapshot revision of the current integration state. Handy to run before a risky deploy.

Snapshots are for integrations you build. The platform refuses an Integration App install with `400 not_supported` (see [`revisions`](#celigo-integrations-revisions)), and a standalone clone made by [`integrations clone`](#celigo-integrations-clone) with `422 lifecycleerror`.

**Signature**

```bash
celigo integrations create-snapshot <id> --description <text>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

| Flag                   | Type   | Default      | Description                                                                                                   |
| ---------------------- | ------ | ------------ | ------------------------------------------------------------------------------------------------------------- |
| `--description <text>` | string | — (required) | Human-readable snapshot description. Since celigo-cli 2026.11.2, a blank value is refused before any request. |

**Example**

```bash
celigo integrations create-snapshot 5f83a9b2c7d3e8f1a2b3c4d5 --description 'before deploy'
```

**Corresponds to**: [`POST /v1/integrations/{_id}/revisions/create`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#post-v1-integrations-_id-revisions-create) (operationId: `createIntegrationRevision`).

***

## `celigo integrations revision-diff`

Show the before/after diff of a pull or revert revision, in progress or completed. The platform keeps the diff once the revision completes. A snapshot has no diff, and a canceled revision drops its diff. A failed revision records why it failed under [`revision-errors`](#celigo-integrations-revision-errors) instead.

For a revision without a diff, the platform answers `400 invalid_revision_state`, and the command explains that answer. Since celigo-cli 2026.10.2, the explanation reads: `Revision <revisionId> has no diff to show. Only a pull or revert revision has one, while it is in progress (once its install steps exist) and after it completes; a snapshot has none, and a canceled revision dropped its diff. A failed pull or revert recorded why instead: 'celigo integrations revision-errors <id> <revisionId>'. See the revision's type and status with 'celigo integrations revision <id> <revisionId>'.`

**Signature**

```bash
celigo integrations revision-diff <id> <revisionId>
```

**Arguments**

| Argument       | Type   | Required | Description     |
| -------------- | ------ | -------- | --------------- |
| `<id>`         | string | Yes      | Integration ID. |
| `<revisionId>` | string | Yes      | Revision ID.    |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations revision-diff 5f83a9b2c7d3e8f1a2b3c4d5 rev987
```

**Corresponds to**: [`GET /v1/integrations/{_id}/revisions/{_revisionId}/diff`](https://developer.celigo.com/api/api-reference/integrations-and-flows/integrations#get-v1-integrations-_id-revisions-_revisionid-diff) (operationId: `getIntegrationRevisionDiff`).

***

## `celigo integrations dependencies`

List resources that depend on this integration. Use this to check whether the integration is safe to delete — an empty result means no dependents. Aliased as `used-by`. Since celigo-cli 2026.10.1, an id that matches no integration answers with the integration's `404` instead of an empty result, so a typo never reads as safe to delete.

**Signature**

```bash
celigo integrations dependencies <id>
celigo integrations used-by <id>     # alias
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations dependencies 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: `GET /v1/integrations/{_id}/dependencies`.

***

## `celigo integrations audit`

Show the audit log (change history) for one integration. Since celigo-cli 2026.10.1, every page of the log is read (the endpoint pages at 1,000 entries), and the table columns are `_id`, `resourceType`, `event`, `source`, `byUser.email`, and `time`.

**Signature**

```bash
celigo integrations audit <id>
```

**Arguments**

| Argument | Type   | Required | Description     |
| -------- | ------ | -------- | --------------- |
| `<id>`   | string | Yes      | Integration ID. |

**Flags**

*None beyond* [*global flags*](https://developer.celigo.com/cli/getting-started/global-flags.md)*.*

**Example**

```bash
celigo integrations audit 5f83a9b2c7d3e8f1a2b3c4d5 --format table
```

**Corresponds to**: `GET /v1/integrations/{_id}/audit`.

***

## Gotchas

* **`update` is a full PUT replace.** Omitted fields are erased. Prefer `set` for targeted edits, or always round-trip via `get` + `jq` before `update`.
* **Cross-env clones require a `connectionMap`.** Same-env clones auto-build a self-map from `_registeredConnectionIds`. Only pass the map (stdin or `--file`) when the target environment is different. Since celigo-cli 2026.10.1 the clone lands in the environment you name; it used to land in the profile's own environment. A map you pass must name every connection registered to the source integration, or the platform refuses it with `422`.
* **A clone is standalone.** It joins the source's clone family and records the source as `_sourceId`, but it isn't lifecycle-linked to the source. An ILM pull between the two (run in the UI) reports no changes.
* **`download` rejects Integration App installations.** The template endpoint only works for standalone integrations — anything with `_connectorId` or `mode: install` errors out.
* **Only a pull or revert revision has a diff.** It has one while in progress and keeps it once it completes. A snapshot is a point-in-time capture with nothing to compare, a canceled revision drops its diff, and a failed one records why under `revision-errors`.
* **`create-snapshot` requires `--description`.** The flag is enforced by the CLI even though the REST payload accepts an empty description. Since celigo-cli 2026.11.2, a blank `--description` is refused too.
* **Revisions are for integrations you build.** The platform answers every revision command on an Integration App install with `400 not_supported`, and `create-snapshot` on a standalone clone with `422 lifecycleerror`. The CLI makes no check of its own first. Since celigo-cli 2026.11.2, the `400` ends with a hint that says the integration is an Integration App install.
* **ILM commands are UI-only.** `revision-apply`, `revision-cancel`, `revert-*`, `pull-*`, `clonefamily`, and `ilm-ignore*` are session-auth only and are intentionally not exposed as CLI commands. Use the UI for those.
* **Lookup-cache registration leaves an alias behind.** `register-lookup-caches` adds an `aliases[]` entry per cache, and `deregister-lookup-caches` fails with `400` until every alias referencing the cache is removed (edit `aliases[]` via `integrations set`).
* **Topic registration does not.** `register-topics` only edits `_registeredTopicIds` — no alias — and `deregister-topics` fails while a flow step in the integration still binds to the topic through `topic._topicId`. Saving a flow with such a step registers the topic again. Neither touches the topics or their retained messages; `topics list --integration <id>` shows the current registrations.
* **Knowledge base registration is checked both ways.** `register-knowledge-bases` registers nothing unless every id names an existing knowledge base. `deregister-knowledge-bases` fails with `400` for a knowledge base that is not registered, or while a step of the integration uses an AI agent or guardrail that attaches it. Neither touches the knowledge bases, their files, or their indexed content; `knowledge-bases list --integration <id>` shows the current registrations.
* **`revision-errors` is for `failed` revisions only.** Every other state — `completed`, `canceled`, `inprogress`, snapshots included — is rejected with `400 invalid_revision_state` (since celigo-cli 2026.10.1 the command says so in words), and a failed revision's `revision-diff` is rejected with the same code: the two commands cover disjoint states.
* **Integration App settings go through the connector.** `settings`, `refresh-settings-metadata`, and `persist-settings` (celigo-cli 2026.9.1) drive the app's settings form through its connector code; a plain `set`/`update` on `settings` bypasses it, and `celigo push` withholds an Integration App's documents — since celigo-cli 2026.10.1, `push --allow-connector-settings` saves edited settings values through the connector route instead. `settings` refuses a standalone integration — its settings are plain document fields.
* **`delete-flow-group` empties the group first.** Since celigo-cli 2026.10.1 it moves the group's flows out before it removes the group, and fails when the platform still lists the group afterwards.
* **`delete-api-group` does not.** The platform keeps an API group that still holds APIs. Since celigo-cli 2026.11.2 the command fails when the platform still lists the group afterwards; move the APIs out with `apis unset-group` first.
* **`persist-settings` types each value by its field's `type`.** Since celigo-cli 2026.11.2, a `text`, `input`, `textarea`, `expression`, or `number` field takes a string, so `…=7` sends `"7"`, and a value its field cannot take is refused before anything is sent. A raw `--file` or stdin body is sent as given.
* **`persist-settings` trusts the document, not the response.** The platform answers `{"success": true}` even when it saved nothing, so the command re-reads the integration and exits `1` when any field is `not-saved`. On a multi-store app, values nest under the store id: pass `--store` when a field name repeats across stores.

## Related

* [flows](https://developer.celigo.com/cli/commands/flows.md) — integrations contain flows; use `flows` for flow-level CRUD, runs, and errors.
* [connections](https://developer.celigo.com/cli/commands/connections.md) — `register-connections` / `deregister-connections` operate on connections already created via `celigo connections`.
* [lookup-caches](https://developer.celigo.com/cli/commands/lookup-caches.md) — `register-lookup-caches` / `deregister-lookup-caches` attach caches created via `celigo lookup-caches`.
* [topics](https://developer.celigo.com/cli/commands/topics.md) — `register-topics` / `deregister-topics` attach Event Streams topics created via `celigo topics`; `topics list --integration <id>` lists an integration's registrations.
* [knowledge-bases](https://developer.celigo.com/cli/commands/knowledge-bases.md) — `register-knowledge-bases` / `deregister-knowledge-bases` register knowledge bases created via `celigo knowledge-bases`; `knowledge-bases list --integration <id>` lists an integration's registrations.
* [flows](https://developer.celigo.com/cli/commands/flows.md) — assign errors at the step level with `flows assign-errors`; assign flows to a group with `flows set-group`.
* [account](https://developer.celigo.com/cli/commands/account.md) — `account snapshot` indexes every integration for search, dependency, and lint workflows.
* [push](https://developer.celigo.com/cli/local-tree/push.md) — `celigo push` writes a pulled tree back to the account, but never PUTs an Integration App's `integration.json`; `persist-settings` is that app's write path, and since celigo-cli 2026.10.1 `push --allow-connector-settings` saves the settings values edited in the file through it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/cli/commands/integrations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
