---
title: CLI reference
description: "The cui binary — operate Cuitty installs from the terminal."
section: Reference
order: 3
updatedAt: 2026-04-27
slug: reference/cli
---
# CLI reference

`cui` is the official command-line companion. It wraps the REST API for everyday operator tasks.

## Install

```bash
curl -fsSL https://releases.cuitty.com/cli/install.sh | sh
```

## Auth

```bash
cui login --portal https://app.cuitty.com
cui logout
cui whoami
```

## Projects

```bash
cui project list
cui project create <name>
cui project use <id>
cui project keys create
```

## Modules

```bash
cui audit list --project <id> --since 24h
cui logs tail --project <id> --service api
cui deploys list --env production
cui costs report --period 2026-04
```

## Send a one-off event

```bash
cui send audit \
  --actor alice@example.com \
  --action secret.rotate \
  --resource stripe.live_key
```

## Self-hosted operator commands

```bash
cui admin migrate           # Run pending migrations
cui admin backup            # Snapshot Postgres + libSQL
cui admin verify-chain      # Verify the audit-chain integrity
```