Files
publisher-dashboard/apps/cli
igm 67930d90d5 Simplify apps/cli/ code
- config.ts: Convert arrow functions to function declarations
- api-client.ts: Extract duplicated RPCLink logic into buildClient helper
- format-error.ts: Add centralized ORPCError handling
- complete-login.ts: Remove redundant error handling (now in formatError)
- status.ts: Simplify formatRelativeTime, improve whitespace
- create.ts: Rename validRoles to VALID_ROLES, add as const, early return
- completions.ts: Derive Shell type from SUPPORTED_SHELLS array

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:42:39 +08:00
..
2026-01-12 15:42:39 +08:00
2026-01-10 19:17:48 +08:00

RevIQ CLI

Command-line interface for RevIQ database and user management.

Installation

# Build the CLI
bun run build

# The compiled binary will be at dist/reviq

Usage

# Run directly with bun
bun run cli <command>

# Or use the compiled binary
./dist/reviq <command>

Commands

Authentication

# Login with an API token
reviq auth login --token <your-token>

# Check authentication status
reviq auth status

# Logout
reviq auth logout

To get an API token:

  1. Log in to the web dashboard
  2. Go to Account Settings > API Tokens
  3. Create a new token and copy it

User Management

# Create a new user
reviq user create --email <email>

# Confirm email
reviq user confirm-email --code <code>

Organization Management

# List organizations
reviq org list

# Create an organization
reviq org create --name <name> --slug <slug>

# Add a site to an organization
reviq org add-site --org <slug> --domain <domain>

Admin Commands

# Complete login (admin)
reviq admin complete-login

Other Commands

# Bootstrap the database
reviq bootstrap

# Generate shell completions
reviq completions

Configuration

Credentials are stored at ~/.config/reviq/credentials.json.