Skip to main content

Installation

After installing, the databar command is available in your terminal.

Authentication

Your key is saved to ~/.databar/config with 600 permissions (owner read-only). You can also set the DATABAR_API_KEY environment variable — it takes priority over the config file:

Output formats

Every command supports --format with three options: --format json always prints one object on stdout:
Read the payload from .data. On failure, check .error.code and the exit code: table <uuid> and task <task-id> must be UUIDs (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Malformed identifiers fail client-side with exit 5 / code: validation (not a 404). --out paths are resolved; null bytes are rejected; a note is printed if the path leaves the current directory.

Enrichments


Waterfalls


Tables


Tasks

For long-running operations, tasks can be checked manually or polled until completion:

AI agent usage

The CLI is designed to be invoked by AI agents (Claude Code, Cursor, etc.) with --format json for machine-readable output:
Exit codes: 0 on success; 2 usage, 3 auth, 4 not found, 5 validation, 1 other. With --format json, both success and failure are one JSON object on stdout (ok / data or error). Table and task identifiers must be UUIDs — malformed values fail with validation (exit 5), not a 404.

Environment variables


Source code

databar-ai/databar-python

The CLI is open source. View source, report issues, and contribute on GitHub.