> 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/using-the-cli/scripting.md). Agents can also search and read this documentation through its [MCP server](https://developer.celigo.com/~gitbook/mcp).

# Scripting patterns

The CLI is designed to compose with standard Unix tooling. A few patterns cover 90% of what you'll want to do in bash, PowerShell, or CI.

## Get a single field

```bash
celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 --jq '.name'
```

Or pipe to jq:

```bash
celigo integrations get 5f83a9b2c7d3e8f1a2b3c4d5 --format json | jq -r '.name'
```

## Filter a listing client-side

Resource `list` commands don't take server-side filters (unlike `jobs list` and `audit list`). Filter in jq:

```bash
# All disabled flows
celigo flows list --jq '[.[] | select(.disabled) | ._id]'

# All flows in one integration
celigo flows list \
  --jq '[.[] | select(._integrationId == "5f83a9b2c7d3e8f1a2b3c4d5") | {_id, name, disabled}]'
```

`--jq` takes a single expression argument — it doesn't accept jq's own flags like `-r` or `--arg`. Inline any values directly into the expression. A result that is one string is emitted raw (no surrounding quotes), so you rarely need `-r`. Several strings or numbers — the stream `.[] | ._id` — print as one JSON array, not one value per line; for a shell loop, collect them and join them into one string: `--jq '[.[] | ._id] | join("\n")'`. When you do need jq flags, pipe `--format json` to a standalone `jq` instead.

## Read an endpoint no command covers

> Added in celigo-cli 2026.10.1.

`celigo platform get <path>` sends one `GET` to any path of the integrator.io REST API, with the profile's token and host, for the public endpoints no command group covers. Use it instead of reading the token out of `~/.celigo/config.json` to call an endpoint by hand: it goes through the same client as every command (retries, the pin policy), works in every mode, and `--jq` and `--format` apply as usual. See [platform](https://developer.celigo.com/cli/commands/platform.md).

```bash
celigo platform get v1/preferences
```

The path starts with `v1/`; a full URL is refused, because the host always comes from the profile. It sends exactly one request, so a list that pages returns only its first page — prefer the group's own command when one exists. There is no write verb.

## Bulk enable or disable

```bash
# Disable every flow whose name matches a pattern
celigo flows list --jq '[.[] | select(.name | test("prod-v1-.*")) | ._id] | join("\n")' \
  | xargs -I {} celigo flows set {} disabled=true
```

## Diff two accounts

```bash
celigo --profile prod integrations list --jq '[.[].name] | join("\n")' | sort > prod.txt
celigo --profile eu   integrations list --jq '[.[].name] | join("\n")' | sort > eu.txt

diff prod.txt eu.txt
```

## Per-file JSON dump (for Git diffs)

`celigo pull` is the built-in way: it writes the account (or one integration) as a tree of per-resource JSON files — one folder per integration, one file per flow, export, import, connection, script, and so on — with a manifest that lets `celigo status`, `celigo diff`, and `celigo push` work against it. Commit the tree and the diffs are Git diffs. See [The local tree](https://developer.celigo.com/cli/local-tree.md) and [pull](https://developer.celigo.com/cli/local-tree/pull.md).

```bash
# --no-symlinks writes links as pointer files, so the tree survives every platform's checkout
celigo pull --dir ./envs/prod --no-symlinks
git add envs/prod && git commit -m "Account snapshot $(date +%F)"
```

The manual alternative — one `get` per resource — still works when you want a flat dump of one resource type and nothing else:

```bash
mkdir -p snapshot/flows
celigo flows list --format json | jq -r '.[]._id' | while read -r id; do
  celigo flows get "$id" --format json > "snapshot/flows/$id.json"
done
git add snapshot/ && git commit -m "Flow snapshot $(date +%F)"
```

For a live local index (fast search + dependency graph) use `celigo account snapshot` instead — it writes to `~/.celigo/indexes/<profile>.json`.

## CI: fail on lint

```bash
set -o pipefail    # the gate also fails when account lint itself fails

# -n with inputs: a clean account prints [] (nothing on stdout before celigo-cli 2026.11.2), and both pass
celigo account lint --format json \
  | jq -e -n '[inputs[] | select(.severity == "error")] | length == 0' \
  || { echo "Lint errors, or the lint did not run; see above."; exit 1; }
```

## CI gates for a pulled tree

A committed `celigo pull` tree gives a pipeline four gates, each an exit code. See [Workflow](https://developer.celigo.com/cli/local-tree/workflow.md) for the team workflow around the tree and [push](https://developer.celigo.com/cli/local-tree/push.md) for what a push refuses.

```bash
# The checkout matches its manifest (no edits committed without a push, no deploy left behind).
# Informational by default, like `git status`; --exit-code turns it into a gate.
celigo status --exit-code --dir envs/prod

# The files this change touched differ from the live account (exit 1 when anything differs).
celigo diff --exit-code --dir envs/prod

# Plan the push without writing anything: exit 1 when any planned item is refused —
# a half-merged file, invalid JSON, a document outside the tree's scope. Gated like push.
celigo push --dry-run --dir envs/prod

# Validate the tree against the platform's published API schemas, offline (no token needed).
celigo lint --dir envs/prod
```

`celigo lint` is a usable gate as it stands: its errors (a shape nothing on the account backs, the response-mapping object wrapper, an unparseable file) fail the run, and its warnings do not. `celigo lint --strict` — every warning an error — is **not** yet a usable gate: the published schemas are stricter than the API on real data, so a pristine pull of a real account produces warnings and `--strict` fails everything until the specs catch up.

Set `CELIGO_MODE=read` on the `diff` step and `CELIGO_MODE=full` on the `push --dry-run` step, so the dry run is gated exactly like the push it plans. Since celigo-cli 2026.10.1 `CELIGO_MODE` only tightens a profile's mode: on a CI runner with no config file the default is `full` and the variable names the ceiling the step runs under, but on a machine whose profile stores `read` or `operate`, `CELIGO_MODE=full` does not raise it.

### Promote on merge: two tokens

`celigo promote --to <name>` writes a committed tree into ANOTHER account or environment, so the job holds two identities and the CLI keeps them apart by variable name: `CELIGO_API_TOKEN` (+ `CELIGO_BASE_URL`) is the source session's, and `CELIGO_TARGET_API_TOKEN` (+ `CELIGO_TARGET_BASE_URL`) is the target the `--to` profile names on a machine that has no such profile. The source token never stands in for the target: a job that sets only `CELIGO_API_TOKEN` is refused rather than writing the tree back into the source account. See [Promote](https://developer.celigo.com/cli/local-tree/promote.md).

```yaml
name: celigo-promote
on:
  push:
    branches: [main]
permissions:
  contents: write                                   # the target-file write-back commit
concurrency: celigo-promote-production            # one writer per target at a time
jobs:
  promote:
    runs-on: ubuntu-latest
    env:
      CELIGO_TARGET_API_TOKEN: ${{ secrets.CELIGO_PRODUCTION_TOKEN }}   # the TARGET's full-mode token
      CELIGO_TARGET_BASE_URL: ${{ secrets.CELIGO_PRODUCTION_BASE_URL }} # omit for https://api.integrator.io
      CELIGO_FORMAT: table
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: npm install -g @celigo/celigo-cli
      - run: celigo promote --to production --dry-run      # exit 1 on any refusal: stop here
      - run: celigo promote --to production -y
      - name: Commit the target file write-back
        run: |
          git config user.name celigo-ci
          git config user.email celigo-ci@users.noreply.github.com
          git add .celigo/targets/production.json
          git diff --cached --quiet || git commit -m "Promote to production [skip ci]" && git push
```

The job needs no source token at all. Commit `.celigo/targets/production.json` after every promote — it holds the target's id map and the optimistic-lock tokens the next promote checks.

## Check the exit status before you use the output

A command that fails exits with a non-zero status and says why on stderr. Since celigo-cli 2026.11.2, in JSON format and with stdout not a terminal, it also prints the error on stdout as one JSON document, `{"error": "…", "command": "celigo …"}`, unless it already printed something there. The stdout of a failed command is therefore not empty: gate on the exit status, never on empty output. [When a command fails](https://developer.celigo.com/cli/using-the-cli/output-formats.md#when-a-command-fails) lists the rules.

```bash
set -o pipefail    # a pipeline fails when any command in it fails

# Capture, then use: the assignment fails when the command does
flow=$(celigo flows get "$FLOW_ID") || exit 1
jq -r '.name' <<<"$flow"
```

A caller that sees only stdout reads the reason from the document:

```bash
if ! out=$(celigo imports set "$IMPORT_ID" 'http.relativeURI=/v2/orders' 2>/dev/null); then
  echo "set failed: $(jq -r '.error' <<<"$out")"
  exit 1
fi
```

A pipeline runs its last command whether or not the first one failed; `pipefail` changes only the status that the pipeline returns. So the CLI refuses its own error document wherever it reads one, and nothing is sent:

* **As a body or a value.** A `--file` or stdin body, and a `set` value, typed or loaded with `file://`. After a failed `get`, `celigo flows get <id> | celigo flows update <id>` ends with:

  ```
  Stdin holds the error output of a failed 'celigo flows get', not a body, so nothing was sent. That command failed with: (404): …
  ```
* **In a tree file.** A file that `push` or `promote` would send, such as a `flow.json` that the redirected output of a failed `celigo flows get <id>` replaced. The plan refuses the file, so `--dry-run` exits `1`; for a tracked resource, the refusal names `celigo pull --force <path>`, which restores the document.

The CLI recognizes the document by its two keys together: an `error` that is a string, and a `command` that is `celigo` or begins with `celigo` . A filter between the two commands, such as `jq '.disabled = true'`, does not hide it. A body that only has an `error` field — a record for an import, a state value — is read as before.

## Confirmation prompts in scripts and CI

Every `[y/N]` prompt — `delete` on any resource, the purge and cancel verbs, the `rotate-token` verbs of `stacks` and (since celigo-cli 2026.10.1) `on-premise-agents`, `push --prune`, `promote --prune` — is asked on stderr, prefixed with the account it commits to (`[profile 'acme-sandbox' → api.integrator.io] Delete flow 5f83a9b2c7d3e8f1a2b3c4d5? [y/N]`), and needs a terminal to answer. When stdin is not a terminal — a pipe, a CI step, an agent's shell — the prompt cannot be asked, so the command does nothing and exits `1` with the prompt's line followed by:

```
Confirmation needs a person, and stdin is not a terminal. An agent must not answer for the person: ask them in the conversation, and re-run with --yes only once they have approved this exact command. Scripts and CI pipelines pass --yes.
```

Since celigo-cli 2026.9.6. Earlier releases refused with `Confirmation requires a TTY; pass --yes to proceed.` — the one instruction an agent then followed, with its harness deciding whether anyone saw the question. The exit code and the flag are unchanged; only the message is. Declining a prompt interactively (`n`, Enter, or Ctrl-D) does nothing and exits `0` — declining is a successful outcome, being unable to ask is the failure.

### `--yes` / `-y`

`--yes` (`-y`) skips the prompt. Pass it deliberately, per command, in the scripts and pipelines a person set up:

```bash
celigo flows delete 5f83a9b2c7d3e8f1a2b3c4d5 --yes
celigo push --prune --dir envs/prod -y
celigo promote --to production --prune -y
```

The flag is where a person's approval is recorded, so an agent must not add it to get past the refusal: quote the command back in the conversation, wait for the person to approve that exact command, then re-run with `--yes`. See the [rules for agents driving the CLI](https://developer.celigo.com/cli/getting-started/profiles.md#rules-for-agents-driving-the-cli). A confirmed command still prints its `celigo: profile '…' → …` target line on stderr, so a CI log shows which account each write went to.

## Wait for a run

> Added in celigo-cli 2026.11.2.

[`celigo flows run`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-run) returns as soon as the platform queues the run. To wait for the run, pass `--wait`, or run [`celigo jobs wait <jobId>`](https://developer.celigo.com/cli/commands/jobs.md#celigo-jobs-wait) on a job that is already queued. The wait is bounded — `--timeout` seconds, 100 by default — and the exit code says how the run ended: `0` completed, `1` failed or canceled, `75` still in progress at the deadline. Use it in place of a loop that polls `jobs get`.

```bash
celigo flows run "$FLOW_ID" --yes --wait --timeout 300
case $? in
  0)  echo "The run completed." ;;
  75) echo "The run is still in progress. Keep waiting with the 'celigo jobs wait' command on stderr." ;;
  *)  echo "The run failed, was canceled, or did not start."; exit 1 ;;
esac
```

A run that completes with record errors exits `0`; stderr gives their count and the `celigo jobs errors <jobId>` command that lists them. After a `75`, resume with `celigo jobs wait <jobId>`, never with a second `flows run`, which starts another run. See [Bounded waits](https://developer.celigo.com/cli/using-the-cli/exit-codes.md#bounded-waits).

## Handling rate limits

The HTTP client retries a `429 Too Many Requests` automatically, up to 3 times. Since celigo-cli 2026.9.1 it honors the server's `Retry-After` header (delay-seconds or an HTTP-date), capped at 60 seconds; without the header it backs off exponentially. If you're still hitting the limit, you're sending requests too aggressively — reduce parallelism or add `sleep` between loops. For `pull`, `diff`, `push`, and `promote`, lower `--concurrency` (or `CELIGO_CONCURRENCY`; default 8). A create, clone, install, run, or invoke is the exception: since celigo-cli 2026.11.1 a `429` fails it at once, where earlier releases retried it; see [After a timeout, check before you retry](#after-a-timeout-check-before-you-retry).

## After a timeout, check before you retry

Since celigo-cli 2026.10.1 a request that creates or starts something — every `create` and `clone`, `templates install`, `flows run`, `imports invoke`, `ai-agents chat` (added in celigo-cli 2026.10.2), and the other `POST`s that change the account — is sent once. After a timeout or a `5xx` it is not resent, because the first attempt may have landed.

Since celigo-cli 2026.11.1 a `429` is not resent either. Earlier releases retried it, as if a throttled request could not have run; one `integrations create` made two integrations that way. The one resend left is a signed-in session's, after the platform refused its token and the CLI renewed the session; the platform ran nothing then. The `enable` and `disable` toggles of `environments` and `workspace-users` are not resent after a timeout or a `5xx` either, though they still retry a `429`.

The error says so:

```
Request timed out after 30s: POST https://api.integrator.io/v1/flows/5f83a9b2c7d3e8f1a2b3c4d5/run — the request may have reached the server, which may have carried it out; it is not resent, so check for the result before running the command again.
(429): Rate limited — not resent: the platform may have carried out the request before it answered, so check for the result before running the command again.
```

Since celigo-cli 2026.11.1, a `5xx` ends the same way, after the platform's message. Earlier releases printed the `5xx` without that advice, and the `429` as `Rate limited. Please wait and try again.`

A script that retries a failed command should look for the result first:

```bash
# Did the run start? Look for its job before running the flow again.
celigo jobs list --type flow --flow "$FLOW_ID" --limit 5 --format table

# Did the create land? Look the export up by name before creating it again.
celigo exports list --jq 'first(.[] | select(.name == "Orders export") | ._id)'

# Did the install land? Each install creates another integration: look for it before installing again.
celigo integrations list --format table
```

Reads, the read-only `POST`s (previews, queries, and the stateless `processors` parsers, generators, and evaluators), and other `PUT`, `PATCH`, and `DELETE` requests are still retried up to 3 times after a timeout, a `5xx`, or a `429`. Since celigo-cli 2026.10.2, `processors invoke` of any other processor, such as `javascript`, is sent once.

`push` and `promote` send their creates the same way. A create that fails on a timeout, a `429`, or a `5xx` keeps its intent marker, and the next run adopts the resource if it landed; see [Interrupting a push](https://developer.celigo.com/cli/local-tree/push.md#interrupting-a-push).

## Idempotent upsert by name

```bash
ID=$(celigo exports list --jq 'first(.[] | select(.name == "Orders export") | ._id)') || exit 1

if [ -z "$ID" ]; then
  ID=$(celigo exports create --file export.json --jq '._id') || exit 1
fi

# Update specific fields; set never erases the fields you leave out
celigo exports set "$ID" 'name=Orders export' 'http.relativeURI=/api/v2/orders'
```

Each assignment ends in `|| exit 1`, so the script stops when its command fails. Without it, the `-z` test misreads a failed `exports list`: earlier releases printed nothing on stdout, which reads as no match, and since celigo-cli 2026.11.2 the error document is there, which reads as an id. `first(…)` prints nothing when no export matches, and one id when several do. `set` exits `1` when the server answers but keeps a field's previous value — the `not stored` line in [Troubleshooting](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md). On a connection, `set` takes only the credential-free fields its PATCH whitelist names (see [connections](https://developer.celigo.com/cli/commands/connections.md)); change anything else with `celigo connections update <id> --file conn.json`, a full replace whose body holds the real credentials.

## What changed for scripts in celigo-cli 2026.11.2

These changes in celigo-cli 2026.11.2 can change what an existing script sees:

* **A failed command prints its error on stdout too.** In JSON format, with stdout not a terminal, a command that fails having printed nothing on stdout prints one JSON document there: `{"error":"(422): Validation error: …","command":"celigo imports set"}`. Stderr and the exit code are unchanged. The stdout of a failed command is no longer empty, so gate on the exit status (`set -o pipefail`), never on empty output. `--format table`, a terminal, and a command whose stdout is a file's bytes or a diagram's text print no document. See [When a command fails](https://developer.celigo.com/cli/using-the-cli/output-formats.md#when-a-command-fails).
* **The CLI refuses its own error document as input.** A `--file` or stdin body, a `set` or `integrations persist-settings` value, and a tree file that `push` or `promote` would send are refused when they hold the error output of a failed command: `Stdin holds the error output of a failed 'celigo flows get', not a body, so nothing was sent. That command failed with: …`. See [Check the exit status before you use the output](#check-the-exit-status-before-you-use-the-output).
* **A blank `--token` or `--base-url` is refused** before any command runs, as a blank `--profile` is: `The --token value is empty. Provide a token (this usually means a shell variable was unset), or drop --token to use CELIGO_API_TOKEN or the profile's credential.` Earlier releases read `--token "$TOKEN"` with the variable unset as the flag left out, and ran the command, writes included, with `CELIGO_API_TOKEN` or the profile's credential. See [Global flags](https://developer.celigo.com/cli/getting-started/global-flags.md#combine).
* **A blank option value is refused before any request.** An option with an empty value — usually an unset shell variable — was read as the option left out, so the command ran unfiltered or with a default: `flows run --export-ids ""` ran every export, `--file ""` read stdin, `profile add --mode ""` created a full-mode profile, `apis clone --environment ""` cloned into the token's own environment, and `promote --integration ""` promoted the whole tree. The refusal names the option: `The --export-ids value is empty. Provide a non-empty value (this usually means a shell variable was unset), or leave --export-ids out.` It covers the list filters, the clones' `--name`, `--integration`, and `--environment`, `--dir` on `status`, `diff`, `lint`, `resolve`, `promote`, and the `graph` commands, and `lint --specs`. A `graph` command given both a `<ref>` and `--file` is refused; it read the file and ignored the ref. Time windows are read as timestamps, and in order, before anything is sent. A value that the request cannot use is refused the same way: a `jobs list --created-gte` or `--created-lte` that is not a timestamp, a `syncs events --type` other than `Schema Drift` or `Data Catalog`, a `--sort` or `--order` that `storage list` and `storage search` do not take, a `--status` that `mcp-servers request-history` does not list, a `processors` `--edi-profile-id` that holds a `/` or another character that a path segment cannot hold, and `storage query` with both a SQL argument and `--file`.
* [**`flows run`**](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-run) **exits `1` when the platform answers a rejected run.** An answer that held an error and no job printed as a queued run, exit `0`. The command now fails with `Flow <id> was not run — the platform answered with an error and no job: …`. `integrations delete-api-group` exits `1` when the platform keeps a group that still holds APIs; it reported the group deleted.
* **`list --integration <id>` fails for an integration that does not exist.** `flows`, `exports`, `imports`, `async-helpers`, and `syncs` printed `[]` and exited `0`, because the platform answers `200` with an empty list there. They now read the integration when the list is empty, and report its `404`.
* **`update` no longer creates a document.** On `iclients`, `http-connectors`, `http-connector-resources`, `http-connector-endpoints`, and `trading-partner-connectors`, the platform's `PUT` creates a document under an id nothing holds. `update` now reads the document first and sends nothing when it does not exist, so a mistyped id ends in a `404`, exit `1`. `push --force-remote` follows the same rule: it refuses to re-create a resource that was deleted since the pull.
* **`set` is stricter about what it sends.** [`imports set <id> lookups=…`](https://developer.celigo.com/cli/commands/imports.md#celigo-imports-set-less-than-id-greater-than-assignments) on an HTTP import is refused before anything is written, and the refusal names `http.lookups`: the platform drops a top-level `lookups` array there and answers `200`. `ai-agents set` and `guardrails set` refuse a bare rules array for a filter, and send JSON-looking text as text to a field that the API types as a string, as `imports set` does. A `<field>=null` for a path that does not exist removes nothing; it wrote empty parents or `null` array elements into the `PUT`. A dotted array index (`pageProcessors.0`) is read as `pageProcessors[0]`, and an index past the end of the array is refused. The refusal of an assignment that has no field name before an `=` no longer repeats its text: `Invalid assignment 1 of 1: it has no field name before an '=' (its text is not repeated here, since it may hold a value). Use key=value.` It read `Invalid assignment '<text>'. Use key=value.`
* **`set` sends more fields as one PATCH, and prints the PATCH's answer for them.** When every field that a `set` assigns is one of these, it sends one PATCH, where earlier releases read the document and sent it back with a PUT: `_networkPolicyId` on `exports`; `aiAgent.attachedKnowledgeBaseIds` on `imports` and `ai-agents`, and `guardrail.aiAgent.attachedKnowledgeBaseIds` on `imports` and `guardrails`; `failOnOfflineConnection` and `isSchemaValidationActive` on `apis`; `tag`, `celigoAgentAutoRunMode`, `iLMIgnore`, `version`, and `updateInProgress` on `integrations`; and `logging.mode` and `logging.debugUntil` on `mcp-servers`. `set` then prints the PATCH's answer. When that answer has no body, stdout is empty, stderr says `Updated <singular> <id>.`, and the exit code is `0`; no [`not stored`](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md#not-stored-after-set) check runs, because that check compares the answer of a PUT. Earlier releases printed the updated document on stdout, so a script that read the document from `set`'s stdout gets an empty stdout for these fields. A `set` that also assigns a field outside the list, or a `null` for `version`, `updateInProgress`, or an `apis` field, still goes as a GET + PUT. On `connections`, `set` now takes `aiDescription`, the `http.rateLimit` fields `failStatusCode`, `failPath`, `failHeaders`, and `limit`, and the `contentBasedFlowRouter` script of an AS2 or VAN connection (`_scriptId` and `function`); it refused them.
* **Integration App settings are sent as the JSON each field's declared type takes.** [`integrations persist-settings`](https://developer.celigo.com/cli/commands/integrations.md#celigo-integrations-persist-settings) assignments and `push --allow-connector-settings` send a `number` field's number as its digits (`…=50` sends `"50"`), and a JSON array typed for an `expression` field as that text. They refuse a value its field cannot take, where earlier releases sent it: `null` for a text field, anything but `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 calendar date alone for a date field, any value for a file upload, and a bare value that a value-and-label select does not list. A field that yields value and label also refuses an object without `id` or `label`, an array for a single select, and an empty member of a multiselect, and an `expression` or `text` field refuses a `******` mask nested in a JSON array or object. A raw `--file` or stdin body is still sent as given, except that `persist-settings` refuses a flow toggle that is not nested under a store id on an app with several stores. A static map sent as `{}` in a raw body now reads back `not-saved`, exit `1`; it read `unchanged`. A static map of columns is compared on its rows; it read `unchanged` whatever was saved.
* **More writes are refused before they are sent**: `ai-agents invoke <id>` and `guardrails invoke <id>` with a piped `{"import": …}` document, which the platform ignored while it ran the saved resource; `apis clone --dry-run` with `--environment`; `processors render` and `processors filter` with data or rules that are not a JSON object; a lookup cache entry whose value is over the platform's 64 KB row limit, in `lookup-caches put-data` and in `push`; `edi-transactions update-fa-status` with a `faStatus` other than `accepted` or `rejected`; `edi-transactions list` with a window whose start is not before its end; `file-definition-rules generate` and `parse` with `--document-type 0` when the catalog says EDIFACT is not supported; `ai-agents update` and `guardrails update` with a router whose `script` is `null`; and `connections create --connector` or `--tp-connector`, and `edi-profiles create --tp-connector`, with a connector reference that holds no letter or digit.
* [**`flows run-stats`**](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-run-stats) **and** [**`flows delete-execution-logs`**](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-delete-execution-logs) **take a calendar date or a timestamp, and nothing else.** A day the calendar does not have (`2026-02-30`), a bare number, a month name (`Oct 5`), slashes (`2026/10/01`), a month or a year alone, and an RFC 2822 date are refused. Earlier releases sent another instant for these: `2026-02-30` went as 2 March. An offset of hours alone (`+05`) is now accepted.
* **A file a command reads must be UTF-8, or UTF-16 with a byte-order mark.** `--file`, a `file://` value, a body on stdin, the data and template files of `processors parse` and `render`, and `storage query --file` are read as UTF-16 where a byte-order mark says so — what Windows PowerShell 5.1's `>` and `Out-File` write — and as UTF-8 with or without one. A file that is neither is refused: `The file 'body.json' cannot be read as text: line 1 holds bytes that are not UTF-8 — a file saved in another encoding, such as Windows-1252. …`. Earlier releases read such a file as UTF-8 and sent U+FFFD in place of those bytes. They also kept a UTF-8 byte-order mark in the text: a JSON `file://` value behind one was sent as a string, and a CSV file's first header began with the mark. See [Troubleshooting](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md#cannot-be-read-as-text).
* **A `.celigoignore` that is not UTF-8 stops the tree verbs.** Saved as UTF-16, or in another 8-bit encoding, its rules matched nothing, so a parked folder read as deleted. `pull`, `status`, `diff`, `push`, `promote`, `lint`, `resolve`, and the `graph` commands now refuse such a file before any request, and say how to save it again. `push` also refuses, at plan time, an edited companion file — an `instructions.md`, a script's source — that is not UTF-8 text, and `lint` reports it as an error. A document, a lookup cache's `data.json`, or a sync's dataset file that is not UTF-8 is refused by `push`, `lint`, and `diff` in the same way; it was sent with U+FFFD in it, or reported as an unexpected token. See [`.celigoignore`](https://developer.celigo.com/cli/local-tree.md#celigoignore).
* **`push --prune` holds more deletes.** A delete is refused at plan time when a place the tree cannot read could explain the missing file: a parking folder that is a symbolic link, or a document that does not parse. `celigo status` lists such a place as `unaccounted:` (the `unaccounted` array in `--format json`), and its JSON report marks a create that an interrupted push recorded as `pendingCreate`. `celigo diff` says how many tracked files are missing, where it said there were no local changes. With `--format json`, `push --prune` and `promote --prune` name each delete on stderr before they ask. See [Prune deletes](https://developer.celigo.com/cli/local-tree/push.md#prune-deletes).
* **`promote --prune` plans fewer deletes and words its plan differently.** It no longer plans the delete of a target copy whose recorded path a `.celigoignore` rule covers, and it refuses the delete of a target copy that another tracked source document maps to. Each delete line reads `(target copy of a resource this tree does not track)`; it read `removed from this tree`. A `map:` line reads `recorded binding, matched by name` or `recorded pin (--map)` for a binding an earlier run recorded. Read the plan from `--format json`, whose bindings gain `recorded` and `renamed`, and not from its text. `diff --target` no longer lists an unmapped document that `promote` refuses as `local only (promote will create)`: a stderr note says it was not compared, and `--exit-code` does not count it.
* **`push` and `promote` refuse more at plan time**, so their `--dry-run` exits `1`. Both refuse an error from the new `connection-binding` logic rule, unless `--allow-lint-errors`: an MCP server's tool entry that leaves a connection of its Tool unbound. A push of that Tool, or of an export or import that is one of its steps, is refused as well while a tracked MCP server publishes the Tool that way, a binding that was already missing on the account included. In a neutral tree, `push` refuses a binding key of another type in a reference field, such as `"_connectionId": "@bindings/stack/runtime"`, and an update or a delete of an MCP OAuth provider that a 2026.9.x pull wrote into the tree as a document. `promote` refuses a masked `******` value, or the `responseMapping.fields: [null]` that a corrupted step holds, in a document that it creates again because its target copy was deleted. Without `--force-remote`, it refuses a target copy that was edited at a reference this run fills with a newly created resource. It also sends nothing when its target file changed after the plan was computed, as another promote or a `git pull` can do while the command waits; promote again. Both now send a connection's `autoRecoverRateLimitErrors` as the tree file holds it; an edit of that flag was never sent. See [Lint and resolve](https://developer.celigo.com/cli/local-tree/lint-and-resolve.md#logic-rules).
* **`celigo lint` reports differently.** The bundled schema pack is `@celigo/api-specs` 0.2.308, and `lint` no longer judges the fields the platform writes itself. A fresh pull of an unedited tree therefore draws fewer warnings, which changes what `--strict` fails on. The new `connection-binding` rule is an error where the MCP server's document, its Tool, or a step of that Tool is new or edited, and a warning in a tree as it was pulled. `lint` now reports an `await` inside a function that is not `async`, and warns when an MCP server's step entry pins the authored connection while `overrides.connections[]` maps that connection elsewhere. In a neutral tree it reports a binding key of another type in a reference field as an error. It no longer refuses a script whose `import` has no space before or after `from`, as a bundler's minified output has. It no longer reports a null router `script` or a `responseMapping` wrapper inside captured sample data, such as `sampleData` or `mockOutput`.
* **A `401` for a credential the platform accepted reads `Not permitted`.** A script that matches `Authentication failed` no longer matches this answer: `(401): Not permitted: You don't have the required permissions to perform the action.` A signed-in session does not renew its token for it. `celigo pull` names a listing it skipped by its folder — `skipped on-premise-agents: …`, where it read `skipped agent: …`. See [Troubleshooting](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md#id-401-unauthorized).
* **Other messages on stderr changed.** A download that is cut after its headers fails with `… failed: the transfer ended before the whole body arrived`; it failed with the one word `terminated`. A `4xx` that answers the resend of a write ends `— the answer to a resend: an earlier attempt ended in … and may have been carried out, so check for its result before running the command again.` A `5xx` that answers `environments` or `workspace-users` `enable` or `disable` says that the toggle was not resent. A mode refusal that a command makes itself names `CELIGO_MODE` when the variable set the mode. The lock refusals of `push` and `promote` print a path that holds a space in single quotes, as in `celigo diff 'exports/Get Orders/export.json'`.
* **A run's result masks more credentials.** `connections debug-logs` masks the credentials of the requests it captured. A request's parsed `queryParams`, a run's `relativeURI` in `apis request-history` and `tools request-history`, and a captured request under any key print `********` for their credentials. The `Access-Control-Allow-Credentials` response header is no longer masked. See [Credentials in a run's result](https://developer.celigo.com/cli/using-the-cli/output-formats.md#credentials-in-a-runs-result).
* **Output shapes.** [`exports invoke --all`](https://developer.celigo.com/cli/commands/exports.md#celigo-exports-invoke-id) adds an `errors` key that holds every page's errors, beside `data` and `pages`, and exits `1` when an answer repeats both the `pagedExportState` it was sent and the page before it, where it invoked the export again up to its page cap. [`account lint`](https://developer.celigo.com/cli/commands/account.md#celigo-account-lint) and `account search` print `[]` in JSON format when nothing matches; they printed nothing on stdout. [`network-policies dependencies`](https://developer.celigo.com/cli/commands/network-policies.md#celigo-network-policies-dependencies) lists the listener exports a policy restricts as `listenerExport` rows, and `network-policies delete --force` clears the policy from them too. `integrations settings` lists a static map of columns as `{"value": [rows]}`; it listed `{}`. `edi-transactions list --document-type 850` returns the X12 transactions the platform labels `PO 850`; it printed an empty list. `recycle-bin get`, `restore`, and `purge` find a deleted storage item beyond the newest 1,000, and `file-server accounts list` reads every page. `edi-transactions download-file` by document number or by lookup filters writes the file's bytes as they came; bytes that are not UTF-8 came out as U+FFFD. `celigo diff` prints `(set)` for the whole `encrypted` object of a connection or an iClient, and for a number in a secret-named field.
* **`--format` and `CELIGO_FORMAT` are read without regard to letter case.** `CELIGO_FORMAT=TABLE` prints a table; earlier releases read it as `json`. Under `--format table`, `ai-agents list`, `guardrails list`, `trading-partner-connectors list`, and `storage get` draw the columns `--fields` names.
* **`--jq` reads the JSON document under `--format table`** on `storage query`, `storage query-results`, `network-policies dependencies`, `integrations settings`, and `integrations persist-settings`. A `--jq` that fails after a write keeps the reply on more verbs, among them the clones, `topics publish`, `syncs run`, the invites, `jobs cancel`, `alerts set`, and `groups add-members`: the error starts `The request succeeded`, the reply prints on stderr, and the exit code stays `1`. After a run is queued, the error names its job: `(queued _jobId …)`. A filter that starts with a minus sign, such as `-length`, runs as the filter; it was passed to jq as an option.
* **Proxies.** A proxy that closes the tunnel request without answering it fails the request at once. A proxy that closed one tunnel request and answered the next used to succeed on the second connection. A proxy variable whose value is not a URL, such as `HTTPS_PROXY=proxy.corp:3128`, is refused by the variable's name.
* **A command ends without a stack trace when its reader has gone.** `celigo … | head -1` closes stdout early; `push` and `promote` in table format, which print in more than one step, ended with `write EPIPE` and exit `1`. A command also keeps its exit code when stderr cannot be written: `celigo flows delete <id> --yes` with a closed stderr deleted the flow and exited `1`. An error on stdout that is not a closed pipe, such as a full disk under `> file`, now always ends the command with exit `1`.
* **A help display read through a pipe is complete.** `celigo --help` could arrive cut at 8,192 bytes, with exit `0`.
* **The managed policy file is read in more encodings.** A `/etc/celigo/policy.json` or `%ProgramData%\Celigo\policy.json` saved as UTF-16, or as UTF-8 with a byte-order mark, now forces `profile_pin_policy = strict`. Earlier releases ignored such a file with a warning, so a pinned `--profile` that the policy refuses ran. See [The managed policy file](https://developer.celigo.com/cli/getting-started/profiles.md#the-managed-policy-file).
* **A machine-wide setting written as a JSON boolean is honored.** `"auto_update": false` written by hand into the `settings` object of `~/.celigo/config.json` now keeps the CLI from installing updates, as the string that `config set` stores does. Earlier releases did not honor it.
* **Downloads.** `jobs download-files -o` and `storage download` read a leading `~` as your home directory. On Windows, `storage download` replaces a character that Windows refuses in a stored file's name with `_`. `integrations download` refuses an HTML page served in place of the archive, where it wrote the page as the ZIP file.
* **`celigo pull` removes less.** A listing whose rows carry no id is a failed listing, named `skipped <folder>: …`; it read as an empty account, so `--prune` removed every file of that type. A locally edited document is kept, and reported, when its resource was deleted and created again under the same name. `pull --types … --untrack-orphans` untracks only the orphans of the types it writes, and leaves an orphan that a `.celigoignore` rule covers tracked and in place. See [Pull](https://developer.celigo.com/cli/local-tree/pull.md).
* **On Windows, `celigo pull` warns about long paths.** While the tree holds a path longer than Windows' own tools take — 259 characters for a file, 247 for a folder — a pull ends with one `warning:` line, which is also in the JSON report's `warnings`. See [Windows and long paths](https://developer.celigo.com/cli/local-tree.md#windows-and-long-paths).
* **The `User-Agent` header names the runtime.** It still starts with `celigo-cli/<version>`, and now goes on to the Node.js version, the platform, and the kernel release. A proxy rule or a log filter that matches the whole header needs the new form. See [What the CLI reports about itself](https://developer.celigo.com/cli/getting-started/configuration.md#what-the-cli-reports-about-itself).
* **Two commands succeed again.** `file-definition-rules generate` exited `1` with `Unexpected response from the rule generator: missing 'fileDefinitionGenerationJob'`, and `edi-transactions download-file` by document number or by lookup filters answered `400` unless `--file-type` was given. Both now send the query parameter that the platform's route expects: `async=true` to the rule generator, and `fileType` to the file lookup.
* **A new exit code, `75`.** [`jobs wait`](https://developer.celigo.com/cli/commands/jobs.md#celigo-jobs-wait), [`flows run --wait`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-run), and [`flows replay --wait`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-replay) return it when the job is still in progress at the deadline. Only these three set it. See [Bounded waits](https://developer.celigo.com/cli/using-the-cli/exit-codes.md#bounded-waits).

## What changed for scripts in celigo-cli 2026.11.1

These changes in celigo-cli 2026.11.1 can change what an existing script sees:

* **A `429` fails a create, clone, install, run, or invoke at once.** Earlier releases retried it up to 3 times. A `429` or a `5xx` on such a request now ends `— not resent: the platform may have carried out the request before it answered, so check for the result before running the command again.`, where a `429` read `Rate limited. Please wait and try again.` A script that retries a failed command should look for the result first; see [After a timeout, check before you retry](#after-a-timeout-check-before-you-retry).
* **A run's result prints its credentials as `********`.** The invokes, previews, test runs, and debug and request logs listed in [Credentials in a run's result](https://developer.celigo.com/cli/using-the-cli/output-formats.md#credentials-in-a-runs-result) mask every credential header's value and a captured URL's userinfo and credential query parameters, in JSON and `--jq` output too. A script that read such a value from a result sees `********`. `get` documents and `flows error --retry-data` print as before.
* **`--jq` runs jq 1.8.2**, where it ran 1.7.1. An expression that relied on a 1.7 answer can give another one: `index` counts code points, `tonumber` refuses surrounding whitespace, `limit` refuses a negative count, and `pow10` is gone. See [Results that changed in jq 1.8](https://developer.celigo.com/pages/tbUj42Bh9CQFNJPBLg0P#results-that-changed-in-jq-1.8). A jq that `JQ_PATH` names keeps its own answers.
* **An install that allows scripts names the CLI.** `--allow-scripts=@celigo/celigo-cli` replaces `--allow-scripts=node-jq`, and under `--strict-allow-scripts` an install whose entry still names `node-jq` fails. An install that cannot download jq still succeeds, and `--jq` then falls back to `JQ_PATH` or a `jq` on `PATH`. See [Install](https://developer.celigo.com/cli/getting-started/install.md#npm-install-scripts-and-jq).
* **Node.js 22.12 or newer is required** (was 22). The error for extra positional arguments now lists them: `error: too many arguments for 'get'. Expected 1 argument but got 2: a, b.` It ended `… but got 2.`
* [**`flows error-analysis`**](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-error-analysis) **adds two fields to each pattern**: `classifications`, a count per classification value, and `withRetryAt`, the number of its errors that carry `retryAt`. A script that compares whole pattern objects sees the new keys.

## What changed for scripts in celigo-cli 2026.10.2

These changes in celigo-cli 2026.10.2 can change what an existing script sees:

* [**`workspace-users invite`**](https://developer.celigo.com/cli/commands/workspace-users.md#celigo-workspace-users-invite) **exits `1` when any address was not invited**, an address that already has access included, and says on stderr how many were not. It exited `0`. An address the platform refused carries its reason in `result` — `status 422 — create_not_allowed: New accounts must be attached to a valid business email address.` where it read `status 422`.
* [**`ai-agents chat`**](https://developer.celigo.com/cli/commands/ai-agents.md#celigo-ai-agents-chat-id) **exits `1` for a turn that failed.** A turn the agent could not finish still answers HTTP `200`, with the error inside the event stream; the command prints the turn and names the error on stderr. Added in celigo-cli 2026.10.2.
* **`set` refuses a bare rules array for a filter** before any request. [`exports set <id> 'filter=[…]'`](https://developer.celigo.com/cli/commands/exports.md#celigo-exports-set-less-than-id-greater-than-assignments), an export's `inputFilter`, and [an import's `filter`](https://developer.celigo.com/cli/commands/imports.md#celigo-imports-set-less-than-id-greater-than-assignments) sent the array and exited `0`, while the platform stored no filter and dropped the one the step held. Send the expression form, `{"type": "expression", "expression": {"version": "1", "rules": […]}}`; `filter=null` still removes a filter.
* **Every write refuses a router whose `script` is `null`**, with no override: `create`, `update`, `set`, and the verbs that send back the flow, tool, or API they read (`add-processor`, `remove-processor`, `add-generator`, `remove-generator`) refuse it before any write. [`flows set <id> 'routers[<n>].script=null'`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-set) deletes the key, which is how a flow that holds one is repaired. A `set` that goes through the PATCH (`disabled`, `schedule`, `name`, …) never sends the routers. In a CI pipeline, `push --dry-run` exits `1` for an edited tree file with such a router, and `celigo lint` reports it as an error whatever the account holds, so a lint gate fails on a freshly pulled flow that has one.
* **`set` sends a JSON-looking value for a string field as text.** On its GET + PUT route, a value that reads as a JSON object or array, typed or loaded with `file://`, goes as the text itself where the published spec types the field as a string: an export's `http.body`, an import's `http.body[0]`. An array the spec types as strings (an import's `http.body`) sends each object in it as its JSON text. Earlier releases sent the parsed object: an export kept its old body, and an import stored the object.
* **An update that could never land is refused.** [`syncs update`](https://developer.celigo.com/cli/commands/syncs.md#celigo-syncs-update) refuses a body whose `_integrationId`, `_id`, or `_userId` differs from the stored value, and [`workspace-users update`](https://developer.celigo.com/cli/commands/workspace-users.md#celigo-workspace-users-update-less-than-id-greater-than) one whose `userType` differs. The `PUT` cannot carry those fields, so the change was dropped while the command exited `0`. A document copied from `get` still goes through.
* [**`event-reports create`**](https://developer.celigo.com/cli/commands/event-reports.md#celigo-event-reports-create) **refuses a `flowIds`, `flowId`, or `_flowId` key** before the request, beside `_flowIds` or not, and names `_flowIds`, the only key the create reads.
* [**`mcp-servers set`**](https://developer.celigo.com/cli/commands/mcp-servers.md#celigo-mcp-servers-set) **refuses its GET + PUT while an upstream change awaits approval.** A field outside its PATCH whitelist (anything but `name`, `disabled`, `policies`, and `_networkPolicyId`) goes GET + modify + PUT, and that `PUT` approved every upstream tool, prompt, and resource definition that changed since an administrator approved it. Now the command sends nothing, names the changed rows, and exits `1`; a server with no changed row is written as before. `push` and `promote` refuse the same update at plan time, so their `--dry-run` exits `1`, and a `push --dry-run` of such an update needs a token; see [MCP servers and upstream approval](https://developer.celigo.com/cli/local-tree/push.md#mcp-servers-and-upstream-approval).
* [**`processors invoke`**](https://developer.celigo.com/cli/commands/processors.md#celigo-processors-invoke) **needs operate mode.** Read mode refuses it before any request; there, run the parsers and generators with `processors parse` and `processors generate`, a template with `processors render`, and filter rules with `processors filter`. A call to any other processor, such as `javascript`, is sent once and not retried after a timeout or a `5xx`.
* [**`exports invoke`**](https://developer.celigo.com/cli/commands/exports.md#celigo-exports-invoke-id) **prints a streamed answer.** A saved export's invoke or a virtual export (`--connection`) can answer several JSON objects in a row: the records, then `{"errors": [...]}` when paging stopped on a repeated page. The CLI refused that as `invalid or truncated JSON` and exited `1`. It now prints one answer, `{data, dataURIs, errors}`, and exits `0`, so check `errors`.
* [**`imports invoke`**](https://developer.celigo.com/cli/commands/imports.md#celigo-imports-invoke-id) **counts records by cause** on stderr: `3 record(s): 1 accepted, 1 rejected by the destination, 0 failed before sending, 1 failed after sending (the destination may already hold them), 0 ignored and never sent.` The line used to end `… rejected by the destination, 0 ignored by the input filter.` A record that failed after sending may already be written, so a retry is not safe.
* [**`edi-transactions list`**](https://developer.celigo.com/cli/commands/edi-transactions.md#celigo-edi-transactions-list) **names the next page on stderr** when more transactions exist: `More transactions: the next page is --page-token '<token>'.` Stdout is unchanged.
* [**`templates install --zip`**](https://developer.celigo.com/cli/commands/templates.md#celigo-templates-install) **reports what it installed when `--jq` fails**, as an install by id already did: the error says the request succeeded and prints the untransformed answer on stderr, so the template is not installed again. The command still exits `1`.
* **An API error names the field it refused** when its message does not: `(422): Validation error: Script fields are invalid. (field: name)`. A script that matches error text sees the new parenthesis.
* **A failed command exits `1` on Windows**, a `--jq` that fails on the answer included. With Node 24 on Windows, an API error printed its message, then `Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c`, and the CLI ended with a crash exit code instead of `1`. See [Exit codes](https://developer.celigo.com/cli/using-the-cli/exit-codes.md).

## What changed for scripts in celigo-cli 2026.10.1

These changes in celigo-cli 2026.10.1 can change what an existing script sees:

* **A download never replaces an existing file without `--force`.** `storage download`, `storage query -o`, `storage query-results -o`, `jobs download-files -o`, and `integrations`/`apis`/`tools`/`mcp-servers download` refuse an existing destination file (`orders.csv already exists; refusing to overwrite it. Pass --force to replace it, or choose another destination.`) and a path whose directory does not exist. An `-o` path that is a directory is refused too; `storage download <id> <dir>` writes the file into the directory instead. A leading `~` in `-o` means your home directory, except on `jobs download-files`.
* **A create, clone, install, run, or invoke is never resent** after a timeout or a `5xx`; see [After a timeout, check before you retry](#after-a-timeout-check-before-you-retry).
* **`set` exits `1` when the server kept a value.** After a GET + PUT, a field the reply still holds at its previous value prints `not stored <field> …` on stderr. On an Integration App's document (`_connectorId`), one line names the fields the app locks — `celigo: exports set: the platform kept its own value for name, filter — the Integration App locks them` — and `update` reports the same way. See [Troubleshooting](https://developer.celigo.com/cli/using-the-cli/troubleshooting.md).
* **Writes check what they send.** `create`, `update`, and `set` validate the body against the published API schemas first and print any finding on stderr as a warning; the request is still sent. Every write refuses, with no override, a value that is not a string in a field the platform encrypts — `set` reads `123` and `true` as a number and a boolean, so quote such a secret as a JSON string (`key='"123"'`).
* **`CELIGO_MODE` only tightens.** A session runs in the stricter of the profile's stored mode and the variable, so `CELIGO_MODE=full` no longer lifts a profile stored in `read` or `operate`; with no profile (env-only CI) the default is still `full`. Raising a profile's stored mode — `config set mode` to a looser mode, or `config unset mode` on a `read` or `operate` profile — needs a person at a terminal, who types the new mode back, and is refused off one. An empty `CELIGO_MODE=` refuses every command; a value that is not a mode counts as `read`, with a warning.
* **Read mode refuses operational actions before any request.** Runs, invokes, error management, debug toggles, and data loads used to run their reads first and could exit `0` when there was nothing to change; they now exit `1` with the refusal.
* **Nine verbs moved from operate to full mode:** `environments enable` and `disable`, `workspace-users enable` and `disable`, `stacks rotate-token`, `on-premise-agents rotate-token`, `storage create-folder`, `storage move`, and `storage copy`. `storage upload` and `replace` stay operate-level. `imports invoke` without an id, and `imports invoke --connection`, need full mode as well. See [Permission modes](https://developer.celigo.com/cli/getting-started/profiles.md#permission-modes).
* **`on-premise-agents rotate-token` asks for confirmation.** Pass `-y`; without a terminal and without `-y` it refuses and exits `1`.
* **`-v`/`--version` is read only as the first argument** (`celigo --version`); after a subcommand it is the subcommand's own option. See [Global flags](https://developer.celigo.com/cli/getting-started/global-flags.md#combine).
* **Numeric flags take whole numbers.** `--limit`, `--since`, `--offset`, `--timeout`, and `--page` refuse values such as `5m`, `1e3`, or `2.5`. See [Whole-number flags](https://developer.celigo.com/cli/getting-started/global-flags.md#whole-number-flags).
* **An empty `--profile ""` is refused** before any command runs, instead of running against the active profile.
* **`config unset <key>` clears a key.** `config set <key> ""` is refused, because an unset shell variable produces the same empty string; see [config](https://developer.celigo.com/cli/commands/config.md).
* **Output shapes.** `recycle-bin list --type storageitems` prints the bare item array (it printed `[{"items": […]}]`) and reads every page. A list endpoint that answers `204 No Content` prints `[]`, not `null`. Under `--format table`, a `--jq` result that is not rows prints as JSON, except a single string, which prints raw.
* **`state --resource-type`** takes only `exports`, `imports`, or `integrations`.
* **`processors parse csv`** assumes a header row and trims spaces unless you pass `--no-has-header-row` or `--no-trim-spaces`; `--has-header-row` and `--trim-spaces` never turned either off. `--column-delimiter` and `--row-delimiter` read `\t`, `\r`, and `\n` as the character, and `--rules` beside the flags it replaces is refused.
* **`flows set <id> schedule.cron=…` is refused.** A flow's `schedule` is one string: assign it whole, as in `celigo flows set <id> schedule='? 5 0 ? * *'`. A schedule set the old way never changed — check it with `flows get`.
* **New exit-`1` gates.** `connections ping` on a failed ping, `flows run` when the platform refuses every export, `topics publish` with a rejected message, and the other commands in [Exit codes](https://developer.celigo.com/cli/using-the-cli/exit-codes.md#gates-that-use-exit-1) now fail where the platform answered `200` for something that did not happen.

## Exit codes

See [Exit codes](https://developer.celigo.com/cli/using-the-cli/exit-codes.md). The CLI returns `0` on success and `1` on any error; `push` and `promote` return `130` when interrupted with Ctrl-C, and the storage transfers (`storage upload`, `download`, `query -o`, `query-results -o`) exit `129`, `130`, or `143` when a signal interrupts them. Since celigo-cli 2026.11.2, `jobs wait`, `flows run --wait`, and `flows replay --wait` return `75` when the job is still in progress at the deadline.

```bash
if ! celigo flows get "$FLOW_ID" >/dev/null 2>&1; then
  echo "flow missing or fetch failed"
fi
```


---

# 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/using-the-cli/scripting.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.
