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

# edi-transactions

Query the EDI transaction log surfaced by the B2B Manager dashboard — each record is one X12 transaction set, one EDIFACT message, or one TRADACOMS message processed through a Celigo flow, with envelope metadata, control numbers, and functional-acknowledgement status.

Each standard is its own log, chosen with `--file-type`: `X12` (the default), `EDIFACT`, or since celigo-cli 2026.11.2 `TRADACOMS`.

The dashboard has two views. `list` is the flat list. `lifecycles` groups the documents of one order — purchase order, acknowledgement, ship notice, invoice — by reference document number and trading partner pair, and `lifecycle-detail` opens one group. TRADACOMS has the flat list only. `search` finds transactions by keyword in either view. `search`, `lifecycles`, and `export --view` take the dashboard's filters, and `filter-options` lists the values those filters take. `lifecycles`, `lifecycle-detail`, `search`, `filter-options`, and `export --view` were added in celigo-cli 2026.11.2.

**REST API**: [EDI Transactions](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions)

```
celigo edi-transactions <subcommand> [flags]
```

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

***

## Subcommands

| Subcommand                                   | Purpose                                                                                                                                                                                                                                      |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `list`                                       | Query EDI transactions with sender, receiver, document, acknowledgement-status, and date filters, one page at a time.                                                                                                                        |
| `fa-detail <id>`                             | Get functional acknowledgement (997/CONTRL) details for a transaction.                                                                                                                                                                       |
| `mdn-detail <id>`                            | Get the AS2 MDN (message disposition notification) details for a transaction.                                                                                                                                                                |
| `update-fa-status`                           | Update the functional-ack status (`faStatus`) on a batch of transactions, to `accepted` or `rejected`.                                                                                                                                       |
| `download-file [documentNumber]`             | Download a raw EDI file: by document number and type, by lookup filters alone (the latest match), or by a transaction's `_id` — the only way to a functional acknowledgement.                                                                |
| `export`                                     | Export the transaction log to CSV and print `{url}` — a pre-signed download URL that expires after 15 minutes. The export covers a `lastModified` window, or with `--view` what the dashboard's filters match. Added in celigo-cli 2026.9.6. |
| `search <keyword>`                           | Search one standard's transactions for a keyword, narrowed by the dashboard's filters. Added in celigo-cli 2026.11.2.                                                                                                                        |
| `filter-options`                             | List the values the dashboard's filters take for one standard. Added in celigo-cli 2026.11.2.                                                                                                                                                |
| `lifecycles`                                 | List order lifecycles: the documents of one order, grouped by reference document number and trading partner pair. Added in celigo-cli 2026.11.2.                                                                                             |
| `lifecycle-detail <referenceDocumentNumber>` | Open one order lifecycle and list its documents. Added in celigo-cli 2026.11.2.                                                                                                                                                              |

There is no `create`, `update`, `set`, or `delete` — the transaction log itself is written by flow execution. `update-fa-status` only patches the acknowledgement status on existing records. See [Gotchas](#gotchas) for other ways to retrieve the raw EDI file.

***

## `celigo edi-transactions list`

Query EDI transactions processed through B2B Manager flows. Returns envelope details (sender/receiver IDs, control numbers), document type, direction, and functional-acknowledgement status — the same data that powers the B2B Manager "Transactions" dashboard.

**Signature**

```bash
celigo edi-transactions list [flags]
```

**Arguments**

None.

**Flags**

| Flag                          | Type   | Default        | Description                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>`          | string | `X12`          | EDI standard to query: `X12`, `EDIFACT`, or since celigo-cli 2026.11.2 `TRADACOMS`. Since celigo-cli 2026.10.1 any other value (`x12` included) is refused before the query.                                                                                                                                                                                              |
| `--direction <dir>`           | string | —              | Filter by direction: `Inbound` or `Outbound`. Since celigo-cli 2026.10.1 any other value is refused before the query, the letter case does not matter, and the CLI applies the filter to the returned rows.                                                                                                                                                               |
| `--document-type <type>`      | string | —              | Filter by document type (e.g. `850`, `810`, `856`, `997`). Since celigo-cli 2026.10.1 the CLI applies it to the returned rows. Since celigo-cli 2026.11.2, `850` also keeps the X12 rows that the query labels `PO 850`, in any letter case; earlier releases compared the text exactly and printed an empty list.                                                        |
| `--document-number <num>`     | string | —              | Search by document number (e.g. PO number). A search: see the rules below the table.                                                                                                                                                                                                                                                                                      |
| `--integration <id>`          | string | —              | Filter by integration `_id`. Sent as `_integrationId` in the query body; since celigo-cli 2026.10.1 the CLI also applies it to the returned rows.                                                                                                                                                                                                                         |
| `--sender <id>`               | string | —              | Search by interchange sender ID (X12 ISA06, EDIFACT UNB sender, TRADACOMS STX sender code). Sent as `interchangeSenderId` on an X12 query, `unbSenderId` on an EDIFACT one, and `stxSenderId` on a TRADACOMS one (`--file-type`), the names each standard's query takes. Added in celigo-cli 2026.10.2.                                                                   |
| `--receiver <id>`             | string | —              | Search by interchange receiver ID (X12 ISA08, EDIFACT UNB recipient, TRADACOMS STX receiver code). Sent as `interchangeReceiverId` on an X12 query, `unbReceiverId` on an EDIFACT one, and `stxReceiverId` on a TRADACOMS one. Added in celigo-cli 2026.10.2.                                                                                                             |
| `--file-control-number <num>` | string | —              | Search by file control number. TRADACOMS only: it needs `--file-type TRADACOMS`. Sent as `fileControlNumber`. Added in celigo-cli 2026.11.2.                                                                                                                                                                                                                              |
| `--fa-status <statuses>`      | string | —              | Filter by functional acknowledgement status, comma-separated: `inProgress`, `notApplicable`, `notReceived`, `accepted`, `acceptedWithErrors`, `rejected`, `failed`. Any other value is refused before the query. Sent as the `faStatus` array. Added in celigo-cli 2026.10.2.                                                                                             |
| `--modified-gte <iso>`        | string | 30 days ago    | Return transactions whose `lastModified` is at or after this point. Accepts ISO 8601 (`2026-04-01T00:00:00Z`) or epoch milliseconds. Since celigo-cli 2026.10.1 a value that is neither is refused (`--modified-gte 'yesterday' is not an ISO-8601 timestamp or epoch milliseconds.`); earlier releases sent it as `null`, and the query fell back to the default window. |
| `--modified-lte <iso>`        | string | —              | Return transactions whose `lastModified` is at or before this point. Accepts ISO 8601 or epoch milliseconds, checked the same way.                                                                                                                                                                                                                                        |
| `--sort-by <field>`           | string | `lastModified` | Sort by `lastModified` (newest first) or `tradingPartnerName`. Any other value is refused before the query. Sent as `sortBy`. Added in celigo-cli 2026.11.2.                                                                                                                                                                                                              |
| `--order <dir>`               | string | —              | Sort direction, `asc` or `desc`. Without it, `lastModified` sorts `desc` and `tradingPartnerName` sorts `asc`. Sent as `order`. Added in celigo-cli 2026.11.2.                                                                                                                                                                                                            |
| `--limit <n>`                 | number | `100`          | Max results per page. Server caps at `1000`, and a search caps it at `100`. Since celigo-cli 2026.10.1 a value that is not a positive whole number is refused before the query.                                                                                                                                                                                           |
| `--page-token <token>`        | string | —              | Read the next page: the token a previous run printed on stderr (the response's `pageToken.next`). A token keeps the sort it was issued under. Sent as `pageToken`. Added in celigo-cli 2026.10.2.                                                                                                                                                                         |

`--document-number`, `--sender`, `--receiver` and `--file-control-number` are searches, and the query applies them on the server. A query takes one search: two in the same query answer `400`. A search needs at least 3 characters besides an optional trailing `*`, and caps `--limit` at 100. `--fa-status` and the `--modified-gte`/`--modified-lte` window are applied on the server too.

Since celigo-cli 2026.11.2, the window and the filter values are checked before the query:

* `--modified-gte` must be earlier than `--modified-lte`.
* A `--modified-lte` more than 30 days old needs `--modified-gte` too, because the default start is 30 days ago: `--modified-lte is more than 30 days ago, before the window's default start: pass --modified-gte too, earlier than --modified-lte.`
* A blank `--sender`, `--receiver`, `--document-number`, `--document-type`, `--integration`, `--modified-gte`, `--modified-lte`, or `--page-token` (an unset shell variable) is refused. Earlier releases read it as the flag left out.

Since celigo-cli 2026.10.2, when more transactions exist, stderr names the next page's token: `More transactions: the next page is --page-token '<token>'.` Run the same command with that `--page-token` to read the next page. The token goes to stderr only; JSON output is the bare array of transactions.

The query endpoint accepts `direction`, `documentType` and `_integrationId` but does not apply them, so since celigo-cli 2026.10.1 the CLI holds each returned row to `--direction`, `--document-type` and `--integration` itself. It filters only the page the query returned: when more transactions exist, stderr says so — `Note: --direction, --document-type and --integration filter the 100 most recent transactions the query returned; more exist. Narrow --modified-gte/--modified-lte or raise --limit (max 1000).` To filter the rest, read the following pages with `--page-token`.

Default table columns: `documentType`, `documentNumber`, `direction`, `faStatus`, the standard's sender and receiver ids, `lastModified`. The two id columns are `isaSenderId` and `isaReceiverId` for X12, `unbSenderId` and `unbReceiverId` for EDIFACT, and `stxSenderId` and `stxReceiverId` for TRADACOMS. Earlier releases drew the X12 columns for every standard; the columns follow `--file-type` since celigo-cli 2026.11.2.

Also supports the [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md) (`--format`, `--jq`, `--profile`, `--verbose`).

> **Two changes in celigo-cli 2026.8.1.** `--start-date` and `--end-date` are now `--modified-gte` and `--modified-lte`, matching the date-bound naming used across the CLI and naming the field they filter. `--sandbox` was removed — use a profile whose token targets the environment you want. See [Profiles & regions](https://developer.celigo.com/cli/getting-started/profiles.md).

**Example**

```bash
# Inbound 850 POs for one integration over the last week
celigo edi-transactions list \
  --file-type X12 \
  --direction Inbound \
  --document-type 850 \
  --integration 5f83a9b2c7d3e8f1a2b3c4d5 \
  --modified-gte 2026-04-17T00:00:00Z

# The same query against a QA environment
celigo --profile qa edi-transactions list --document-type 850

# Rejected or failed acknowledgements for one partner's interchanges (X12 ISA06)
celigo edi-transactions list --sender 1234567890 --fa-status rejected,failed

# The next page: the same command with the token the previous run printed on stderr
celigo edi-transactions list --sender 1234567890 --fa-status rejected,failed --page-token '<token>'

# A TRADACOMS log, searched by file control number
celigo edi-transactions list --file-type TRADACOMS --file-control-number 000123

# The EDIFACT log, sorted by trading partner name
celigo edi-transactions list --file-type EDIFACT --sort-by tradingPartnerName --format table
```

**Corresponds to**: [`POST /v1/ediTransactions/query`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#post-v1-editransactions-query)

***

## `celigo edi-transactions fa-detail`

Get the functional acknowledgement (997 for X12, CONTRL for EDIFACT) details for a single EDI transaction. The API needs the transaction's own EDI standard and answers `404` without it, so the command sends `--file-type` — `X12` unless you say otherwise. Earlier releases sent no file type, so every `fa-detail` answered `404`.

**Signature**

```bash
celigo edi-transactions fa-detail <id> [--file-type <X12|EDIFACT>]
```

**Arguments**

| Argument | Type   | Required | Description                                 |
| -------- | ------ | -------- | ------------------------------------------- |
| `<id>`   | string | Yes      | EDI transaction `_id` from a `list` result. |

**Flags**

| Flag                 | Type   | Default | Description                                                                                                                                                                                                      |
| -------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>` | string | `X12`   | The transaction's EDI standard: `X12` or `EDIFACT`. A TRADACOMS transaction has no functional acknowledgement. Any other value is refused before the request. Sent as `fileType`. Added in celigo-cli 2026.10.1. |

**Example**

```bash
celigo edi-transactions fa-detail 6a1b2c3d4e5f6a7b8c9d0e1f

# An EDIFACT transaction's CONTRL details
celigo edi-transactions fa-detail 6a1b2c3d4e5f6a7b8c9d0e1f --file-type EDIFACT
```

**Corresponds to**: [`GET /v1/ediTransactions/{_ediTransactionId}/faDetails`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions) — with `fileType` as a query parameter.

***

## `celigo edi-transactions mdn-detail`

Get the AS2 MDN (message disposition notification) details for a single EDI transaction.

**Signature**

```bash
celigo edi-transactions mdn-detail <id>
```

**Arguments**

| Argument | Type   | Required | Description                                 |
| -------- | ------ | -------- | ------------------------------------------- |
| `<id>`   | string | Yes      | EDI transaction `_id` from a `list` result. |

**Example**

```bash
celigo edi-transactions mdn-detail 6a1b2c3d4e5f6a7b8c9d0e1f
```

**Corresponds to**: [`GET /v1/ediTransactions/{_ediTransactionId}/mdn`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions)

***

## `celigo edi-transactions update-fa-status`

Update the functional-acknowledgement status (`faStatus`) on a batch of EDI transactions. The body is read from a file with `-f, --file`, or piped on stdin. Needs `operate` or `full` mode; since celigo-cli 2026.10.1 `read` mode refuses it before any request, and a body that is not a JSON object is refused (`The body must be a JSON object.`).

The update applies two statuses, `accepted` and `rejected`; the other statuses are set by the platform. Since celigo-cli 2026.11.2, the CLI refuses a body in which an entry's `faStatus` is any other value, before any request. The API skips such an entry and still answers success, so earlier releases reported the update as done:

```
faStatus "failed" cannot be set: the update applies only accepted and rejected (the other statuses are system-managed) and silently skips any other entry, so nothing was sent.
```

**Signature**

```bash
celigo edi-transactions update-fa-status --file <path>
celigo edi-transactions update-fa-status < body.json     # or pipe on stdin
```

**Flags**

| Flag                | Type   | Default | Description                         |
| ------------------- | ------ | ------- | ----------------------------------- |
| `-f, --file <path>` | string | —       | JSON body file (or pipe via stdin). |

**Request body**

```json
{
  "ediTransactions": [
    { "_id": "6a1b2c3d4e5f6a7b8c9d0e1f", "faStatus": "accepted" }
  ],
  "fileType": "X12"
}
```

**Example**

```bash
celigo edi-transactions update-fa-status --file ./fa-status.json
```

**Corresponds to**: [`PATCH /v1/ediTransactions`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions)

***

## `celigo edi-transactions download-file`

Download a raw EDI file to stdout, by one of three routes. Since celigo-cli 2026.10.2 the command reaches every EDI file route; earlier releases took only a document number with `--document-type`.

* **`<documentNumber> --document-type <type>`** — the latest transaction with that business document number (e.g. a PO number) and document type (`850`, `810`, `ORDERS`). `X12` and `EDIFACT` name a standard, not a document type. A document number is not unique: the same number can belong to several partners, both directions, sandbox and production, or several integrations. Add lookup filters to narrow it.
* **Lookup filters alone** — with no document number, the latest transaction the lookup filters match. Pass at least one filter.
* **`--id <transactionId>`** — that transaction's own file, by the `_id` that `list` prints. The API answers a short-lived signed URL, which the CLI fetches at once and never prints. With `--fa`, you get the functional acknowledgement (997 for X12, CONTRL for EDIFACT) that the partner returned instead. This is the only route that serves an acknowledgement.

The lookup filters are `--document-type`, `--direction`, `--sender` and `--receiver`, `--fa-status`, `--modified-gte` with `--modified-lte`, `--integration`, and `--sandbox` or `--no-sandbox`. `--sender` and `--receiver` are sent under the field names of the lookup's standard: `interchangeSenderId` and `interchangeReceiverId` for X12, `unbSenderId` and `unbReceiverId` for EDIFACT, `stxSenderId` and `stxReceiverId` for TRADACOMS. Downloads are rate limited per user.

Every lookup runs against one standard, which the API requires and the CLI sends as `fileType`. That standard is `--file-type` when you pass it, else the document type's, else X12. Digits such as `850`, and the labelled form `PO 850` that `list` prints, are X12; letters such as `ORDERS` are EDIFACT. A TRADACOMS lookup always takes `--file-type TRADACOMS`. `--file-type` picks the standard and is not itself a lookup filter.

Since celigo-cli 2026.11.2, the standard travels on every lookup. Earlier releases sent it only with `--file-type`, and every other lookup answered `400`: `The "fileType" query parameter is required to process this request.` Three more things changed in that release. `--file-type` alone no longer names a file. `--document-type "PO 850"` is looked up as X12; it was taken for an EDIFACT type. And `--file-type` takes `TRADACOMS`.

Before any request, the CLI refuses a `<documentNumber>` without `--document-type`, and a command that names no route at all. It refuses `--fa` without `--id`, and `--id` beside a document number or a lookup filter. It also refuses a blank lookup value, a `--file-type`, `--direction` or `--fa-status` value outside its list, and a window with one bound only or a `--modified-gte` that is not earlier than `--modified-lte`.

Since celigo-cli 2026.10.1, the file is written to stdout as it arrives — the EDI text itself — so redirect stdout to save it. Earlier releases printed it as a JSON-encoded string (one quoted value with line breaks escaped as `\n`) that needed `jq -r .`; drop that step from existing scripts, since the raw file is not JSON. There is no output-path flag. With `--jq`, the file is handled as a JSON string value. The `<documentNumber>` is URL-encoded, so a `?`, `#` or `/` in it cannot change the request path, and an `--id` that holds such a character is refused.

Since celigo-cli 2026.11.2, every route writes the file's bytes as stored, in whatever character set the interchange uses. The document-number and lookup routes used to decode the file as UTF-8. A byte that is not UTF-8 was written as U+FFFD, for example in an EDIFACT interchange that uses an ISO 8859 character set. Under `--jq`, the file is still read as UTF-8 text. A failure prints on stderr only. A redirected file therefore never holds the JSON error document that a failed command otherwise prints on stdout since celigo-cli 2026.11.2. Under `--jq`, a failure does print that document.

**Signature**

```bash
celigo edi-transactions download-file <documentNumber> --document-type <type> [lookup filters]
celigo edi-transactions download-file <lookup filters>
celigo edi-transactions download-file --id <transactionId> [--fa]
```

**Arguments**

| Argument           | Type   | Required | Description                                                                                                                                                                                |
| ------------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `[documentNumber]` | string | No       | The business document number (e.g. a PO number) to download. Needs `--document-type`. Leave it out to download by lookup filters alone, or by `--id`. Optional since celigo-cli 2026.10.2. |

**Flags**

| Flag                     | Type    | Default                         | Description                                                                                                                                                                                                                                            |
| ------------------------ | ------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `--document-type <type>` | string  | —                               | EDI document-type code (e.g. `850`, `810`, `ORDERS`). Required with a `<documentNumber>` (since celigo-cli 2026.10.2, only there); a lookup filter otherwise. Without `--file-type` it also sets the lookup's standard.                                |
| `--id <transactionId>`   | string  | —                               | Download this transaction's own file instead, by its `_id` (from `list`). Takes no `<documentNumber>` and no lookup filter. Added in celigo-cli 2026.10.2.                                                                                             |
| `--fa`                   | boolean | `false`                         | With `--id`: download the functional acknowledgement (997/CONTRL) the partner returned, not the document. Refused without `--id`. Added in celigo-cli 2026.10.2.                                                                                       |
| `--file-type <type>`     | string  | the document type's, else `X12` | The lookup's EDI standard: `X12`, `EDIFACT`, or since celigo-cli 2026.11.2 `TRADACOMS`. It picks the standard and is not itself a lookup filter. Any other value is refused before the request. Added in celigo-cli 2026.10.2.                         |
| `--direction <dir>`      | string  | —                               | Lookup filter: `Inbound` or `Outbound`, in any letter case. Any other value is refused before the request. Added in celigo-cli 2026.10.2.                                                                                                              |
| `--sender <id>`          | string  | —                               | Lookup filter: interchange sender ID (X12 ISA06, EDIFACT UNB sender, TRADACOMS STX sender code). Sent as `interchangeSenderId`, `unbSenderId`, or `stxSenderId`, by the lookup's standard. Added in celigo-cli 2026.10.2.                              |
| `--receiver <id>`        | string  | —                               | Lookup filter: interchange receiver ID (X12 ISA08, EDIFACT UNB recipient, TRADACOMS STX receiver code). Sent as `interchangeReceiverId`, `unbReceiverId`, or `stxReceiverId`, by the lookup's standard. Added in celigo-cli 2026.10.2.                 |
| `--fa-status <statuses>` | string  | —                               | Lookup filter: functional acknowledgement status, comma-separated: `inProgress`, `notApplicable`, `notReceived`, `accepted`, `acceptedWithErrors`, `rejected`, `failed`. Any other value is refused before the request. Added in celigo-cli 2026.10.2. |
| `--modified-gte <iso>`   | string  | —                               | Lookup filter: `lastModified` at or after this point, as ISO 8601 or epoch milliseconds. Needs `--modified-lte`: the lookup takes a whole window or none. Added in celigo-cli 2026.10.2.                                                               |
| `--modified-lte <iso>`   | string  | —                               | Lookup filter: `lastModified` at or before this point, as ISO 8601 or epoch milliseconds. Needs `--modified-gte`, which must be earlier. Added in celigo-cli 2026.10.2.                                                                                |
| `--integration <id>`     | string  | —                               | Lookup filter: transactions this integration processed. Sent as `_integrationId`. Added in celigo-cli 2026.10.2.                                                                                                                                       |
| `--sandbox`              | boolean | —                               | Lookup filter: sandbox transactions only. Added in celigo-cli 2026.10.2.                                                                                                                                                                               |
| `--no-sandbox`           | boolean | —                               | Lookup filter: production transactions only. Added in celigo-cli 2026.10.2.                                                                                                                                                                            |

**Example**

```bash
# Print the file to stdout
celigo edi-transactions download-file 4500012345 --document-type 850

# Save it to disk
celigo edi-transactions download-file 4500012345 --document-type 850 > file.edi

# Narrow a document number that more than one partner uses
celigo edi-transactions download-file 4500012345 --document-type 850 \
  --sender 1234567890 --direction Inbound --no-sandbox > file.edi

# No document number: the latest rejected 810 that one integration processed
celigo edi-transactions download-file --document-type 810 --fa-status rejected \
  --integration 5f83a9b2c7d3e8f1a2b3c4d5 > latest-rejected.edi

# A transaction's own file, by the _id that list prints, then its functional acknowledgement
celigo edi-transactions download-file --id 6a1b2c3d4e5f6a7b8c9d0e1f > file.edi
celigo edi-transactions download-file --id 6a1b2c3d4e5f6a7b8c9d0e1f --fa > ack.edi

# The latest TRADACOMS ORDERS file from one sender: a TRADACOMS lookup always names --file-type
celigo edi-transactions download-file --file-type TRADACOMS --document-type ORDERS \
  --sender 5012345678900 > orders.edi
```

**Corresponds to**: [`GET /v1/edi/documents/{documentNumber}/ediFile`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#get-v1-edi-documents-documentnumber-edifile) with a document number, and [`GET /v1/edi/documents/ediFile`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#get-v1-edi-documents-edifile) without one; `fileType` and the lookup filters are sent as query parameters on both. With `--id`: [`GET /v1/ediTransactions/{_ediTransactionId}/ediFile`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#get-v1-editransactions-_editransactionid-edifile) with `type=nonFa` (`type=fa` with `--fa`), then a plain `GET` of the signed URL it answers.

***

## `celigo edi-transactions export`

Export the transaction log matching a `lastModified` window to CSV and print `{url}` — a pre-signed download URL that expires after 15 minutes. This is the API form of the B2B Manager dashboard's transaction download. Without `--start`/`--end` the last 24 hours are exported; `--end` without `--start` is rejected before any request (`--end needs --start: the window's lower bound has no default.`). Each standard is its own log with its own CSV columns, so one export covers one `--file-type`. A window matching more records than the server-side cap fails with `exceeded_max_ediTransactions` — narrow it and retry. Added in celigo-cli 2026.9.6.

Since celigo-cli 2026.11.2, `--view list` or `--view lifecycle` exports by the dashboard's filters instead of a window. The CSV holds the records that the filter flags and `--keyword` match, as the dashboard's own download writes them: `#` comment lines that name the source, view, filters, and record count, then the dashboard's columns. A URL comes back even when nothing matches. The filter flags, `--keyword`, and `--sandbox` need `--view`. `--start` and `--end` do not combine with it: with `--view`, the window is `--from` and `--to`. A lifecycle export is for X12 and EDIFACT only.

Also since celigo-cli 2026.11.2, the window export checks its bounds before the request. `--start` and `--end` must be epoch milliseconds, and `--start` must not be later than `--end`. A date typed there is refused: `--start takes epoch milliseconds (e.g. 1790000000000), not '2026-09-01'.` Earlier releases sent a bound as typed. A blank `--file-type`, `--start`, or `--end` (an unset shell variable) is refused too.

**Signature**

```bash
celigo edi-transactions export [--file-type <type>] [--start <ms>] [--end <ms>]
celigo edi-transactions export --view <list|lifecycle> [--file-type <type>] [--keyword <text>] [--sandbox] [filters]
```

**Arguments**

None.

**Flags**

| Flag                               | Type                | Default                                                  | Description                                                                                                                                                                                                          |
| ---------------------------------- | ------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>`               | string              | `X12`                                                    | Which log to export: `X12`, `EDIFACT`, or since celigo-cli 2026.11.2 `TRADACOMS`. Any other value is rejected locally. Sent as `fileType`, or as `source` with `--view`.                                             |
| `--start <ms>`                     | epoch milliseconds  | 24 hours ago (server-side, when both bounds are omitted) | Lower bound of the `lastModified` window. Sent as `startDate`.                                                                                                                                                       |
| `--end <ms>`                       | epoch milliseconds  | now                                                      | Upper bound of the `lastModified` window. Requires `--start`. Sent as `endDate`.                                                                                                                                     |
| `--view <view>`                    | string              | —                                                        | Export by the dashboard's filters, from its `list` or `lifecycle` view. TRADACOMS has the `list` view only. Sent as `viewMode`. Added in celigo-cli 2026.11.2.                                                       |
| `--keyword <text>`                 | string              | —                                                        | With `--view`: only the transactions that a keyword search matches, 3 to 100 characters. Added in celigo-cli 2026.11.2.                                                                                              |
| `--sandbox`                        | boolean             | `false`                                                  | With `--view`: export sandbox transactions instead of production ones. Added in celigo-cli 2026.11.2.                                                                                                                |
| `--document-type <types>`          | string              | —                                                        | With `--view`: only these document types, comma-separated: an X12 transaction-set code (`850`), or an EDIFACT or TRADACOMS message type (`ORDERS`). Added in celigo-cli 2026.11.2.                                   |
| `--direction <dirs>`               | string              | —                                                        | With `--view`: only these directions, comma-separated: `inbound`, `outbound`, in any letter case. Added in celigo-cli 2026.11.2.                                                                                     |
| `--fa-status <statuses>`           | string              | —                                                        | With `--view`: only these functional acknowledgement statuses, comma-separated: `inProgress`, `notApplicable`, `notReceived`, `accepted`, `acceptedWithErrors`, `rejected`, `failed`. Added in celigo-cli 2026.11.2. |
| `--partner <names...>`             | string (repeatable) | —                                                        | With `--view`: only these trading partners, by name as `filter-options` lists them. Several names, or the flag repeated, match any of them. Added in celigo-cli 2026.11.2.                                           |
| `--lifecycle-status <statuses...>` | string (repeatable) | —                                                        | With `--view`: only these order-lifecycle steps, as `filter-options` lists them, such as `"PO received"` or `"Invoice sent"`. Not for TRADACOMS. Added in celigo-cli 2026.11.2.                                      |
| `--mdn-status <statuses>`          | string              | —                                                        | With `--view`: only these AS2 MDN statuses, comma-separated: `sent`, `received`. Added in celigo-cli 2026.11.2.                                                                                                      |
| `--from <date>`                    | `YYYY-MM-DD`        | —                                                        | With `--view`: first day of the `lastModified` window. Needs `--to`. Added in celigo-cli 2026.11.2.                                                                                                                  |
| `--to <date>`                      | `YYYY-MM-DD`        | —                                                        | With `--view`: last day of the `lastModified` window. Needs `--from`, and must not be earlier. Added in celigo-cli 2026.11.2.                                                                                        |

The `--start`/`--end` bounds are epoch milliseconds — not the ISO 8601 that `list`'s `--modified-gte`/`--modified-lte` also accept.

The filter flags, from `--document-type` to `--to`, are the ones [`search`](#celigo-edi-transactions-search) takes, and their values are checked the same way before any request.

**Example**

```bash
# The last 24 hours of the X12 log
celigo edi-transactions export

# The EDIFACT log for one week (2026-09-01 to 2026-09-08 UTC, epoch milliseconds)
celigo edi-transactions export --file-type EDIFACT \
  --start 1788220800000 --end 1788825600000

# Fetch the CSV before the URL expires
curl -sL "$(celigo edi-transactions export --jq .url)" -o edi-transactions.csv

# What the dashboard's list view shows for one partner's rejected documents in October
celigo edi-transactions export --view list --partner "Acme Retail" --fa-status rejected \
  --from 2026-10-01 --to 2026-10-31

# The lifecycle view's download, narrowed by a keyword
celigo edi-transactions export --view lifecycle --keyword 4500012345
```

**Corresponds to**: [`GET /v1/ediTransactions/signedURL`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions) — with `fileType`, `startDate`, and `endDate` as query parameters. A `GET`, so it runs in `read` mode. With `--view`: [`POST /v1/ediTransactions/download`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions) with the view, keyword, and filters in the body — a read-only `POST`, so it runs in `read` mode too.

***

## `celigo edi-transactions search`

Search one standard's transactions for a keyword. The keyword is matched, in any letter case, against the document number, the reference document numbers, and the interchange and group sender and receiver ids and control numbers. It is never matched against the trading partner name or the lifecycle status: the `--partner` and `--lifecycle-status` filters narrow those. A keyword of 3 to 12 characters matches anywhere inside a value, and one of 13 or more must equal a whole stored value. Each matched row names the fields it matched in `matchedFields`. Works in `read` mode. Added in celigo-cli 2026.11.2.

`--view lifecycle` returns the order lifecycles that hold a match instead, each whole: its newest document as `latestTransaction` and the others in `ediTransactions`. TRADACOMS has no lifecycle view.

JSON output is the bare array of results; the count and the next page go to stderr. When the platform reports a total, stderr prints it, for example `12 matching transaction(s).`, or `12 matching lifecycle group(s).` under `--view lifecycle`. A row count that the platform marks approximate (`isApproximate`) is printed with `at least` in front. An unfiltered search computes no total. When more results exist, stderr names the next page: `More results: the next page is --page-token '<token>'.`

**Signature**

```bash
celigo edi-transactions search <keyword> [--file-type <type>] [--view <list|lifecycle>] [--sort-by <field>] \
  [--order <dir>] [--limit <n>] [--page-token <token>] [--sandbox] [filters]
```

**Arguments**

| Argument    | Type   | Required | Description                                                                                                                                                             |
| ----------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `<keyword>` | string | Yes      | The text to search for: 3 to 100 characters once trimmed. A shorter or longer keyword is refused before the request: `The keyword must be 3 to 100 characters (got 2).` |

**Flags**

| Flag                               | Type                | Default                         | Description                                                                                                                                                            |
| ---------------------------------- | ------------------- | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>`               | string              | `X12`                           | EDI standard to search: `X12`, `EDIFACT`, or `TRADACOMS`. Sent as `source`.                                                                                            |
| `--view <view>`                    | string              | `list`                          | `list` returns the matching rows. `lifecycle` returns the order lifecycles that hold a match; it is not available for TRADACOMS. Sent as `viewMode`.                   |
| `--sort-by <field>`                | string              | `relevance`                     | Sort the rows by `relevance`, `lastModified`, or `tradingPartnerName`. A lifecycle view takes only `relevance`, or `lastModified` descending.                          |
| `--order <dir>`                    | string              | —                               | Sort direction: `asc` or `desc`.                                                                                                                                       |
| `--limit <n>`                      | integer             | 50 rows, or 20 lifecycle groups | Results per page, 1–100. Sent as `pageSize`.                                                                                                                           |
| `--page-token <token>`             | string              | —                               | Read the next page: the token a previous run printed on stderr. It keeps its own page size and sort.                                                                   |
| `--sandbox`                        | boolean             | `false`                         | Search sandbox transactions instead of production ones.                                                                                                                |
| `--document-type <types>`          | string              | —                               | Only these document types, comma-separated: an X12 transaction-set code (`850`), or an EDIFACT or TRADACOMS message type (`ORDERS`).                                   |
| `--direction <dirs>`               | string              | —                               | Only these directions, comma-separated: `inbound`, `outbound`, in any letter case.                                                                                     |
| `--fa-status <statuses>`           | string              | —                               | Only these functional acknowledgement statuses, comma-separated: `inProgress`, `notApplicable`, `notReceived`, `accepted`, `acceptedWithErrors`, `rejected`, `failed`. |
| `--partner <names...>`             | string (repeatable) | —                               | Only these trading partners, by name as `filter-options` lists them. Several names, or the flag repeated, match any of them.                                           |
| `--lifecycle-status <statuses...>` | string (repeatable) | —                               | Only these order-lifecycle steps, as `filter-options` lists them, such as `"PO received"` or `"Invoice sent"`. Not for TRADACOMS.                                      |
| `--mdn-status <statuses>`          | string              | —                               | Only these AS2 MDN statuses, comma-separated: `sent`, `received`.                                                                                                      |
| `--from <date>`                    | `YYYY-MM-DD`        | —                               | First day of the `lastModified` window. Needs `--to`.                                                                                                                  |
| `--to <date>`                      | `YYYY-MM-DD`        | —                               | Last day of the `lastModified` window. Needs `--from`, and must not be earlier.                                                                                        |

The filter flags, from `--document-type` to `--to`, are the filters of the B2B Manager dashboard. [`lifecycles`](#celigo-edi-transactions-lifecycles) and [`export --view`](#celigo-edi-transactions-export) take them too, and [`filter-options`](#celigo-edi-transactions-filter-options) lists the values that the account's transactions hold for them. They are not the filters of `list`: `list` takes one `--document-type` and one `--direction`, and bounds its window with `--modified-gte` and `--modified-lte`.

Every filter value is checked before any request. The CLI refuses a value outside a flag's list, a blank `--partner` or `--lifecycle-status` (an unset shell variable), `--from` without `--to` or the reverse, a `--from` later than `--to`, and a day that does not exist:

```
--from '2026-02-30' is not a calendar date (YYYY-MM-DD).
```

Default table columns: the columns of `list` for the standard, then `matchedFields`. With `--view lifecycle`, the table is the one `lifecycles` draws.

**Example**

```bash
# Every X12 transaction that carries a PO number
celigo edi-transactions search 4500012345 --format table

# The same keyword among one partner's rejected inbound documents in October
celigo edi-transactions search 4500012345 --partner "Acme Retail" --direction inbound \
  --fa-status rejected --from 2026-10-01 --to 2026-10-31

# The order lifecycles that hold a match
celigo edi-transactions search 4500012345 --view lifecycle
```

**Corresponds to**: [`POST /v1/ediTransactions/search`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions) with the keyword, view, and filters in the body — a read-only `POST`, so it runs in `read` mode.

***

## `celigo edi-transactions filter-options`

List the values that the dashboard's filters take for one standard: the document types and trading partners found in the account's transactions, and the direction, functional acknowledgement, lifecycle, and MDN statuses. These are the values that `--partner`, `--lifecycle-status`, and `--document-type` take on `search`, `lifecycles`, and `export --view`. TRADACOMS has no lifecycle view, so its answer has no `lifecycleStatus`. Works in `read` mode. Added in celigo-cli 2026.11.2.

**Signature**

```bash
celigo edi-transactions filter-options [--file-type <type>] [--sandbox]
```

**Arguments**

None.

**Flags**

| Flag                 | Type    | Default | Description                                                                                                                         |
| -------------------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>` | string  | `X12`   | EDI standard to list values for: `X12`, `EDIFACT`, or `TRADACOMS`. Any other value is refused before the request. Sent as `source`. |
| `--sandbox`          | boolean | `false` | List values from sandbox transactions instead of production ones.                                                                   |

**Example**

```bash
celigo edi-transactions filter-options

# The lifecycle steps that --lifecycle-status takes, for the EDIFACT log
celigo edi-transactions filter-options --file-type EDIFACT --jq .lifecycleStatus
```

**Corresponds to**: [`GET /v1/ediTransactions/filter-options`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions) — with `source` and, under `--sandbox`, `sandbox=true` as query parameters.

***

## `celigo edi-transactions lifecycles`

List order lifecycles — the dashboard's lifecycle view. A lifecycle groups the documents of one order (purchase order, acknowledgement, ship notice, invoice) by its reference document number and trading partner pair. The list has one group per row, newest activity first. Each group carries its key (`groupKey.referenceDocumentNumber` and `groupKey.partnerPairKey`), its newest document (`latestTransaction`), and whether it holds more documents (`hasChildren`). [`lifecycle-detail`](#celigo-edi-transactions-lifecycle-detail) opens one group. X12 and EDIFACT only. Works in `read` mode. Added in celigo-cli 2026.11.2.

JSON output is the bare array of groups, as the API returned them, and a `--jq` expression reads those groups under `--format table` too. Copy a `partnerPairKey` from JSON output: the key keeps the interchange ids' stored padding, and a table cannot show trailing spaces. When more groups exist, stderr names the next page: `More lifecycles: the next page is --page-token '<token>'.`

**Signature**

```bash
celigo edi-transactions lifecycles [--file-type <X12|EDIFACT>] [--limit <n>] [--page-token <token>] \
  [--scan-batch-size <n>] [filters]
```

**Arguments**

None.

**Flags**

| Flag                               | Type                | Default | Description                                                                                                                                                            |
| ---------------------------------- | ------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--file-type <type>`               | string              | `X12`   | EDI standard: `X12` or `EDIFACT`.                                                                                                                                      |
| `--limit <n>`                      | integer             | `20`    | Groups per page, 1–50.                                                                                                                                                 |
| `--page-token <token>`             | string              | —       | Read the next page: the token a previous run printed on stderr (the response's `pageToken.next`).                                                                      |
| `--scan-batch-size <n>`            | integer             | `100`   | Transactions read per batch while collecting groups, 1–1000. Raise it when a page comes back short because many recent documents share a few groups.                   |
| `--document-type <types>`          | string              | —       | Only these document types, comma-separated: an X12 transaction-set code (`850`) or an EDIFACT message type (`ORDERS`).                                                 |
| `--direction <dirs>`               | string              | —       | Only these directions, comma-separated: `inbound`, `outbound`, in any letter case.                                                                                     |
| `--fa-status <statuses>`           | string              | —       | Only these functional acknowledgement statuses, comma-separated: `inProgress`, `notApplicable`, `notReceived`, `accepted`, `acceptedWithErrors`, `rejected`, `failed`. |
| `--partner <names...>`             | string (repeatable) | —       | Only these trading partners, by name as `filter-options` lists them. Several names, or the flag repeated, match any of them.                                           |
| `--lifecycle-status <statuses...>` | string (repeatable) | —       | Only these order-lifecycle steps, as `filter-options` lists them, such as `"PO received"` or `"Invoice sent"`.                                                         |
| `--mdn-status <statuses>`          | string              | —       | Only these AS2 MDN statuses, comma-separated: `sent`, `received`.                                                                                                      |
| `--from <date>`                    | `YYYY-MM-DD`        | —       | First day of the `lastModified` window. Needs `--to`.                                                                                                                  |
| `--to <date>`                      | `YYYY-MM-DD`        | —       | Last day of the `lastModified` window. Needs `--from`, and must not be earlier.                                                                                        |

The filter flags, from `--document-type` to `--to`, are the ones [`search`](#celigo-edi-transactions-search) takes, and their values are checked the same way before any request.

Default table columns: `referenceDocumentNumber`, `partnerPairKey`, `tradingPartnerName`, `lifecycleStatus`, `latestDocument`, `lastModified`, `hasChildren`.

**Example**

```bash
celigo edi-transactions lifecycles --format table

# One partner's orders at one lifecycle step
celigo edi-transactions lifecycles --partner "Acme Retail" --lifecycle-status "PO received"

# Each group's key, as lifecycle-detail takes it
celigo edi-transactions lifecycles --jq '.[].groupKey'
```

**Corresponds to**: [`POST /v1/ediTransactions/query`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#post-v1-editransactions-query) with `view: "lifecycle"`, `mode: "browse"`, and the filters in the body.

***

## `celigo edi-transactions lifecycle-detail`

Open one order lifecycle: every document of the group that `lifecycles` (or `search --view lifecycle`) listed under this reference document number and partner pair. JSON output is the group: its newest document as `latestTransaction` and the others in `ediTransactions`, newest first. X12 and EDIFACT only. Works in `read` mode. Added in celigo-cli 2026.11.2.

Pass both values of the group's `groupKey` exactly as returned. The partner pair key keeps the interchange ids' stored padding, so quote it, and copy it from JSON output: a table cannot show trailing spaces. A trimmed key answers `404 lifecycle_group_not_found`.

`--format table` lists the lifecycle's documents, newest first: `latestTransaction`, then `ediTransactions`. When the lifecycle has older documents than the group returns, the group carries `truncated: true`, and the table says so on stderr:

```
Only the newest 50 other documents of this lifecycle are listed; older ones exist and are not shown.
```

**Signature**

```bash
celigo edi-transactions lifecycle-detail <referenceDocumentNumber> --partner-pair-key <key> [--file-type <X12|EDIFACT>]
```

**Arguments**

| Argument                    | Type   | Required | Description                                                          |
| --------------------------- | ------ | -------- | -------------------------------------------------------------------- |
| `<referenceDocumentNumber>` | string | Yes      | The group's `groupKey.referenceDocumentNumber`, exactly as returned. |

**Flags**

| Flag                       | Type   | Default | Description                                                                                                                                                      |
| -------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--partner-pair-key <key>` | string | —       | **Required.** The group's `groupKey.partnerPairKey`, exactly as returned. Quote it: the padding is part of the key. A blank value is refused before the request. |
| `--file-type <type>`       | string | `X12`   | EDI standard: `X12` or `EDIFACT`.                                                                                                                                |

Default table columns: `documentType`, `documentNumber`, `direction`, `faStatus`, `lifecycleStatus`, `lastModified`.

**Example**

```bash
# Take a group's key from lifecycles, then open the group
celigo edi-transactions lifecycles --limit 1 --jq '.[0].groupKey'
celigo edi-transactions lifecycle-detail 4500012345 --partner-pair-key '<partnerPairKey>' --format table
```

**Corresponds to**: [`POST /v1/ediTransactions/query`](https://developer.celigo.com/api/api-reference/b2b-manager/edi-transactions#post-v1-editransactions-query) with `view: "lifecycle"`, `mode: "expand"`, `referenceDocumentNumber`, and `partnerPairKey` in the body.

***

## Gotchas

* **The log itself is read-only.** There is no `create`, `update`, `set`, or `delete` for transaction records — they are written by flow execution. `update-fa-status` is the one mutating subcommand (`operate` mode), and it only patches the acknowledgement status on existing records. Every other subcommand works in `read` mode — `list` is a `POST` only because its filters travel in the body, and so are `search`, `lifecycles`, `lifecycle-detail`, and `export --view`. Configure the envelopes that produce these records via [edi-profiles](https://developer.celigo.com/cli/commands/edi-profiles.md).
* **`list` reads one page at a time.** The query returns up to `--limit` rows, newest first; the server caps `limit` at `1000`, and a search at `100`. When more exist, stderr names the next page's token, and the same command with `--page-token <token>` reads that page (since celigo-cli 2026.10.2; earlier releases read only the first page). For a bulk pull, `export` writes the whole matching window to CSV behind a signed URL instead (celigo-cli 2026.9.6).
* **`export` URLs expire after 15 minutes, and the window is capped.** Download the CSV promptly — `curl "$(celigo edi-transactions export --jq .url)"` does it in one step. A window matching more records than the server-side cap fails with `exceeded_max_ediTransactions`; narrow `--start`/`--end` and retry. The bounds are epoch milliseconds (not ISO 8601), `--end` needs `--start`, and each export covers one log — each standard has its own CSV columns. With `--view` (celigo-cli 2026.11.2), the export follows the dashboard's filters, and its window is `--from` and `--to`, two calendar dates.
* **TRADACOMS has the flat list only.** `lifecycles`, `lifecycle-detail`, `search --view lifecycle`, and `export --view lifecycle` take X12 and EDIFACT. A TRADACOMS transaction has no functional acknowledgement, so `fa-detail` refuses `--file-type TRADACOMS`. A TRADACOMS `download-file` lookup always names `--file-type TRADACOMS`.
* **A partner pair key keeps its padding.** `lifecycle-detail` takes the group's `groupKey.partnerPairKey` exactly as returned, padding included. Copy it from JSON output and quote it: a table cannot show trailing spaces, and a trimmed key answers `404 lifecycle_group_not_found`.
* **The default window is 30 days.** With `--modified-gte` omitted, the CLI sends a lower bound of 30 days ago. Pass `--modified-gte` explicitly for historical queries.
* **Some filters are applied by the CLI, not the query.** The query applies `--sender`, `--receiver`, `--document-number`, `--fa-status` and the `lastModified` window on the server. It accepts `direction`, `documentType` and `_integrationId` without applying them, so since celigo-cli 2026.10.1 the CLI filters the returned rows on `--direction`, `--document-type` and `--integration` — within the page the query returned, with a stderr note when more transactions exist. `--direction` is matched in any letter case; `--file-type` must be exactly `X12`, `EDIFACT`, or `TRADACOMS`, and any other value of either flag is refused before the query. Earlier releases only sent these filters to the query, which ignores them.
* **`faStatus` updates asynchronously.** A record that shows `inProgress` can later change to `accepted`, `acceptedWithErrors` or `rejected` as 997 (X12) or CONTRL (EDIFACT) acknowledgements arrive from the partner — no new flow run is required.
* **X12 and EDIFACT records name their envelope fields differently.** An X12 record carries `isaSenderId`, `isaReceiverId`, `gsSenderId` and `gsReceiverId`, and `controlNumber.interchange`, `.group` and `.transactionSet`. An EDIFACT record carries `unbSenderId` and `unbReceiverId`, and `controlNumber.unb`, `.ung` and `.unh`. A TRADACOMS record carries `stxSenderId` and `stxReceiverId`. Since celigo-cli 2026.11.2, the default table draws the sender and receiver columns of the standard you query; earlier releases drew the X12 columns for every standard.
* **`download-file` prints the file itself.** Since celigo-cli 2026.10.1 the EDI text goes to stdout as it arrives, on every route; redirect it (`> file.edi`) to save it. Earlier releases printed a JSON-encoded string that needed `| jq -r .` — remove that step from scripts written for them. There is no output-path flag. Downloads are rate limited per user.
* **A document number can match more than one transaction.** `download-file <documentNumber>` returns the latest transaction with that number and type. Narrow it with lookup filters, or download by `--id` with the `_id` from `list`, which names exactly one transaction.
* **Only `--id --fa` downloads a functional acknowledgement.** The document-number routes never return one, so the CLI refuses `--fa` without `--id`. The signed URL that `--id` gets lasts moments: the CLI fetches it at once, and when that fetch fails, running the command again gets a new URL.
* **Other ways to the raw EDI file.** Besides `download-file`, each record carries `_flowJobId` and `s3Key`. To fetch the file from the flow run, call `POST /v1/jobs/{_flowJobId}/files/signedURL` with body `{ "fileIds": ["<s3Key>"] }` — or use [`celigo jobs download-files`](https://developer.celigo.com/cli/commands/jobs.md), which wraps that call.
* **Requires a B2B / EDI license** on the account.

## Related

* [edi-profiles](https://developer.celigo.com/cli/commands/edi-profiles.md) — envelope and acknowledgement configuration that *produces* these transaction records.
* [jobs](https://developer.celigo.com/cli/commands/jobs.md) — each transaction references `_flowJobId`; use `jobs get` and `jobs download-files` to retrieve the raw EDI payload via `s3Key`.
* [flows](https://developer.celigo.com/cli/commands/flows.md) — the flows whose execution writes records to the EDI transaction log.
* [file-definitions](https://developer.celigo.com/cli/commands/file-definitions.md) — X12 / EDIFACT parsing rules referenced by the flows that generate these records.


---

# 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/edi-transactions.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.
