# Install streamview

Install the streamview program on macOS or Linux with one command, or use the container image.

Source: https://www.eventcatalog.dev/tools/streamview/docs/how-to/install-streamview

You can use streamview in two ways: as a program on your computer, or as a container.

## Install the program on macOS or Linux

Run this command in a terminal:

```
curl -fsSL https://github.com/event-catalog/streamview/releases/latest/download/install.sh | sh
```

The command downloads the program for your computer and checks the download.
It puts the program `streamview` in the directory `~/.local/bin`.

If that directory is not on your path, the command tells you. It shows the line to add to the configuration file of your shell.

To make sure that the program works, run `streamview demo`.

The program contains the server, the page, the fonts, and the adapters for Kafka, NATS, and RabbitMQ.
For `streamview kafka`, `streamview nats`, and `streamview rabbitmq`, you also need Node.js. We tested version 24.

## Select the version or the directory

Set a variable before `sh`:

| Variable | Default | What it does |
|---|---|---|
| `STREAMVIEW_VERSION` | The latest release | Gives the version to install, for example `0.1.0`. |
| `STREAMVIEW_INSTALL_DIR` | `~/.local/bin` | Gives the directory for the program. |

For example:

```
curl -fsSL https://github.com/event-catalog/streamview/releases/latest/download/install.sh | STREAMVIEW_VERSION=0.1.0 sh
```

## Use Windows, or do not install a program

Use the container image. You need only Docker.

```
docker run --rm -p 127.0.0.1:4747:4747 ghcr.io/event-catalog/streamview
```

See [Run streamview in Docker](https://www.eventcatalog.dev/tools/streamview/docs/how-to/run-in-docker).

## Get a newer version

Run this command:

```
streamview update
```

The command downloads the latest version and replaces the program.
If you use the container, run `docker pull ghcr.io/event-catalog/streamview`.

When streamview starts, it tells you if there is a newer version. It prints one line in the terminal.
For this, streamview asks GitHub for the number of the latest version, one time each day.
It does not send data about you or your events.
To stop this check, set the variable `STREAMVIEW_NO_UPDATE_CHECK` to `1`.

To see the version that you have, run `streamview --version`.
Version 0.1.0 has no `update` command. If you have that version, run the install command again.

## Remove streamview

Delete the file `~/.local/bin/streamview`.
The adapters are in the directory `~/.cache/streamview`. Delete that directory too.

## Related

- [Build streamview from the source code](https://www.eventcatalog.dev/tools/streamview/docs/how-to/build-from-source)
- [Command line](https://www.eventcatalog.dev/tools/streamview/docs/reference/command-line)
