> ## Documentation Index
> Fetch the complete documentation index at: https://docs.styne.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

> Install the styne command-line client for sandboxes with one command, no root needed.

```bash theme={"theme":"css-variables"}
curl -fsSL https://styne.ai/install | sh
```

The script detects your OS and CPU (Linux and macOS, amd64 and arm64), downloads the binary and the release's
`SHA256SUMS`, checks the release signature and the binary's SHA-256, and refuses to install on a mismatch. It puts `styne`
in `~/.local/bin` and prints the `PATH` line to add if that directory is not on your `PATH`; it never edits your shell
profile. Running it again with the same release changes nothing.

Check it worked:

```bash theme={"theme":"css-variables"}
styne version
```

It prints the version, for example `styne 0.1.0 (linux/amd64)`.

## Log in and run something

```bash theme={"theme":"css-variables"}
export STYNE_API_KEY="<your key>"
id=$(styne sandbox create --template base --timeout 300)
styne sandbox exec "$id" -- uname -sm
styne sandbox kill "$id"
```

The key comes from the **API keys** page of the dashboard; see [authentication](https://docs.styne.ai/authentication.md). `styne login` stores
it in `~/.config/styne/config` (mode 600) so later commands need no variable. The commands are in the [CLI reference](https://docs.styne.ai/cli.md).

## Options

| Variable | Default | Effect |
| - | - | - |
| `STYNE_INSTALL_DIR` | `~/.local/bin` | where the binary goes |
| `STYNE_VERSION` | `latest` | the release to install |
| `STYNE_DOWNLOAD_URL` | `https://styne.ai/cli` | the release server |

## Update and uninstall

Run the install command again to move to the newest release. To remove the binary and the directories the installer
created:

```bash theme={"theme":"css-variables"}
curl -fsSL https://styne.ai/install | sh -s -- --uninstall
```

The installer removes the binary and the directories it created, using the receipt it wrote in `~/.local/state/styne`. Your login in `~/.config/styne` stays; remove it with `styne logout` first if you want it gone.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.