# Install

Install the Charter runtime: a static binary for Linux and macOS, or the container image.

## Install

### Install script

```sh
curl -fsSL https://charterapp.dev/install.sh | sh
```

### Homebrew

```sh
brew install --cask snaapi/charter/charter
```

### Container

```sh
docker pull ghcr.io/snaapi/charter:1.0.0-alpha.5
```

## Platforms

- Linux x86_64 and aarch64, statically linked against musl
- macOS Apple silicon and Intel

> [!INFO]
> There is no Windows build yet.

## Verify

Each release's tarballs and `SHA256SUMS` are published at https://downloads.charterapp.dev/v1.0.0-alpha.5/, and the install script checks the download against them. Check the install with:

```sh
charter --version
```

For the container image:

```sh
docker run --rm ghcr.io/snaapi/charter:1.0.0-alpha.5 --version
```

## Upgrade

Upgrade a binary install in place. With no version, Charter reads `latest.json` and installs that release when it is newer than the one you are running. Pass a version to install that release instead.

```sh
charter upgrade
charter upgrade 1.0.0-alpha.5
```

Homebrew:

```sh
brew upgrade --cask charter
```

Container:

```sh
docker pull ghcr.io/snaapi/charter:1.0.0-alpha.5
```

> [!INFO]
> 1.0.0-alpha.5 is the first public alpha. The config format, the REST and MCP surfaces and the CLI may still change before 1.0.0.
