CLI
Overview
The Sazabi command-line interface for managing projects, querying logs, and automating workflows.
The Sazabi CLI provides full access to Sazabi from your terminal. Use it to manage projects, query logs, interact with threads, and automate workflows in scripts and CI/CD pipelines.
Features
- Interactive authentication via browser-based OAuth
- API key support for scripts and automation
- Multi-profile management for multiple organizations
- Real-time log tailing with filters
- JSON output for scripting and piping
- Shell completions for bash, zsh, and fish
Quick example
# Install the CLI
npm install -g @sazabi/cli
# Authenticate
sazabi auth login
# Tail production logs
sazabi logs tail --severities ERROR,WARN
# Send a message to the AI assistant
sazabi messages send "What errors happened in the last hour?"Documentation
Installation
Install the CLI using npm, Bun, or Homebrew.
Authentication
Log in with OAuth or configure API keys for automation.
Commands
Complete reference for all CLI commands.
Workflows
Common automation patterns and CI/CD integration.
Requirements
- Node.js 18+ or Bun 1.0+
- macOS, Linux, or Windows (via WSL)