# Install

On macOS and Linux:

```sh
curl -fsSL https://getstream.io/cli.sh | bash
```

On Windows, use [WSL](https://learn.microsoft.com/windows/wsl/install).

The script installs `getstream` to `~/.local/bin` and, if that is not on your `PATH`, adds it to your shell's rc file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile` or `~/.profile`, or fish's `config.fish`). To install somewhere else, pipe it into `STREAM_CLI_BIN_DIR=<dir> bash`.

The Stream Agents commands (`getstream agents`) are only in beta builds for now. The beta script installs the same way, replacing a build already in `~/.local/bin`:

```sh
curl -fsSL https://getstream.io/cli/beta/install.sh | bash
```

The CLI is also available as an npm package for Node.js 22.15 or newer:

```sh
npm install -g @stream-io/cli
```

Node.js is not required to use the CLI. Pick npm if that's already how you install tools. Otherwise prefer the install script.

Verify the install:

```sh
getstream --version
```

---

For the most recent version of this documentation, visit [https://getstream.io/cli/docs/install/](https://getstream.io/cli/docs/install/).