> 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/connections.md).

# connections

Credentials and configuration for external systems. Build connections first — every export and import references one.

**REST API**: [Connections](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections)

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

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

***

## Subcommands

| Subcommand                                        | Purpose                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `list`                                            | List all connections.                                                                                                                                                                                                                                                                                                                   |
| `applications`                                    | List the external applications in use across the account, with resource references.                                                                                                                                                                                                                                                     |
| `get <id>`                                        | Fetch one connection (secrets are masked as `******`). Explains an empty `http._iClientId` on a connector OAuth connection.                                                                                                                                                                                                             |
| `create`                                          | Create a connection from a JSON body (`--file <path>` or stdin) — connector-first: `--connector` scaffolds from a pre-built HTTP connector, `--tp-connector` links a trading partner connector, and a hand-written `type: http` body is checked against the connector catalog before it is sent.                                        |
| `set <id> key=value …`                            | Set whitelisted fields via atomic PATCH: `name`, `debugDate`, `debugUntil`, the credential-free concurrency settings (since celigo-cli 2026.9.6), and — since celigo-cli 2026.11.2 — `aiDescription`, an HTTP connection's rate-limit rules, and an AS2 or VAN connection's content-based routing script. Supports `key=file://<path>`. |
| `update <id>`                                     | Full-replace PUT from a JSON body (`--file <path>` or stdin). Refuses masked placeholders unless `--force`.                                                                                                                                                                                                                             |
| `delete <id>`                                     | Delete a connection by ID.                                                                                                                                                                                                                                                                                                              |
| `dependencies <id>` (alias `used-by`)             | List resources that depend on this connection.                                                                                                                                                                                                                                                                                          |
| `audit <id>`                                      | Show the audit log (change history) for one connection.                                                                                                                                                                                                                                                                                 |
| `ping <id> [--distributed]`                       | Test connectivity and auth against the remote system, exiting `1` when the ping fails; `--distributed` pings the Celigo distributed adaptor behind a NetSuite or Salesforce connection instead.                                                                                                                                         |
| `suiteapp-status <id>`                            | Check whether the Celigo integrator.io SuiteApp and legacy bundle are installed in the connected NetSuite account, and their versions. Added in celigo-cli 2026.9.6.                                                                                                                                                                    |
| `enable-debug <id>`                               | Turn on connection-level debug logging for a time window.                                                                                                                                                                                                                                                                               |
| `disable-debug <id>`                              | Turn off connection-level debug logging.                                                                                                                                                                                                                                                                                                |
| `debug-logs <id> [--resource <exportOrImportId>]` | Fetch captured debug logs for a connection; `--resource` narrows them to one export or import's traffic, and `--time-gt` reads the log forward.                                                                                                                                                                                         |
| `delete-debug-logs <id>`                          | Delete the captured debug logs for a connection.                                                                                                                                                                                                                                                                                        |
| `authorize <id>`                                  | Complete the OAuth2 authorization flow in a browser, wait until the connection shows the authorization, then ping it.                                                                                                                                                                                                                   |
| `purge-messages <id>`                             | Purge queued messages for a connection.                                                                                                                                                                                                                                                                                                 |

> **`set` is PATCH-only for connections.** Because `GET /v1/connections/{id}` returns masked credential values (`******`), `set` applies only PATCH-whitelisted fields atomically — `name`, `debugDate`, `debugUntil`, since celigo-cli 2026.9.6 the credential-free concurrency settings, and since celigo-cli 2026.11.2 `aiDescription`, the rate-limit rules, and the routing script, all listed under `set` below — and never round-trips other fields through GET → modify → PUT on its own. To change any other field, send the whole connection with `update --force`: since the platform's 2026.10.1 release, a masked `******` value sent back keeps the stored secret. Put a new value in place of a mask only to change that secret, use `""` to clear it, and never leave a secret field out — the PUT clears it.

***

## `celigo connections list`

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

**Signature**

```bash
celigo connections list [--integration <id>] [--fields <spec>] [--limit <n>]
```

**Arguments**

None.

**Flags**

| Flag                 | Type    | Default   | Description                                                                                                                                                                                                                                                                                  |
| -------------------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--integration <id>` | string  | —         | List only connections belonging to this integration.                                                                                                                                                                                                                                         |
| `--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`, `type`, `offline`, `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 connections list --format table
```

**Corresponds to**: [`GET /v1/connections`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#get-v1-connections)

***

## `celigo connections applications`

List the external applications (NetSuite, Shopify, an HTTP-connector ID, a trading-partner code, etc.) referenced by at least one resource in the account. Each entry carries an application slug (`_id`) and, when present, `refs` pointing to the connections, exports, imports, and connectors that use it.

The list is usage-driven — applications with no referencing resource are omitted.

**Signature**

```bash
celigo connections applications [--application <name>]
```

**Flags**

| Flag                   | Type   | Default | Meaning                                                                                                                                     |
| ---------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `--application <name>` | string | —       | Case-insensitive substring match against application slugs. Filtering happens client-side; the server returns the full response either way. |

**Examples**

```bash
# Find every Slack-related adaptor the account is using
celigo connections applications --application slack

# List all applications in use (no filter)
celigo connections applications --format table
```

**Corresponds to**: [`GET /v1/applications`](https://developer.celigo.com/api/api-reference/account-and-admin/account#get-v1-applications) (operationId: `listAccountApplications`)

***

## `celigo connections get <id>`

Fetch a single connection by ID. Encrypted fields are returned as `******`.

On a connector OAuth connection whose `http._iClientId` is empty, a stderr note says whether the connection authorizes through the connector's Celigo-managed (global) iClient — in which case the empty field is not a misconfiguration — or still needs your own iClient before `connections authorize`. Added in celigo-cli 2026.9.1.

An end user's copy of an MCP server's connection (`connectionRole: mcpChild`) answers `404` here, as an unknown id does. Since celigo-cli 2026.11.1, the `404`'s hint names [`end-users connection <id>`](https://developer.celigo.com/cli/commands/end-users.md#celigo-end-users-connection-less-than-connectionid-greater-than) as the route that reads such a copy; see [Troubleshooting](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md#id-404-not-found-on-a-resource-you-know-exists).

**Signature**

```bash
celigo connections get <id>
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections get 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`GET /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#get-v1-connections-_id)

***

## `celigo connections create`

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

Since celigo-cli 2026.9.1 the command is **connector-first**. A pre-built HTTP connector's definition carries the connection form every connection created from it inherits, and the CLI reads that form instead of leaving a `type: http` body to be hand-written:

* `--connector <id|name>` scaffolds what the connector's own form saves — `type`, `assistant`, `http.formType: assistant`, the connector, API, and version ids, its default `http.auth.type`, every applicable pre-configured field (media type, ping, headers, the Celigo-managed global iClient), and a base URI. Your body is merged over the scaffold (your fields win), and `--name` alone is body enough. The fields the form requires you to set — credentials, `settings.*`, OAuth scopes — are listed on stderr and never invented.
* `--tp-connector <id|name>` links an `as2`, `ftp`, or `s3` connection to a trading partner connector (`<transport>._tpConnectorId` — `as2._tpConnectorId`, `ftp._tpConnectorId`, `s3._tpConnectorId`), checks the transport type, and lists the fields the connector's form requires. The form's own connection values are template stand-ins (a placeholder partner id, a staging AS2 URI) and are never copied into your connection. Since celigo-cli 2026.10.1, the link is written under the transport, where the platform stores it, instead of at the document root, where the platform dropped it; a link the body already carries is kept, and a VAN connection — whose schema has no link field — is refused.
* A hand-written body is checked before it is sent (see the warning below). A hand-written `as2`/`ftp`/`s3`/`van` body whose name refers to a partner that has a trading partner connector gets a stderr note naming the connector — a note, never a refusal, because a name is evidence enough to say so but not to refuse.

Find HTTP connectors with [`http-connectors match <url|name>`](https://developer.celigo.com/cli/commands/http-connectors.md#celigo-http-connectors-match) and trading partner connectors with [`trading-partner-connectors list`](https://developer.celigo.com/cli/commands/trading-partner-connectors.md#celigo-trading-partner-connectors-list).

> ⚠️ **Two hand-written shapes are refused since celigo-cli 2026.9.1.** The API accepts both silently, and neither connection authorizes the way its connector expects. A raw `type: http` body whose base URI a pre-built connector serves is refused with `Refusing to create a raw HTTP connection to <host>: a pre-built connector serves it.`, naming the connector, its default auth type, and its global iClient — create it with `--connector <id>` instead, or pass `--allow-raw-http` to create the raw connection deliberately. A body that references a connector but sets an `http.auth.type` the connector's form does not offer is refused with `Refusing to create a <connector> connection with http.auth.type '<type>': the connector's form offers <types> …` — scaffold it with `--connector`, or pass `--auth-type <type>` equal to the body's value to confirm the choice. An auth type the form offers but does not preselect passes with a note.

Since celigo-cli 2026.10.1:

* **The body is checked as every `create` checks one**, before `--dry-run` prints it: masked `"******"` credential placeholders, and a value that is not a string in a field the platform encrypts (`http.auth.basic.password`, `http.auth.token.token`, …), are refused with no override, and the published API schemas are checked, with findings printed as `warning` lines on stderr that never block. A body that is not a JSON object, and a blank option value (an unset shell variable), are refused before any request.
* **Unpublished connectors stay out of the way.** A connector or API group that is not published (a draft) is left out of the raw-HTTP check, so a draft of your own never refuses a raw body. `--connector` refuses to scaffold from a draft, and a hand-written body that names one is refused, unless `--include-unpublished` is given.
* **More base URIs are matched.** A templated `http.baseURI` (`{{{connection.settings.x}}}`, `:_version`) is matched the way the connector catalog writes its own, a host with a trailing dot (`api.github.com.`) matches as the dotless one, and a base URI with a templated port can be matched — none of them skips the raw-HTTP refusal. When the check cannot run — a base URI whose host relates by name to over 200 connectors, for example — the error names `celigo http-connectors match <baseURI> --scan` and `--allow-raw-http` as the ways forward, where it suggested only a `--scan` that `create` does not take.
* **The scaffold follows the form more closely.** `--version` reaches the command and scaffolds that version's base URI (the CLI's own `--version` used to answer instead, and nothing was sent). The fields the form's `fieldsToUnset` names are cleared from the scaffold — your own fields and the connection's identity are kept — and listed on stderr, and a pre-configured field whose condition the CLI cannot evaluate is skipped with a note. When the URL matched a version other than the default, the raw-HTTP refusal's suggested command adds `--version`.
* **The trading partner check only advises.** When the trading partner connector catalog cannot be read, a hand-written body gets a note saying so and is still created.

Since celigo-cli 2026.10.2, a scaffold from the Celigo APIs connector (`assistant: "integratorceligoapi"`) names `accessScope` in its stderr notes, unless the body already carries one. That connector's form lists no field to set, yet the platform refuses a Celigo APIs connection created without `accessScope` (`422` "Scope is required for this connection. Please select Full access or Custom."). The note gives the three scope types:

```
Note: Set before use: accessScope -- the platform refuses a Celigo APIs connection without it (422 "Scope is required for this connection"), though the form doesn't list it: {"type": "full"}, {"type": "custom"} with _apiIds, _exportIds or _fileStoragePaths, or {"type": "integration", "_integrationIds": [...]}.
```

Since celigo-cli 2026.11.2, `create` masks a raw HTTP base URI's userinfo password and credential query parameters as `********` in its notes, refusals, and suggested commands. Earlier releases printed a base URI such as `https://api.example.com/v2?api_key=…` back as typed. Also since celigo-cli 2026.11.2, a `--connector` or `--tp-connector` reference with no letters or digits, such as `"---"`, is refused instead of being matched to a connector.

**Signature**

```bash
celigo connections create [-f <path>] [--dry-run]
celigo connections create --connector <id|name> [--api <id|name>] [--version <id|name>] [--auth-type <type>] [--name <name>] [--include-unpublished] [-f <path>] [--dry-run]
celigo connections create --tp-connector <id|name> [--name <name>] [-f <path>] [--dry-run]
celigo connections create --allow-raw-http -f <path>
```

**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, and waits for it to close). Added in celigo-cli 2026.6.1. Since celigo-cli 2026.10.1, with `--connector` or `--tp-connector`, a body piped without `--file` must start arriving within one second and is then read to its end.                                                                           |
| `--connector <id\|name>`    | string  | —                             | Scaffold the connection from this pre-built HTTP connector (see `http-connectors match`). Your body's fields win over the scaffold; with `--name`, a body is optional. Mutually exclusive with `--tp-connector`. Added in celigo-cli 2026.9.1.                                                                                                                                         |
| `--api <id\|name>`          | string  | the connector's default group | API group of a grouped connector (the connection's `http._httpConnectorApiId`). Only with `--connector`. Added in celigo-cli 2026.9.1.                                                                                                                                                                                                                                                 |
| `--version <id\|name>`      | string  | the first published version   | Connector version the connection references. Only with `--connector`. Added in celigo-cli 2026.9.1. Since celigo-cli 2026.10.1, the flag reaches the command instead of printing the CLI's version, and the scaffold takes that version's base URI.                                                                                                                                    |
| `--auth-type <type>`        | string  | the connector's default       | The auth type to configure with `--connector`, or — on a hand-written body that references a connector — the type to confirm when it departs from what the connector's form offers. A form that makes the user choose and gets no `--auth-type` is an error naming the offered types. Added in celigo-cli 2026.9.1.                                                                    |
| `--name <name>`             | string  | —                             | Connection name. With `--connector` or `--tp-connector` a body is then optional. Added in celigo-cli 2026.9.1.                                                                                                                                                                                                                                                                         |
| `--allow-raw-http`          | boolean | `false`                       | Create a raw `type: http` connection even though a pre-built connector serves its base URI. Added in celigo-cli 2026.9.1.                                                                                                                                                                                                                                                              |
| `--include-unpublished`     | boolean | `false`                       | With `--connector`, scaffold from a connector or API group that is not published (a draft), which is refused otherwise; a hand-written body that names a draft connector needs it too. Added in celigo-cli 2026.10.1.                                                                                                                                                                  |
| `--tp-connector <id\|name>` | string  | —                             | Link the connection to this trading partner connector via `<transport>._tpConnectorId` (the full connector name, or a base name that has one variant — a base name shared by a partner's AS2 and FTP variants must be given in full). Refuses a transport the connector does not provision, and a VAN connection. Mutually exclusive with `--connector`. Added in celigo-cli 2026.9.1. |
| `--dry-run`                 | boolean | `false`                       | Run the checks and print the body that would be sent (the scaffold, with `--connector`) without creating anything. Added in celigo-cli 2026.9.1.                                                                                                                                                                                                                                       |

**Request body**

A JSON object matching the `POST /v1/connections` request schema (one variant per connection type: `http`, `netsuite`, `salesforce`, `ftp`, `rdbms`, `s3`, `as2`, `wrapper`, …). See the [Connections API reference](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections). With `--connector` or `--tp-connector` the body is optional and is merged over the scaffold.

**Example**

```bash
# 1. Find the connector that serves the API, and what its form prescribes
celigo http-connectors match https://api.github.com

# 2. Create the connection from the connector; the fields you must set are listed on stderr
celigo connections create --connector github --name "GitHub - Prod"

# See the scaffold without creating anything
celigo connections create --connector github --name "GitHub - Prod" --dry-run

# A grouped connector: pick the API group and a non-default auth type
celigo connections create --connector 5f83a9b2c7d3e8f1a2b3c4d5 --api 6a1b2c3d4e5f6a7b8c9d0e1f \
  --auth-type basic --file ./creds.json

# A Celigo APIs connection: the body carries the access scope the platform requires
echo '{"accessScope":{"type":"full"}}' \
  | celigo connections create --connector 6b2c3d4e5f6a7b8c9d0e1f2a --name "Celigo APIs - Full access"

# Link an AS2 connection to a trading partner connector (by id, or by its full name)
celigo connections create --tp-connector 7b2c3d4e5f6a7b8c9d0e1f2a --name "Acme Retail AS2" --file ./as2.json

# From a checked-in JSON file (checked against the connector catalog before it is sent)
celigo connections create --file ./connection.json

# A raw HTTP connection to a host no connector serves
echo '{"name":"httpbin","type":"http","http":{"baseURI":"https://httpbin.org"}}' \
  | celigo connections create
```

**Corresponds to**: `POST /v1/connections` (operationId: `createConnection`), preceded by reads of the connector catalogs for the scaffold and the checks — `GET /v1/httpconnectors` and `GET /v1/httpconnectors/{_id}` for HTTP connectors, `GET /v1/tpconnectors` and `GET /v1/tpconnectors/{_id}` for trading partner connectors. `--dry-run` sends no `POST`.

***

## `celigo connections set <id>`

Set field(s) on a connection. Only PATCH-whitelisted fields are accepted, applied via an atomic PATCH that never re-sends encrypted fields. Other fields must go through `update` because GET masks credential values. Accepts `key=value` pairs; values auto-parse as JSON (`=null` removes a field). Supports dot paths and array indexing. A `key=file://<path>` value loads that field's value from a file (a leading `~` and relative paths are supported). Added in celigo-cli 2026.6.1.

The whitelist is the platform's credential-free PATCH surface. Since celigo-cli 2026.9.6 it carries the concurrency settings, every one of which was refused before then because the GET + PUT round-trip it would have needed re-sends the masked secrets:

| Field                                | Description                                                                                                                                                                                                                                                                                                                                                                               |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `name`                               | Connection name.                                                                                                                                                                                                                                                                                                                                                                          |
| `debugDate`, `debugUntil`            | The connection-level debug window. `enable-debug`/`disable-debug` PATCH `debugDate` for you.                                                                                                                                                                                                                                                                                              |
| `<adaptor>.concurrencyLevel`         | Concurrency level of the connection's adaptor block. `<adaptor>` is the connection's `type` — `http.concurrencyLevel`, `netsuite.concurrencyLevel`, … — and stands for exactly one path segment: a bare `concurrencyLevel` is refused. While `autoRecoverRateLimitErrors` is `true`, the platform manages the level, so set the target instead (see below). Added in celigo-cli 2026.9.6. |
| `<adaptor>.targetConcurrencyLevel`   | Target concurrency level of the adaptor block (`netsuite.targetConcurrencyLevel`): the setting that changes throughput while `autoRecoverRateLimitErrors` is `true`. On an `http` connection, writing it also sets `http.concurrencyLevel` to the same value. Added in celigo-cli 2026.9.6.                                                                                               |
| `_borrowConcurrencyFromConnectionId` | The connection whose concurrency this one borrows. `=null` clears it. Added in celigo-cli 2026.9.6.                                                                                                                                                                                                                                                                                       |
| `autoRecoverRateLimitErrors`         | Boolean, `true` by default. Set it to `false` to fix the level yourself; that also unsets the target. Added in celigo-cli 2026.9.6.                                                                                                                                                                                                                                                       |
| `endUserProvidedFields`              | The credential fields an MCP server's end users supply themselves when the server attaches this connection; each end user's values live in their own `mcpChild` copy (see [mcp-servers connections](https://developer.celigo.com/cli/commands/mcp-servers.md#celigo-mcp-servers-connections-less-than-id-greater-than)). Added in celigo-cli 2026.9.6.                                    |

**Which concurrency field to set.** While `autoRecoverRateLimitErrors` is `true` (the default), the platform manages `<adaptor>.concurrencyLevel`: rate-limit recovery moves a level `set` stores back toward `<adaptor>.targetConcurrencyLevel`. Change throughput with the target. On an `http` connection, writing the target also sets the level to the same value. To fix the level yourself, set `autoRecoverRateLimitErrors=false` in the same call, which unsets the target.

Since celigo-cli 2026.11.2, the whitelist also carries the fields below, each applied with the same atomic PATCH:

| Field                                                                                    | Description                                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aiDescription`                                                                          | The connection's `aiDescription`, an object: `{"summary": …, "detailed": …}`.                                                                                                                                                                                                                             |
| `http.rateLimit.failStatusCode`, `http.rateLimit.failPath`, `http.rateLimit.failHeaders` | On an `http` connection, what a rate-limit answer looks like. `failHeaders` is assigned as the whole array.                                                                                                                                                                                               |
| `http.rateLimit.limit`                                                                   | On an `http` connection, the wait between requests in milliseconds. The platform accepts it only at a concurrency of 1: set `http.targetConcurrencyLevel=1` in the same command, or `http.concurrencyLevel=1` on a connection whose `autoRecoverRateLimitErrors` is `false`. The other one answers `422`. |
| `as2.contentBasedFlowRouter._scriptId`, `as2.contentBasedFlowRouter.function`            | On an `as2` connection, the content-based routing script and its function. Set the two together; `=null` on both clears the script.                                                                                                                                                                       |
| `van.contentBasedFlowRouter._scriptId`, `van.contentBasedFlowRouter.function`            | The same two fields on a `van` connection.                                                                                                                                                                                                                                                                |

Any other field fails with the whitelist in the message rather than falling back to PUT. Since celigo-cli 2026.10.2, the message names `connections update --force` as the route for the rest; earlier releases asked for the real credential values:

```
Cannot set http.baseURI on a connection via 'set': its credentials are masked, and 'set' sends only PATCH-whitelisted fields.
Fields safe to set here (applied via PATCH): _borrowConcurrencyFromConnectionId, <adaptor>.concurrencyLevel, <adaptor>.targetConcurrencyLevel, aiDescription, as2.contentBasedFlowRouter._scriptId, as2.contentBasedFlowRouter.function, autoRecoverRateLimitErrors, debugDate, debugUntil, endUserProvidedFields, http.rateLimit.failHeaders, http.rateLimit.failPath, http.rateLimit.failStatusCode, http.rateLimit.limit, name, van.contentBasedFlowRouter._scriptId, van.contentBasedFlowRouter.function.
To change any other field, send the whole connection with 'connections update --force': a masked "******" value sent back keeps the stored secret.
```

`set` is blocked in `read` mode; in `operate` mode only `debugDate` and `debugUntil` are accepted, so `name` and the concurrency settings need `full` mode (see [Profiles & regions](https://developer.celigo.com/cli/getting-started/profiles.md#permission-modes)).

Since celigo-cli 2026.10.1, an `<adaptor>.`-prefixed assignment costs one GET: the connection is read first, and a block other than its `type` is refused before the PATCH — the platform accepts such a PATCH and never reads it, so `set` used to report a change that did not happen. A matching path is still one PATCH, and every other whitelisted field still needs no GET:

```
Cannot set rest.concurrencyLevel on connection 5f83a9b2c7d3e8f1a2b3c4d5: its type is http, so the platform reads http.concurrencyLevel — a PATCH under another adaptor block is accepted and never read, so nothing was sent. Set http.concurrencyLevel instead.
```

Since celigo-cli 2026.11.2, the same read guards the rate-limit and routing-script fields, which the platform reads only on a connection of their own type:

```
Cannot set http.rateLimit.limit on connection 5f83a9b2c7d3e8f1a2b3c4d5: its type is netsuite, and http.rateLimit.limit is read only on a connection of type http — a PATCH under another adaptor block is accepted and never read, so nothing was sent.
```

Since celigo-cli 2026.10.1, the assigned values are also checked against the published API schemas before the PATCH; a finding is a stderr warning and never blocks.

**Signature**

```bash
celigo connections set <id> [assignments...]
```

**Arguments**

| Argument           | Type              | Required | Description                                |
| ------------------ | ----------------- | -------- | ------------------------------------------ |
| `<id>`             | string            | Yes      | Connection ID.                             |
| `[assignments...]` | `key=value` pairs | Yes      | One or more whitelisted field assignments. |

**Example**

```bash
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 name="Renamed connection"

# Raise an HTTP connection's throughput without touching its credentials: set the target
# (on an http connection, the level follows it)
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 http.targetConcurrencyLevel=10

# Fix the level yourself: turn rate-limit auto-recovery off in the same call (this unsets the target)
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 http.concurrencyLevel=5 autoRecoverRateLimitErrors=false

# A NetSuite connection with rate-limit auto-recovery on: change the target
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 netsuite.targetConcurrencyLevel=10

# Stop borrowing another connection's concurrency
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 _borrowConcurrencyFromConnectionId=null

# Wait 500 ms between requests on an HTTP connection: the limit needs a concurrency of 1
celigo connections set 5f83a9b2c7d3e8f1a2b3c4d5 http.rateLimit.limit=500 http.targetConcurrencyLevel=1
```

**Corresponds to**: [`PATCH /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#patch-v1-connections-_id) (operationId: `patchConnection`) — a JSON Patch with one `replace` op per assignment (`remove` for `=null`).

***

## `celigo connections update <id>`

Full-replace a connection with a JSON body. Read the body from a file with `-f, --file`, or pipe it on stdin. Refuses to submit a payload containing masked placeholders unless `--force` is passed. Since celigo-cli 2026.10.1, a masked placeholder is four or more asterisks and nothing else (`"******"` is the platform's mask): a lone `*` — a wildcard header value, for example — is a value and needs no `--force`.

Since celigo-cli 2026.10.2, the refusal says that a mask sent back keeps the stored secret, so `--force` sends the document as read; earlier releases said the masks would overwrite the secrets:

```
Refusing to update connection 5f83a9b2c7d3e8f1a2b3c4d5: payload contains masked credential values (e.g. "******") at:
  • http.auth.basic.password

Sent back, a masked value keeps the stored secret here: pass --force to send the document as it is, or replace a mask with a new value to change that secret. Don't drop a secret field to keep it: a PUT clears most secrets it leaves out.
```

Since celigo-cli 2026.10.1, a value that is not a string in a field the platform encrypts (`http.auth.basic.password`, `http.auth.token.token`, …) is refused before any request, with no override — `--force` included; `null`, which clears the field, is sent. The body is also checked against the published API schemas (when it has findings, the current connection is read first, so only what the update changes is reported), as stderr warnings that never block. On an Integration App's connection (`_connectorId` set), each field the update changed whose reply still holds the previous value is named on stderr, and the command exits `1`.

> ⚠️ **`update` erases omitted fields.** `PUT` is a full replace — any field missing from the body is cleared. `GET` the connection first, edit it, then send back the complete object — or use `set` for whitelisted fields.

**Signature**

```bash
celigo connections update <id> --file <path> [--force]
celigo connections update <id> [--force] < connection.json     # or pipe on stdin
```

**Arguments**

| Argument | Type   | Required | Description    |
| -------- | ------ | -------- | -------------- |
| `<id>`   | string | Yes      | Connection 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`           | boolean | `false` | Submit the payload even if it contains masked credential values (`"******"`). Without it, masked fields cause the command to abort with the list of offending paths. |

**Request body**

A complete connection object matching the `PUT /v1/connections/{_id}` request schema (`PUT` is a full replace). See the [Connections API reference](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections).

**Example**

```bash
# Change a field outside the PATCH whitelist: send the connection as read, masks included
celigo connections get 5f83... --format json \
  | jq '.http.baseURI = "https://api.example.com/v2"' \
  | celigo connections update 5f83... --force
```

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

***

## `celigo connections delete <id>`

Delete a connection. Prompts for confirmation unless `-y` is passed.

> ⚠️ **`delete` is immediate.** Every export and import that references this connection stops working until you repoint it. Run `dependencies` first.

**Signature**

```bash
celigo connections delete <id> [-y]
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections delete 5f83a9b2c7d3e8f1a2b3c4d5 -y
```

**Corresponds to**: [`DELETE /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#delete-v1-connections-_id)

***

## `celigo connections dependencies <id>`

List resources that depend on this connection (exports, imports, flows, …). Use it to check whether a connection is safe to delete — empty means no dependents. Aliased as `used-by`. Since celigo-cli 2026.10.1, an id that matches no connection is reported as not found instead of as having no dependents.

**Signature**

```bash
celigo connections dependencies <id>
celigo connections used-by <id>
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections dependencies 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: `GET /v1/connections/{_id}/dependencies` (operationId: `listConnectionDependencies`)

***

## `celigo connections audit <id>`

Show the audit log (change history) for one connection. Since celigo-cli 2026.10.1, every page of the log is read, and the table shows `_id`, `resourceType`, `event`, `source`, `byUser.email`, and `time`.

**Signature**

```bash
celigo connections audit <id>
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections audit 5f83a9b2c7d3e8f1a2b3c4d5
```

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

***

## `celigo connections ping <id>`

Ping a connection — the API attempts the remote handshake (auth + basic request) and returns the outcome. The API answers a failed ping with HTTP 200 and an `errors` array; since celigo-cli 2026.10.1, the command prints the answer, names the failure on stderr — `Ping failed: 401 Unauthorized` — and exits `1`.

With `--distributed`, ping the Celigo distributed adaptor installed in the account behind a NetSuite or Salesforce connection instead — the SuiteApp/bundle or the Salesforce package — and report `{success, statusCode, resBody, bundleURL}`. Added in celigo-cli 2026.9.6.

**Signature**

```bash
celigo connections ping <id> [--distributed]
```

**Arguments**

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

**Flags**

| Flag            | Type    | Default | Description                                                                                                         |
| --------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------- |
| `--distributed` | boolean | `false` | Ping the distributed adaptor (NetSuite/Salesforce) rather than the connection itself. Added in celigo-cli 2026.9.6. |

**Example**

```bash
celigo connections ping 5f83a9b2c7d3e8f1a2b3c4d5

# Is the SuiteApp/bundle (or Salesforce package) behind this connection answering?
celigo connections ping 5f83a9b2c7d3e8f1a2b3c4d5 --distributed
```

**Corresponds to**: [`POST /v1/connections/{_id}/ping`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#post-v1-connections-_id-ping), or [`GET /v1/connections/{_id}/distributed`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections) with `--distributed`. Both run in `read` mode — the ping `POST` is on the CLI's read-only-POST allowlist.

***

## `celigo connections suiteapp-status <id>`

Check, live in the connected NetSuite account, whether the Celigo integrator.io SuiteApp and the legacy bundle are installed and which versions: `{bundle, suiteapp}`. This is the troubleshooting check for a NetSuite connection whose flows fail on missing or outdated Celigo components. NetSuite connections only. Added in celigo-cli 2026.9.6.

**Signature**

```bash
celigo connections suiteapp-status <id>
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections suiteapp-status 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`GET /v1/connections/{_id}/distributedApps`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections)

***

## `celigo connections enable-debug <id>`

Turn on connection-level debug logging by PATCHing `debugDate` to a future timestamp. Logs are shared across every flow that uses this connection; view them with `connections debug-logs <id>`. Requires `operate` mode.

**Signature**

```bash
celigo connections enable-debug <id> [--duration <minutes>]
```

**Arguments**

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

**Flags**

| Flag                   | Type    | Default | Description                                                                                                                                                                                         |
| ---------------------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--duration <minutes>` | integer | `60`    | Minutes to keep debug on. Values above 60 are clamped to 60. Since celigo-cli 2026.10.1, a value that is not a positive whole number is refused instead of setting a window that has already ended. |

**Example**

```bash
celigo connections enable-debug 5f83a9b2c7d3e8f1a2b3c4d5 --duration 30
```

**Corresponds to**: [`PATCH /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#patch-v1-connections-_id) (JSON Patch: `replace /debugDate`)

***

## `celigo connections disable-debug <id>`

Turn off connection-level debug logging by PATCH-removing `debugDate`.

**Signature**

```bash
celigo connections disable-debug <id>
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections disable-debug 5f83a9b2c7d3e8f1a2b3c4d5
```

**Corresponds to**: [`PATCH /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#patch-v1-connections-_id) (JSON Patch: `remove /debugDate`)

***

## `celigo connections debug-logs <id>`

Fetch the debug logs captured while `debugDate` was set. Logs cover every flow that ran against this connection during the window; `--resource <exportOrImportId>` narrows the same buffered stream to the traffic one export or import sent through the connection. Added in celigo-cli 2026.9.6.

One answer is capped — 100 log files and 2 MB by default — and holds the newest log files that fit. Since celigo-cli 2026.11.2, `--time-gt <ms>` reads the log forward: the answer then holds the oldest log files newer than that time. A note on stderr names the `--time-gt` value that reads on from the answer:

```
Log files written after these: read on with --time-gt 1790000000000.
```

Since celigo-cli 2026.11.2, stderr also says when the cap left log files out. On a plain read, the older log files are missing, and `--time-gt 0` reads the log from its start:

```
Note: the answer reached its cap and holds only the newest log files: older log files were left out. Read the log from its start with --time-gt 0, then on with the --time-gt each answer names.
```

On a read forward, more log files follow:

```
Note: the answer reached its cap: more log files follow these. Read on with --time-gt 1790000000000.
```

Since celigo-cli 2026.11.2, the credentials of the captured requests print as `********`: the value of each credential header, and a URL's userinfo and credential query parameters. Every other line prints as the platform stored it. See [Credentials in a run's result](https://developer.celigo.com/cli/using-the-cli/output-formats.md#credentials-in-a-runs-result).

When `--resource` names an id that is no export or import, the API answers `404`. Since celigo-cli 2026.11.2, the hint names that id; earlier releases' hint called the connection missing or an end user's copy.

**Signature**

```bash
celigo connections debug-logs <id> [--resource <exportOrImportId>] [--time-gt <ms>]
```

**Arguments**

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

**Flags**

| Flag                            | Type    | Default | Description                                                                                                                                                                                                                                                                                 |
| ------------------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--resource <exportOrImportId>` | string  | —       | Only the traffic one export or import sent through the connection. Added in celigo-cli 2026.9.6.                                                                                                                                                                                            |
| `--time-gt <ms>`                | integer | —       | Only log files newer than this time, in epoch milliseconds, oldest first: pass the value a previous run named to read on from it. Any other value is refused before the request: `--time-gt takes epoch milliseconds (e.g. 1790000000000), not 'yesterday'.` Added in celigo-cli 2026.11.2. |

**Example**

```bash
celigo connections debug-logs 5f83a9b2c7d3e8f1a2b3c4d5

# Just one import's traffic on a busy connection
celigo connections debug-logs 5f83a9b2c7d3e8f1a2b3c4d5 --resource 6a1b2c3d4e5f6a7b8c9d0e1f

# Read the log from its start, then on with the --time-gt value each answer names
celigo connections debug-logs 5f83a9b2c7d3e8f1a2b3c4d5 --time-gt 0
celigo connections debug-logs 5f83a9b2c7d3e8f1a2b3c4d5 --time-gt 1790000000000
```

**Corresponds to**: [`GET /v1/connections/{_id}/debug`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#get-v1-connections-_id-debug), or [`GET /v1/connections/{_id}/debug/{typeId}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections) with `--resource` — `typeId` is the export or import id. `--time-gt` is sent as the `time_gt` query parameter.

***

## `celigo connections delete-debug-logs <id>`

Delete the captured debug logs for a connection. Prompts for confirmation unless `-y` is passed.

**Signature**

```bash
celigo connections delete-debug-logs <id> [-y]
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections delete-debug-logs 5f83a9b2c7d3e8f1a2b3c4d5 -y
```

**Corresponds to**: `DELETE /v1/connections/{_id}/debug`

***

## `celigo connections authorize <id>`

Complete an OAuth2 authorization flow for a connection that has `needsAuthorization: true`. Fetches the provider's authorization URL, opens it in your browser (or prints it), then polls the connection until it shows the authorization, then pings to verify. Works for HTTP OAuth, Salesforce, and every other OAuth2-backed connection type.

Since celigo-cli 2026.10.1, the command waits for evidence of the authorization — `needsAuthorization` turning `false`, or the tokens saved onto the connection — instead of calling a connection nobody authorized `authorized and online` on its first poll, and judges the closing ping by its response body, as `ping` does: a failed ping prints `Connection authorized but ping failed: <reason>`. The flow it opens stores the credential on the connection, so `authorize` requires `operate` mode; since celigo-cli 2026.10.1, `read` mode refuses it before any request.

Since celigo-cli 2026.11.1, the poll compares against a copy of the connection read after the authorization URL is requested and before the browser opens, so only a save made after that counts. Requesting the URL can save the connection itself: the platform can store what the sign-in needs, such as the PKCE verifier, before it returns the URL. Earlier releases compared against the copy read before the request and took that save for the provider's callback. Their first poll printed `Authorization detected`, pinged a connection that held no tokens, and said the tokens were saved.

**Signature**

```bash
celigo connections authorize <id> [--timeout <seconds>] [--print-url]
```

**Arguments**

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

**Flags**

| Flag                  | Type    | Default | Description                                                                                                                                                |
| --------------------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--timeout <seconds>` | integer | `180`   | How long to poll before giving up. Since celigo-cli 2026.10.1, a value that is not a positive whole number of seconds is refused before the browser opens. |
| `--print-url`         | boolean | `false` | Print the authorization URL instead of opening a browser (useful for headless environments).                                                               |

**Example**

```bash
celigo connections authorize 5f83a9b2c7d3e8f1a2b3c4d5 --timeout 300
celigo connections authorize 5f83a9b2c7d3e8f1a2b3c4d5 --print-url
```

**Corresponds to**: `GET /v1/connection/{_id}/oauth2` (operationId: `getConnectionOAuth2AuthorizationUrl`) to obtain the authorization URL, followed by polling [`GET /v1/connections/{_id}`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#get-v1-connections-_id) and a final [`POST /v1/connections/{_id}/ping`](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/connections#post-v1-connections-_id-ping).

***

## `celigo connections purge-messages <id>`

Purge queued messages for a connection. Prompts for confirmation unless `-y` is passed.

> ⚠️ **`purge-messages` discards queued messages.** Queued messages for this connection are dropped and cannot be recovered. Any in-flight data waiting on the queue is lost.

**Signature**

```bash
celigo connections purge-messages <id> [-y]
```

**Arguments**

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

**Flags**

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

**Example**

```bash
celigo connections purge-messages 5f83a9b2c7d3e8f1a2b3c4d5 -y
```

**Corresponds to**: `POST /v1/connections/{_id}/purgemessages` (operationId: `purgeConnectionMessages`)

***

## Gotchas

* **`type` is lowercase.** Connection `type` values (`http`, `netsuite`, `ftp`, `salesforce`, `rdbms`, `s3`, …) are lowercase. The `adaptorType` field on exports and imports is PascalCase (`NetSuiteDistributedImport`, `HTTPExport`). Mixing the two cases is the most common cause of `422 Unprocessable Entity` errors.
* **NetSuite connections need `distributed: true`** and `suiteAppInstalled: true`. Without them the SuiteApp bridge won't pick up the connection and every NetSuite flow will fail to submit. When NetSuite flows fail on missing or outdated Celigo components, `connections suiteapp-status <id>` reports live whether the SuiteApp and legacy bundle are installed in the NetSuite account and their versions, and `connections ping <id> --distributed` pings that adaptor rather than the connection (both celigo-cli 2026.9.6).
* **Resources don't cross environments.** A flow can reference only connections that live in the same environment. The API rejects references to resources in another environment.
* **OAuth connections can share an iClient.** When several connections point at the same provider (Salesforce, NetSuite OAuth, HubSpot, …), register one [iclient](https://developer.celigo.com/cli/commands/iclients.md) and reference it from each connection so credentials rotate in one place.
* **`update` refuses masked payloads by default.** `GET /v1/connections/{id}` returns encrypted fields as `******`. Piping GET → update without editing will abort listing every masked path. Pass `--force` to send the masks back — each keeps its stored secret — or replace a mask with a new value (or `""` to clear). Never delete a masked field to get past the check: the PUT clears an omitted secret, and a static-token connection (no `refreshMethod`) without its token is refused (422).
* **`set` reaches the concurrency settings since celigo-cli 2026.9.6.** `<adaptor>.concurrencyLevel`, `<adaptor>.targetConcurrencyLevel`, `_borrowConcurrencyFromConnectionId` (`=null` clears it), `autoRecoverRateLimitErrors`, and `endUserProvidedFields` join `name`, `debugDate`, and `debugUntil` on the PATCH whitelist — an atomic PATCH that never re-sends encrypted fields. Until then every one of them was refused, because the GET + PUT round-trip it would have needed re-sends the masked secrets. The adaptor block is the connection's `type` (`http.concurrencyLevel`, `netsuite.targetConcurrencyLevel`); while `autoRecoverRateLimitErrors` is `true` (the default), the platform manages `concurrencyLevel` itself, so set `targetConcurrencyLevel` instead — on an `http` connection the level follows it. To fix the level yourself, set `autoRecoverRateLimitErrors=false` in the same call, which unsets the target. Anything outside the whitelist goes through `update --force` with the whole connection: the masks sent back keep the stored secrets.
* **`set` reaches more fields since celigo-cli 2026.11.2.** `aiDescription`, an HTTP connection's rate-limit rules (`http.rateLimit.failStatusCode`, `.failPath`, `.failHeaders`, `.limit`), and an AS2 or VAN connection's content-based routing script (`<as2|van>.contentBasedFlowRouter._scriptId` with `.function`) join the PATCH whitelist. `http.rateLimit.limit` is accepted only at a concurrency of 1, and a rate-limit or routing-script field assigned on a connection of another type is refused before the PATCH.
* **`debug-logs` is shared.** Turning on debug collects traffic from every flow that uses the connection during the window — expect noise if the connection is hot. `--resource <exportOrImportId>` narrows the same stream to one export or import's traffic (celigo-cli 2026.9.6). One answer is capped; since celigo-cli 2026.11.2, stderr says when the cap left log files out, and `--time-gt <ms>` reads the log forward.
* **HTTP connections are connector-first (celigo-cli 2026.9.1).** Run `http-connectors match <url|name>` first, then `connections create --connector <id>`. A hand-written `type: http` body whose base URI a pre-built connector serves is refused (`--allow-raw-http` overrides), and so is a connector connection whose `http.auth.type` the connector's form does not offer (`--auth-type <type>` confirms). The API accepts both shapes and neither authorizes the way the connector expects.
* **The connector's form is the source of the connection's defaults.** `--connector` copies the form's pre-configured fields and lists the fields you must set (credentials, `settings.*`, scopes) on stderr; nothing is guessed. A grouped connector is created from one API group (`--api`), and a connection uses the connector's `legacyId` as its `assistant` value. The Celigo APIs connector's form lists no field to set, but the platform still requires `accessScope`; since celigo-cli 2026.10.2 the stderr notes name it.
* **An empty `http._iClientId` can be correct.** A connector that ships a Celigo-managed (global) iClient authorizes through it; `connections get` says so on stderr. Only when the connector expects your own iClient is the empty field something to fix before `connections authorize`.
* **Trading partner connectors are linked, not copied.** `--tp-connector` sets `<transport>._tpConnectorId` (since celigo-cli 2026.10.1; earlier releases wrote a root `_tpConnectorId` the platform dropped) and checks the transport; the connector form's connection values (a placeholder partner id, a staging AS2 URI) are stand-ins, and the partner's host and identity are the fields you set. A hand-written `as2`/`ftp`/`s3`/`van` body named after a partner that has a connector gets a stderr note, never a refusal. The interchange identity (ISA/GS ids) lives on the [EDI profile](https://developer.celigo.com/cli/commands/edi-profiles.md), not on the connection.
* **End users' copies are not served here.** When a server connection's `endUserProvidedFields` asks each end user for their own credentials, what an end user supplies is stored in a copy of the connection (`connectionRole: mcpChild`). `list` never shows a copy, and `get`, `audit`, and `debug-logs` answer `404` for one. [`mcp-servers connections <serverId> --end-users`](https://developer.celigo.com/cli/commands/mcp-servers.md#celigo-mcp-servers-connections-less-than-id-greater-than) lists the copies, `end-users connection <id>` reads one with its credentials masked, and `end-users delete-connection <id>` deletes it. Since celigo-cli 2026.11.1, a `404` from this group names those routes in its hint.
* **Run a step through another connection.** To run an export or import through a connection other than its own, saving nothing, use [`exports invoke --connection <id>`](https://developer.celigo.com/cli/commands/exports.md#celigo-exports-invoke-id) — a read — or [`imports invoke --connection <id>`](https://developer.celigo.com/cli/commands/imports.md#celigo-imports-invoke-id), which writes every record to the destination (both celigo-cli 2026.10.1).
* **Permission modes.** `list`, `get`, `applications`, `dependencies`, `audit`, `ping`, `suiteapp-status`, and `debug-logs` work in `read` mode. `enable-debug`, `disable-debug`, `delete-debug-logs`, `authorize`, `purge-messages`, and `set` of `debugDate` or `debugUntil` need `operate`. `create`, `update`, `delete`, and any other `set` need `full`. Since celigo-cli 2026.10.1, `read` mode refuses the `operate` verbs before any request — `authorize` used to run its reads first, and could exit `0` for a connection that only needed its ping. See [Profiles & regions](https://developer.celigo.com/cli/getting-started/profiles.md#permission-modes).

## Related

* [exports](https://developer.celigo.com/cli/commands/exports.md) — every export references a connection via `_connectionId`.
* [imports](https://developer.celigo.com/cli/commands/imports.md) — every import references a connection via `_connectionId`.
* [iclients](https://developer.celigo.com/cli/commands/iclients.md) — shared OAuth credential stores that connections can point at.
* [http-connectors](https://developer.celigo.com/cli/commands/http-connectors.md) — `match` finds the pre-built connector for a URL or an application name before `create --connector`.
* [trading-partner-connectors](https://developer.celigo.com/cli/commands/trading-partner-connectors.md) — the connectors `create --tp-connector` links.
* [edi-profiles](https://developer.celigo.com/cli/commands/edi-profiles.md) — `edi-profiles create --tp-connector` scaffolds the partner's interchange envelope.
* [mcp-servers](https://developer.celigo.com/cli/commands/mcp-servers.md) — `endUserProvidedFields` names the credential fields an MCP server's end users supply themselves; `mcp-servers connections <id> --end-users` lists their `mcpChild` copies.
* [on-premise-agent-groups](https://developer.celigo.com/cli/commands/on-premise-agent-groups.md) — bind a connection to an ordered set of on-premise agents with `_agentGroupId`, in place of `_agentId`. A connection binds one or the other, never both.


---

# 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/connections.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.
