---
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/"
---

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

## Usage

Command syntax

```
segmentstream upgrade [OPTIONS] [DIRECTORY]
```

## Options

- `--organization ORG-ID`

  Organization for this command

- `--help`

  Show this message and exit.

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