> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI releases

> Published CLI releases and what each one changed.

## 6.0.0 — not yet published

**Breaking:** `struct telemetry log <id>` takes a raw logs row's `id` instead of its `timestamp_ns`, which query results no longer return. `--trace-id` and `--span-id` are gone. Publish after the server release that adds `select: ["*"]`.

* `struct telemetry span <trace-id> <span-id>` and `struct telemetry log <id>` run a raw [query document](https://docs.struct.ai/observability/query-language.md) with `select: ["*"]`: every stored column of the row, each value up to 100,000 characters. A span's logs are a separate raw logs query.
* `struct telemetry query` says on stderr when a `raw` or `table` result has more pages. The result's `nextCursor`, written as `cursor` in one of the document's queries, [reads the next one](https://docs.struct.ai/observability/query-language.md#read-the-next-page).
* Both take `--since <when>` (default 24 hours for `span`, 1 hour for `log`, at most 30 days) and exit 1 with `not_found` when no row matches in that window. `log --at <timestamp>` reads only the 2 seconds around the row's `timestamp`, at any age.

## 5.0.0 — not yet published

**Breaking:** `struct telemetry query` runs documents in Struct's [query language](https://docs.struct.ai/observability/query-language.md) instead of SQL. Use `--document <json>` or `--file <path>`; `--sql` is gone, and Struct no longer accepts SQL queries from any CLI version. Upgrade older CLIs with `npm install -g @struct-ai/cli@latest`.

* `struct telemetry describe <traces|logs|metrics>` lists the services, fields and metrics a query can name.
* `struct telemetry guide [topic]` prints the language guide and worked examples.
* An invalid document exits 1 with `query_invalid` and says how to fix it.
* `struct telemetry log` takes a raw log row's `timestamp_ns`. `--where` is gone; narrow with `--trace-id` and `--span-id`.

## 4.0.1 — not yet published

Fixes for agents setting Struct up from a sandbox:

* With `--json`, `struct init` and `struct login --device` print the claim or device link and code only on the stdout `waiting_for_human` line, no longer on stderr.
* `struct init --help` and its creation notice now match what the temporary key can do before a claim: manage keys, query telemetry and set up native monitors.
* When the CLI cannot create or write `~/.struct`, it fails with `local_storage_unavailable` and names the directory, instead of a bare `ENOENT` error. See [Recovery](https://docs.struct.ai/reference/cli-auth.md#recovery).

## 4.0.0 — November 5, 2026

**Breaking:** `struct skills auto-manage` is gone, and `struct skills list`, `show` and their JSON no longer report who manages a skill. Struct no longer writes or refines skills on its own, so every skill is simply yours to edit.

`struct skills create` and `edit` take `--scope <channel-id>`, and `edit` takes `--global`: a scoped skill is for that Slack channel's teammate only, and needs Configure permission. `skills list` and `show` JSON add `scope`. `struct skills` now calls `/api/skills`; earlier versions keep working on `/api/runbooks` for now. See [Skills](https://docs.struct.ai/agent/skills.md).

## 3.1.0 — November 4, 2026

Adds `struct notification-groups list|get|create|update|delete` for named sets of Slack channels and webhooks that monitors send to. See [Read results and configure delivery](https://docs.struct.ai/observability/monitors/results-and-delivery.md#send-to-a-notification-group).

## 3.0.0 — November 2, 2026

**Breaking:** `struct skills search` now searches native skills and every configured external source. Its JSON is `{skills, sources, partial, nextSourceOffset}`, replacing `{runbooks, totalCount}`; each result carries a canonical `ref` such as `struct:<id>` or `notion:<source-id>:<page-id>`. Narrow it with repeatable `--source` and continue through sources with `--source-offset`.

* `struct skills sources` manages external skill sources, and `struct skills browse` explores one source. `struct skills show` accepts canonical references and returns one chunk at a time with revision and completeness; `--markdown` assembles a whole reference.
* `struct connect notion` and `struct notion pages|configure` connect Notion (private preview, read-only) and choose the pages Struct may read.
* `struct monitors create|update|preview` accept condition monitors (`"sourceType": "condition"`). `list`, `get` and `chart` handle monitors without a top-level threshold.

`skills list` and raw native IDs in `skills show` keep their previous output. See [Agent and workspace customization](https://docs.struct.ai/reference/cli-customize.md) and [Telemetry and monitoring](https://docs.struct.ai/reference/cli-monitoring.md).

## 2.5.0 — October 29, 2026

Adds agent-created workspaces and ownership claim through `struct init`, plus bounded telemetry queries and span/log detail commands. See [Authentication and workspaces](https://docs.struct.ai/reference/cli-auth.md) and [Telemetry and monitoring](https://docs.struct.ai/reference/cli-monitoring.md).

## 2.4.0 — October 27, 2026

This changelog starts with 2.4.0 as the baseline for the CLI setup workflow: authentication to existing workspaces, provider connections, telemetry service discovery, monitor management and workspace customization. It does **not** contain `struct init` or the telemetry-query workflow added in 2.5.0.

## Check and update

```bash theme={null}
struct --version
npm view @struct-ai/cli version
npm install -g @struct-ai/cli@latest
```

Package publication and server deployment are separate: a command can be in the installed CLI before the server enables it for your workspace.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.