> ## Documentation index
> Fetch the complete documentation index at: https://developer.rhombus.com/llms.txt
> Use it to discover all available pages before exploring further.

# Rhombus CLI

> Manage cameras, doors, alerts, sensors, and your entire Rhombus deployment from the command line — stitch video, monitor alerts, and chat with AI tooling.

The Rhombus CLI gives you direct terminal access to your entire Rhombus security platform — 60+ API resource categories, plus higher-level commands for video stitching, frame analysis, real-time alert monitoring, and AI-powered chat.

- **[Want to learn more about the Rhombus CLI?](mailto:support@rhombus.com?subject=Rhombus%20CLI%20inquiry)**: Contact us for onboarding help, demos, or additional learning resources.

## Install

**Homebrew (macOS/Linux)**

```bash
brew install RhombusSystems/tap/rhombus
```

**Shell Script (macOS/Linux)**

```bash
curl -fsSL https://raw.githubusercontent.com/RhombusSystems/rhombus-cli/main/install.sh | sh
```

On Linux, this automatically uses `.deb` or `.rpm` packages when a compatible package manager is detected.

**PowerShell (Windows)**

```powershell
irm https://raw.githubusercontent.com/RhombusSystems/rhombus-cli/main/install.ps1 | iex
```

**From Source**

Requires Go 1.26+:

```bash
git clone https://github.com/RhombusSystems/rhombus-cli.git
cd rhombus-cli
make install
```

## Authenticate

**Browser Login (Recommended)**

```bash
rhombus login
```

Opens your browser to [sign in with Rhombus](https://developer.rhombus.com/oauth-authentication) (OAuth) and stores an access token and a refresh token for the profile. The CLI refreshes the access token itself, and no API key is created. If the sign-in expires or is revoked, run `rhombus login` again.

EU organizations add `--region eu` (`--region us|eu`); the region is saved on the profile. Partner accounts are detected at sign-in; `rhombus login --partner` skips that check.

Profiles set up with an API key or a certificate keep working.

**Manual Configuration**

```bash
rhombus configure
```

Prompts for an API key, output format, region (`us`/`eu`), and endpoint URL. Use this when you already have an API key from the [Rhombus Console](https://console.rhombussystems.com/settings/integrations/api-tokens/).

**Environment Variable**

```bash
export RHOMBUS_API_KEY=YOUR_API_KEY
```

Overrides stored credentials. Useful for CI/CD pipelines and scripts.

### Profiles

Manage multiple organizations or regions with named profiles:

```bash
rhombus login --profile eu-org
rhombus camera get-minimal-camera-state-list --profile eu-org
```

Credentials are stored in `~/.rhombus/credentials`, which the CLI sets to file permissions 600. Config goes in `~/.rhombus/config`, which holds no keys and keeps your default file permissions.

### EU region

If your organization is in the [EU region](https://developer.rhombus.com/api-regions), run `rhombus login --region eu`, or run `rhombus configure` and answer `eu` at the `Region (us/eu)` prompt. The CLI derives the EU endpoint (`https://api2.eu.rhombussystems.com`) automatically and uses the matching EU sign-in, token and WebSocket hosts. For one-off overrides, use the `--endpoint-url` flag or the `RHOMBUS_ENDPOINT_URL` environment variable.

## API commands

67 resource commands are auto-generated from the Rhombus OpenAPI spec, covering the full API surface. The general pattern is:

```bash
rhombus <resource> <operation> [flags]
```

### Common examples

```bash Cameras
# List all cameras
rhombus camera get-minimal-camera-state-list

# Get detailed camera state
rhombus camera get-full-camera-state --camera-uuid YOUR_CAMERA_UUID
```

```bash Access Control
# List all doors
rhombus door-controller get-doors-for-org

# Grant access to a door
rhombus door-controller grant-access --door-uuid YOUR_DOOR_UUID
```

```bash Alerts & Events
# List recent policy alerts
rhombus event get-policy-alerts-v2

# Get alert details with bounding boxes
rhombus event get-policy-alert-details --alert-uuid YOUR_ALERT_UUID
```

```bash Locations & Users
# List locations
rhombus location get-locations

# List users in your org
rhombus user get-users-in-org
```

### JSON input for complex requests

For endpoints with complex request bodies, use `--cli-input-json`:

```bash
# Generate a parameter template
rhombus camera get-full-camera-state --generate-cli-skeleton

# Pass parameters as inline JSON
rhombus event get-policy-alerts-v2 --cli-input-json '{"maxResults": 10}'

# Pass parameters from a file
rhombus event get-policy-alerts-v2 --cli-input-json file://params.json
```

> **Tip**: Use `--generate-cli-skeleton` on any command to see all accepted parameters as a JSON template.

### Available resources

The CLI covers 60+ resource categories including: access-control, alert-monitoring, audio-gateway, camera, climate, door-controller, doorbell-camera, elevator, event, event-search, export, face-recognition-person, integrations, location, lockdown-plan, occupancy, org, partner, permission, policy, report, rules, scene-query, schedule, search, sensor, user, vehicle, video, webhook-integrations, and more.

## Higher-level commands

Beyond direct API access, the CLI has several composite commands.

### Alert management

```bash
# Recent alerts (filter by camera name)
rhombus alert recent --camera "Front Lobby" --max 10

# Download alert thumbnail
rhombus alert thumb ALERT_UUID --output thumb.jpg

# Download alert video clip
rhombus alert download ALERT_UUID --output clip.mp4

# Open alert clip in browser
rhombus alert play ALERT_UUID
```

### Live footage

```bash
# Open live view for a camera (by name)
rhombus footage "Front Lobby"

# Jump to a specific time
rhombus footage "Front Lobby" --start "5m ago"
rhombus footage "Front Lobby" --start 1711900800000
```

Starts a local HTTP server with an authenticated player and opens your browser.

### Real-time alert monitoring

```bash
# Stream policy alerts as they fire
rhombus monitor

# Include all event types (not just policy alerts)
rhombus monitor --all-events

# JSON output for piping to other tools
rhombus monitor --json
```

Connects via WebSocket (STOMP protocol) with automatic reconnection, to the EU WebSocket host for EU profiles. With `--partner-org`, it sends the client organization in the `x-auth-org` header. Pipe `--json` output to `jq` for filtering:

```bash
rhombus monitor --json | jq 'select(.deviceName == "Lobby Camera")'
```

### Video stitching

Combine footage from multiple cameras into a single grid-layout video. Requires `ffmpeg`.

```bash
# Stitch events across cameras at a location
rhombus stitch --location "HQ" --start "2h ago" --end "1h ago"

# Specific cameras with buffer time
rhombus stitch --camera "Entrance" --camera "Lobby" --start "30m ago" --buffer 5
```

Creates an MP4 with timestamp overlays from events across selected cameras.

### Frame analysis

Extract intelligently-sampled frames with activity detection metadata — useful for ML pipelines.

```bash
# Analyze frames from an alert
rhombus analyze alert ALERT_UUID

# Analyze footage across cameras at a location
rhombus analyze footage --location "HQ" --start "1h ago" --end "30m ago"

# Include motion metadata, output raw frames
rhombus analyze footage "Lobby Cam" --start "2h ago" --include-motion --raw
```

### Deployment context

Generate a structured snapshot of your entire deployment — locations, cameras, hardware info, coordinates, and current stills.

```bash
# Full deployment snapshot
rhombus context generate

# Specific location or camera
rhombus context location "HQ"
rhombus context camera "Front Lobby"
```

### AI chat (Rhombus MIND)

Natural language interface to your Rhombus deployment. The chat agent can execute CLI commands on your behalf.

```bash
# Interactive chat
rhombus chat

# Voice-powered chat (requires sox and whisper-cpp)
rhombus voice --model base
```

> **Note**: Voice mode requires [sox](https://sox.sourceforge.net/) for audio capture and [whisper-cpp](https://github.com/ggerganov/whisper.cpp) for speech-to-text.

## Global flags

| Flag             | Description                                                               |
| ---------------- | ------------------------------------------------------------------------- |
| `--profile`      | Configuration profile (default: `"default"`)                              |
| `--output`       | Output format: `json`, `table`, `text` (default: `json`)                  |
| `--api-key`      | Override API key for this command                                         |
| `--endpoint-url` | Override API endpoint URL (EU orgs: `https://api2.eu.rhombussystems.com`) |
| `--partner-org`  | Client org name or UUID (for partner accounts)                            |

## Partner accounts

For partner/multi-tenant organizations, use `--partner-org` to operate on client orgs:

```bash
rhombus camera get-minimal-camera-state-list --partner-org "Acme Corp"
rhombus camera get-minimal-camera-state-list --partner-org ORG_UUID
```

Name matching is case-insensitive and substring-based. If multiple orgs match, you are prompted to select one.

## Environment variables

| Variable               | Description                                                           |
| ---------------------- | --------------------------------------------------------------------- |
| `RHOMBUS_API_KEY`      | API key (overrides credentials file)                                  |
| `RHOMBUS_PROFILE`      | Profile name (default: `default`)                                     |
| `RHOMBUS_OUTPUT`       | Output format: `json`, `table`, `text`                                |
| `RHOMBUS_ENDPOINT_URL` | API endpoint override (EU orgs: `https://api2.eu.rhombussystems.com`) |

## Configuration files

| Path                          | Purpose                                                                  |
| ----------------------------- | ------------------------------------------------------------------------ |
| `~/.rhombus/config`           | Default output format, endpoint URL (INI format)                         |
| `~/.rhombus/credentials`      | OAuth tokens, API keys and cert paths per profile (INI, 600 permissions) |
| `~/.rhombus/certs/<profile>/` | Client certificates and private keys (certificate profiles)              |

Configuration precedence: CLI flags > environment variables > profile config > defaults.

## Platform support

| OS      | Architectures |
| ------- | ------------- |
| macOS   | amd64, arm64  |
| Linux   | amd64, arm64  |
| Windows | amd64, arm64  |

## Resources

- **[GitHub Repository](https://github.com/RhombusSystems/rhombus-cli)**: Source code, releases, and issue tracker
- **[API Reference](https://developer.rhombus.com/api-reference/overview)**: Full endpoint documentation for all 1,000+ API operations
- **[WebSocket Monitoring](https://developer.rhombus.com/websocket/overview)**: Real-time event streaming protocol details
- **[Rate Limits](https://developer.rhombus.com/rate-limits)**: API rate limiting and retry guidance
