---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# CLI commands

Build and operate workspaces from the terminal. Find commands, arguments and options.

## Install the CLI

On macOS or Linux, run the installer, then open the built-in help.

Terminal

```
curl -fsSL https://segmentstream.com/install.sh | sh
segmentstream --help
```

## Global options

- `-V, --version`

  Show the version and exit.

- `--organization ORG-ID`

  Organization for this command

- `--debug`

  Show redacted local error causes and stacks

- `--help`

  Show this message and exit.

## Commands

[**segmentstream agent**Initialize the company agent, inspect action logs, session and chat figures, and run its evals against a preview](https://segmentstream.com/docs/cli/agent) · [**segmentstream api-key**Manage personal API keys for non-interactive sign-in (CI, automation)](https://segmentstream.com/docs/cli/api-key) · [**segmentstream app**Develop the workspace app and manage its members](https://segmentstream.com/docs/cli/app) · [**segmentstream asset**Materialize deployed assets without a named job](https://segmentstream.com/docs/cli/asset) · [**segmentstream auth**Delegate your CLI sign-in to a browser](https://segmentstream.com/docs/cli/auth) · [**segmentstream billing**Manage the active organization's billing and prepaid credits.](https://segmentstream.com/docs/cli/billing) · [**segmentstream changelog**Show what changed in the SDKs that DIRECTORY (default: the current project) pins, from each pin up to the version this CLI's starter pins: first every paragraph that asks the workspace to change (Action required), then the full release notes. Reads the notes this CLI carries; changes nothing.](https://segmentstream.com/docs/cli/changelog) · [**segmentstream connection**Inspect, configure, and authorize deployed workspace connections](https://segmentstream.com/docs/cli/connection) · [**segmentstream deploy**Deploy committed main to the workspace Git repository.](https://segmentstream.com/docs/cli/deploy) · [**segmentstream dev**Run the app and ontology locally against a private copy of production data.](https://segmentstream.com/docs/cli/dev) · [**segmentstream doctor**Check, without changing anything, what the CLI needs here: installation, state, proxies and CA settings, identity, organization, the linked project's repository and Git. Exits 1 when a check fails.](https://segmentstream.com/docs/cli/doctor) · [**segmentstream domain**Connect domains you own (via Domain Connect when available) or buy managed domains.](https://segmentstream.com/docs/cli/domain) · [**segmentstream events**Inspect and manage deployed event streams](https://segmentstream.com/docs/cli/events) · [**segmentstream exec**Run a local command with selected HTTP connections](https://segmentstream.com/docs/cli/exec) · [**segmentstream init**Write a starter project into DIRECTORY (new or empty). Needs no sign-in and does not create or link a workspace.](https://segmentstream.com/docs/cli/init) · [**segmentstream job**Inspect and run deployed pipeline jobs](https://segmentstream.com/docs/cli/job) · [**segmentstream lineage**Inspect production asset lineage](https://segmentstream.com/docs/cli/lineage) · [**segmentstream link**Link DIRECTORY (default: the current project) to an existing workspace or to a new one. Without --workspace, choose interactively.](https://segmentstream.com/docs/cli/link) · [**segmentstream login**Sign in in the browser; keep this process running](https://segmentstream.com/docs/cli/login) · [**segmentstream logout**Remove the local session and sign out in the browser](https://segmentstream.com/docs/cli/logout) · [**segmentstream logs**Read the workspace application's logs.](https://segmentstream.com/docs/cli/logs) · [**segmentstream oauth-app**Manage Sign in with SegmentStream for a workspace](https://segmentstream.com/docs/cli/oauth-app) · [**segmentstream ontology**Manage the deployed ontology: API keys for services such as the website, and agents' access over MCP; read and answer the feedback the app's members send; inspect entities and query their metrics; see the latency and load of each operation](https://segmentstream.com/docs/cli/ontology) · [**segmentstream org**Manage the active organization](https://segmentstream.com/docs/cli/org) · [**segmentstream previews**Inspect and delete workspace app previews](https://segmentstream.com/docs/cli/previews) · [**segmentstream run**Inspect and terminate pipeline runs, logs, and failures](https://segmentstream.com/docs/cli/run) · [**segmentstream schedule**Inspect, pause, and resume job schedules declared with s.schedule](https://segmentstream.com/docs/cli/schedule) · [**segmentstream secret**Create, rotate, inspect, and delete workspace secrets](https://segmentstream.com/docs/cli/secret) · [**segmentstream self**Manage this SegmentStream CLI itself. Commands about a project, such as \`segmentstream upgrade\`, live at the top level.](https://segmentstream.com/docs/cli/self) · [**segmentstream status**Show whether committed main is live in the linked workspace.](https://segmentstream.com/docs/cli/status) · [**segmentstream telegram-bot**Finish a Telegram bot SegmentStream creates for a connection or the agent; \`agent init --create-bot\` and \`connection authorize\` start one](https://segmentstream.com/docs/cli/telegram-bot) · [**segmentstream unlink**Remove the workspace link from this project](https://segmentstream.com/docs/cli/unlink) · [**segmentstream upgrade**Upgrade the project in DIRECTORY (default: the current project) to what this CLI knows. Pins each SDK the project pins at an older release to the newest one this CLI knows: @segmentstream packages in ontology/, app/ and agent/ with npm, the connections and pipeline SDKs in the Python projects with uv, after listing what the releases in between ask the workspace to change. Updates the agent docs, skills and AGENTS.md instructions (Git merges the starter's changes into files with local edits, and leaves conflicts in .segmentstream/sync/), then runs the ontology's check, showing its output when it fails and its warnings when it passes. Changes local files only: review the diff, make the changes the releases ask for, commit and deploy.](https://segmentstream.com/docs/cli/upgrade) · [**segmentstream uv**Run the bundled uv package and Python project manager](https://segmentstream.com/docs/cli/uv) · [**segmentstream warehouse**Browse and query workspace data warehouse datasets, tables, and previews](https://segmentstream.com/docs/cli/warehouse) · [**segmentstream whoami**Show the current SegmentStream identity](https://segmentstream.com/docs/cli/whoami) · [**segmentstream workflow**Inspect, start, and follow the runs of workflows declared in ontology/workflows/](https://segmentstream.com/docs/cli/workflow) · [**segmentstream workspace**Create, inspect, and manage workspaces](https://segmentstream.com/docs/cli/workspace)

[Read as Markdown ↗](https://segmentstream.com/docs/cli.md)
