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

# Installation

> Install the hexel CLI for infrastructure and resource management.

The `hexel` CLI manages Hexel Studio infrastructure from the terminal: compute, fleets, tasks, tools, policies, approvals, runtime, and auth.

## Install

```bash theme={"dark"}
curl -fsSL https://hexelstudio.com/install.sh | bash
```

Or build from source (requires Go 1.22+):

```bash theme={"dark"}
go install github.com/hexelstudio/cli@latest
```

## Authenticate

```bash theme={"dark"}
# API key
export HEXEL_API_KEY="YOUR_API_KEY"

# Or OAuth client credentials
export HEXEL_CLIENT_ID="YOUR_CLIENT_ID"
export HEXEL_CLIENT_SECRET="YOUR_CLIENT_SECRET"

# Verify
hexel auth login
```

Per-command flags `--api-key`, `--client-id`, and `--client-secret` are also available.

## Global flags

| Flag              | Description                                               |
| ----------------- | --------------------------------------------------------- |
| `-k, --api-key`   | API key (or `HEXEL_API_KEY` env var)                      |
| `--client-id`     | OAuth client ID (or `HEXEL_CLIENT_ID`)                    |
| `--client-secret` | OAuth client secret (or `HEXEL_CLIENT_SECRET`)            |
| `-o, --output`    | Output format: `table`, `json`, `yaml` (default: `table`) |
| `-h, --help`      | Help for any command                                      |

## Uninstall

```bash theme={"dark"}
sudo rm /usr/local/bin/hexel
```

## Next steps

Continue to the [Quickstart](/docs/sdks/cli/quickstart).
