*Guides › Get started*

# Install the CLI

3 min · 6 steps · Languages: dcloud

`dcloud` is the Dispra Cloud CLI: deploy, follow logs, set variables, manage domains and apply `dispra.yaml` from your terminal, your CI and your AI coding agents. It runs on macOS, Linux and Windows, on Intel and ARM.

## 1. Install it

On macOS or Linux, use Homebrew or the install script. The script downloads the latest release for your system, checks it against the release's `checksums.txt`, and puts `dcloud` in `/usr/local/bin` (or `~/.local/bin` when that isn't writable).

### Install (Homebrew)

```bash
brew install prethmhq/tap/dcloud
```

### Install (Install script)

```bash
curl -fsSL https://dispralabs.com/downloads/dcloud-cli.sh | sh
```

### Dispra Cloud CLI

```bash
brew install prethmhq/tap/dcloud
```

## 2. Choose the version or the folder

The install script reads two variables:

- `DCLOUD_VERSION` installs that version instead of the latest, for example `0.2.1`.
- `DCLOUD_INSTALL_DIR` installs into that folder. Make sure it is on your `PATH`.

Pin the version in CI, so a new release never changes a build by surprise.

### Dispra Cloud CLI

```bash
curl -fsSL https://dispralabs.com/downloads/dcloud-cli.sh | DCLOUD_VERSION=0.2.1 sh

curl -fsSL https://dispralabs.com/downloads/dcloud-cli.sh | DCLOUD_INSTALL_DIR=$HOME/bin sh
```

## 3. On Windows

Download `dcloud_windows_amd64.zip` (or `dcloud_windows_arm64.zip` on ARM) from the [latest release](https://github.com/PrethmHQ/dispra-cli/releases/latest) on GitHub, unzip it, and put `dcloud.exe` in a folder on your `PATH`. Each release lists the SHA-256 of every file in `checksums.txt`.

## 4. Check it works

`dcloud --version` prints the version; `dcloud help` lists every command, and `dcloud <command> -h` shows a command's flags.

### Dispra Cloud CLI

```bash
dcloud --version
# dcloud 0.2.1
dcloud help
```

## 5. Sign in and link a folder

`dcloud login` opens your browser to sign in (in a terminal without a browser, it prints a code and an address to open elsewhere). Then link the folder of your code to a project and an environment: `dcloud link` writes `.dcloud/`, which keeps itself out of git. Commands run in that folder, or any folder under it, use the link; `--project` and `--env` override it.

Where no one can sign in, such as CI or an agent's sandbox, set `DCLOUD_TOKEN` instead: see [Sign in from CI and sandboxes](https://docs.dispralabs.com/guides/sign-in-from-ci-and-sandboxes.md).

### Dispra Cloud CLI

```bash
dcloud login
dcloud link
dcloud status
dcloud deploy api --wait
```

## 6. Upgrade

With Homebrew, `brew upgrade dcloud`. With the script, run it again: it replaces the binary in place. On Windows, download the new zip. Releases are listed on [GitHub](https://github.com/PrethmHQ/dispra-cli/releases).

### Dispra Cloud CLI

```bash
brew upgrade dcloud
# or
curl -fsSL https://dispralabs.com/downloads/dcloud-cli.sh | sh
```

## Next steps

Next: let your coding agent use it: [Use Dispra with AI agents](https://docs.dispralabs.com/guides/use-dispra-with-ai-agents.md).
