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

# subscriptions

Read-only view of the account's licensing and entitlement usage — what tier the account is on, what it's consuming, and how that's trended month-over-month.

**REST API**: [Subscription & Entitlements](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements)

**OpenAPI spec**: `dist/subscription.yml` in `@celigo/api-specs` — see [OpenAPI specs](https://developer.celigo.com/api/using-the-api/openapi-specs)

```
celigo subscriptions <subcommand>
```

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

***

## Subcommands

| Subcommand               | Purpose                                                                                                                                                                     |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `licenses`               | License (subscription) information for the current account: the type and tier that decide what the flow and endpoint meters count, and each allowance.                      |
| `usage`                  | One combined object aggregating every usage surface, fetched in parallel.                                                                                                   |
| `entitlement-usage`      | Current usage per license entitlement in the environment the request is made in, with the endpoints and flows each count covers.                                            |
| `historical-usage`       | Historical monthly entitlement usage for flow-run pricing models.                                                                                                           |
| `api-usage`              | API-call usage detail for the account.                                                                                                                                      |
| `api-usage-summary`      | Monthly API invocation totals, newest first, summed across every environment: the current month and the 13 before it, one row each (14 rows). Added in celigo-cli 2026.9.6. |
| `api-usage-environments` | The current month's API invocation counters per environment. Added in celigo-cli 2026.9.6.                                                                                  |

***

## `celigo subscriptions licenses`

Fetch the licenses associated with the current account.

A license's `type` and the year marker in its `tier` decide what the flow and endpoint meters count: a plan meters either the flows that run in the billing period or the flows that are enabled (see [How endpoints are counted](#how-endpoints-are-counted)). Each allowance is a base `num*` count plus its `numAddOn*` add-ons, per environment — for endpoints, `numEndpoints` plus `numAddOnEndpoints`.

A license's `logging.maxDebugDuration` is how many minutes ahead a flow's `logging.debugUntil` can be set. [`flows enable-execution-logs`](https://developer.celigo.com/cli/commands/flows.md#celigo-flows-enable-execution-logs) stops at 60 minutes; for a longer window, set `logging.debugUntil` with `flows set`, up to this cap.

**Signature**

```bash
celigo subscriptions licenses
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
# Identify the subscription tier
celigo subscriptions licenses --format json | jq '.[] | {type, tier: .tier}'

# How far ahead, in minutes, a flow's debug window can be set
celigo subscriptions licenses --jq '.[] | .logging.maxDebugDuration // empty'
```

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

***

## `celigo subscriptions usage`

Return one combined object aggregating every usage surface, fetched in parallel: account usage (`usage`), API (`apiUsage`, plus — since celigo-cli 2026.9.6 — the monthly `apiUsageSummary` and per-environment `apiUsageEnvironments`), license entitlement (`entitlementUsage`), historical monthly (`historicalMonthlyUsage`), EDI label printing (`labelPrinting`), storage per environment (`storage`), and syncs (`syncs`). License-gated sources you lack come back as inline `{"error": ...}` entries instead of failing the command.

> **Breaking change in celigo-cli 2026.8.7.** `usage` previously printed only the bare `/v1/usage` account records — a monthly array with duration in milliseconds. Anything parsing that old shape should pipe `--jq .usage`, which yields exactly the old payload.

**Signature**

```bash
celigo subscriptions usage
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
# The combined nine-surface object
celigo subscriptions usage

# Just the legacy account usage records (the pre-2026.8.7 output)
celigo subscriptions usage --jq .usage

# This month's API invocations per environment, out of the combined object
celigo subscriptions usage --jq .apiUsageEnvironments
```

**Corresponds to**: nine parallel reads — [`GET /v1/usage`](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements), [`GET /v1/apis/usage`](https://developer.celigo.com/api/api-reference/api-management/apis), [`GET /v1/apis/usage/summary`](https://developer.celigo.com/api/api-reference/api-management/apis), [`GET /v1/apis/usage/environments`](https://developer.celigo.com/api/api-reference/api-management/apis), [`GET /v1/licenseEntitlementUsage`](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements#get-v1-licenseentitlementusage), [`GET /v1/historicalMonthlyUsage`](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements#get-v1-historicalmonthlyusage), plus the label-printing, per-environment storage, and syncs usage endpoints.

***

## `celigo subscriptions entitlement-usage`

Return entitlement usage for the environment the request is made in, keyed by usage category — flows enabled, endpoints consumed, agents active, trading partners consumed, and environments enabled on multi-environment licenses. `endpointUsage.numConsumed` counts endpoints, and `endpointUsage.endpoints` lists each counted endpoint with the connections in it.

### How endpoints are counted

An endpoint is a connected application, not a connection:

* Connections that share an application profile (`assistant`) are one endpoint, and so are HTTP connections linked to the same HTTP connector.
* Any other connection counts by where it points: a generic HTTP connection by its base URI, a database by engine and host, an FTP server by host and port. Two generic HTTP connections to one application through different base URIs — a second store, another API version in the path — are two endpoints.
* A connection no flow references never counts, and neither does one to the platform's own API (`api.integrator.io`).

Which flows bring an endpoint into the count follows the plan's meter, which the license's `type` and the year marker in its `tier` decide ([`licenses`](#celigo-subscriptions-licenses)):

* **A plan that meters runs** counts an endpoint once a flow that uses it runs in the billing period; enabled flows that have not run add none. The endpoint stays counted for the whole period even if that flow is disabled afterwards, so disabling it frees nothing until the next period. Deleted flows and connections may also still count until they are purged.
* **A plan that meters enabled flows** counts an endpoint while an enabled flow uses one of its connections, run or not. A connection that only disabled flows use doesn't count.

Counts and allowances are per environment. To explain an unexpected count, read each entry of `endpointUsage.endpoints` and the connections in it.

**Signature**

```bash
celigo subscriptions entitlement-usage
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
# How close is the account to its flow allocation?
celigo subscriptions entitlement-usage --format json \
  | jq '{flows: .flowUsage.numEnabled, endpoints: .endpointUsage.numConsumed, agents: .agentUsage.numActive}'

# Which connections make up each counted endpoint?
celigo subscriptions entitlement-usage \
  --jq '[.endpointUsage.endpoints[] | {type, assistant, baseURI, connections: [.connections[].name]}]'
```

**Corresponds to**: [`GET /v1/licenseEntitlementUsage`](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements#get-v1-licenseentitlementusage)

***

## `celigo subscriptions historical-usage`

Return historical monthly entitlement usage — intended for flow-run pricing models (primarily platform licenses). Useful for month-by-month trend analysis against allocation.

**Signature**

```bash
celigo subscriptions historical-usage
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
# Usage trend for the trailing year
celigo subscriptions historical-usage --format json | jq '.[] | {month, flowRuns, allocation}'
```

**Corresponds to**: [`GET /v1/historicalMonthlyUsage`](https://developer.celigo.com/api/api-reference/account-and-admin/subscription-and-entitlements#get-v1-historicalmonthlyusage)

***

## `celigo subscriptions api-usage`

Return API-call usage detail for the account.

**Signature**

```bash
celigo subscriptions api-usage
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
celigo subscriptions api-usage --format table
```

**Corresponds to**: [`GET /v1/apis/usage`](https://developer.celigo.com/api/api-reference/api-management/apis#get-v1-apis-usage)

***

## `celigo subscriptions api-usage-summary`

Monthly API invocation totals, newest first, summed across every environment: the current month and the 13 before it, one row each (14 rows). The month-over-month view of the account's API traffic; `api-usage-environments` splits the current month by environment instead. Also returned as `apiUsageSummary` inside `usage`. Added in celigo-cli 2026.9.6.

**Signature**

```bash
celigo subscriptions api-usage-summary
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
# This month's API invocations and the 13 months before it, newest first
celigo subscriptions api-usage-summary --format table
```

**Corresponds to**: [`GET /v1/apis/usage/summary`](https://developer.celigo.com/api/api-reference/api-management/apis)

***

## `celigo subscriptions api-usage-environments`

The current month's API invocation counters per environment. The per-environment split of the month `api-usage-summary` reports as one total. Also returned as `apiUsageEnvironments` inside `usage`. Added in celigo-cli 2026.9.6.

**Signature**

```bash
celigo subscriptions api-usage-environments
```

**Arguments**

None.

**Flags**

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

**Example**

```bash
celigo subscriptions api-usage-environments --format json
```

**Corresponds to**: [`GET /v1/apis/usage/environments`](https://developer.celigo.com/api/api-reference/api-management/apis)

***

## Gotchas

1. **Read-only surface.** Every subcommand here is a `GET`. There's no CLI path to upgrade a license or change an entitlement — license upgrades route through the Celigo sales team (the underlying `/api/licenses/upgradeRequest` endpoint is session-auth only and returns `404 Not Found` to bearer PATs).
2. **`usage` combines every surface since celigo-cli 2026.8.7.** It fans out to all nine usage endpoints (`apiUsageSummary` and `apiUsageEnvironments` joined in celigo-cli 2026.9.6) and returns one keyed object; the other subcommands remain for reading a single surface. Scripts that parsed the old bare `/v1/usage` array should pipe `--jq .usage`. A missing license shows up as an inline `{"error": ...}` entry, not a failure.
3. **`entitlement-usage` is keyed by usage category, not by environment.** The response is shaped `{ flowUsage: {...}, endpointUsage: {...}, agentUsage: {...}, environmentUsage: {...}, … }`. If you're piping to `jq`, target the category key you want. Per-environment counts live under `environmentUsage.environments`.
4. **An endpoint is a connected application, not a connection.** Connections to one application can be one endpoint or several, and on a plan that meters runs, disabling a flow frees no endpoint until the next billing period. See [How endpoints are counted](#how-endpoints-are-counted).
5. **No pagination, no filters.** These endpoints return the full account snapshot in one shot. There are no `--limit`, `--start-date`, or `--status` flags — if you need a windowed view, slice the JSON yourself.
6. **Not the same as `notifications`.** `subscriptions` is account licensing; `notifications` is per-user email subscription to integration/flow/connection events. Despite the overlapping word, they're unrelated surfaces.

## Related

* [notifications](https://developer.celigo.com/cli/commands/notifications.md) — per-user notification subscriptions (integrations, flows, connections).
* [account](https://developer.celigo.com/cli/commands/account.md) — account-wide operations (snapshot, search, stats) that pair well with usage data.
* [jobs](https://developer.celigo.com/cli/commands/jobs.md) — flow-run volume visible through `jobs list` correlates with `historical-usage` usage trends.


---

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