# Install (/docs/cli/install)



## macOS (Homebrew) [#macos-homebrew]

```bash
brew install layers/tap/layers
```

## macOS / Linux (curl) [#macos--linux-curl]

```bash
curl -fsSL https://layers.com/install.sh | sh
```

## Windows (Scoop) [#windows-scoop]

```powershell
scoop bucket add layers https://github.com/layers/scoop-bucket
scoop install layers
```

## Direct download [#direct-download]

Pre-built binaries are on [GitHub Releases](https://github.com/layers/cli/releases).

## Verify the install [#verify-the-install]

```bash
layers --version
layers doctor
```

`layers doctor` checks version, auth, and API connectivity.

## Update [#update]

```bash
layers update
```

Updates the CLI to the latest release.

## Global flags [#global-flags]

| Flag                 | Description                                         |
| -------------------- | --------------------------------------------------- |
| `-o, --org <id>`     | Override the default organization for this command. |
| `-p, --project <id>` | Override the default project for this command.      |
| `--help`             | Show help.                                          |
| `--version`          | Show the CLI version.                               |
