{
  "slug": "reference/cli",
  "title": "CLI reference",
  "description": "The cui binary — operate Cuitty installs from the terminal.",
  "url": "https://cuitty.com/docs/reference/cli",
  "markdown_url": "https://cuitty.com/docs/reference/cli.md",
  "json_url": "https://cuitty.com/docs/reference/cli.json",
  "frontmatter": {
    "title": "CLI reference",
    "description": "The cui binary — operate Cuitty installs from the terminal.",
    "order": 3,
    "section": "Reference",
    "updatedAt": "2026-04-27"
  },
  "headings": [
    {
      "depth": 1,
      "slug": "cli-reference",
      "text": "CLI reference"
    },
    {
      "depth": 2,
      "slug": "install",
      "text": "Install"
    },
    {
      "depth": 2,
      "slug": "auth",
      "text": "Auth"
    },
    {
      "depth": 2,
      "slug": "projects",
      "text": "Projects"
    },
    {
      "depth": 2,
      "slug": "modules",
      "text": "Modules"
    },
    {
      "depth": 2,
      "slug": "send-a-one-off-event",
      "text": "Send a one-off event"
    },
    {
      "depth": 2,
      "slug": "self-hosted-operator-commands",
      "text": "Self-hosted operator commands"
    }
  ],
  "body_markdown": "# CLI reference\n\n`cui` is the official command-line companion. It wraps the REST API for everyday operator tasks.\n\n## Install\n\n```bash\ncurl -fsSL https://releases.cuitty.com/cli/install.sh | sh\n```\n\n## Auth\n\n```bash\ncui login --portal https://app.cuitty.com\ncui logout\ncui whoami\n```\n\n## Projects\n\n```bash\ncui project list\ncui project create <name>\ncui project use <id>\ncui project keys create\n```\n\n## Modules\n\n```bash\ncui audit list --project <id> --since 24h\ncui logs tail --project <id> --service api\ncui deploys list --env production\ncui costs report --period 2026-04\n```\n\n## Send a one-off event\n\n```bash\ncui send audit \\\n  --actor alice@example.com \\\n  --action secret.rotate \\\n  --resource stripe.live_key\n```\n\n## Self-hosted operator commands\n\n```bash\ncui admin migrate           # Run pending migrations\ncui admin backup            # Snapshot Postgres + libSQL\ncui admin verify-chain      # Verify the audit-chain integrity\n```",
  "links_out": []
}