copera-cli
Official CLI for the Copera Public API
copera is the official command-line interface for Copera. Manage boards, tables, rows, docs, drive files, and messaging from your terminal — or integrate it into LLM agent pipelines.
Installation
- macOS / Linux
- Windows
- From Source
Update
Quick Start
Authentication
The CLI resolves your API token in this order (highest priority first):| Source | Example |
|---|---|
| Environment variable | COPERA_CLI_AUTH_TOKEN=cp_pat_xxx |
--token flag | copera boards list --token cp_pat_xxx |
.copera.local.toml (current dir, git-ignored) | Project-local token |
.copera.toml (current dir) | Committed project config |
~/.copera.toml | Home directory fallback |
- Personal Access Token (
cp_pat_...) — required for docs and drive commands, works for everything - Integration API Key (
cp_key_...) — for boards and channels only
Configuration
Profiles group a token and default resource IDs together. Create~/.copera.toml:
--profile or COPERA_PROFILE:
Machine-Readable Output
The CLI is designed to work with LLM agents and scripts:- Auto-JSON when piped: When stdout is not a TTY, output defaults to JSON.
--jsonflag: Forces JSON output regardless of TTY.--outputflag:auto | json | table | plain--quiet/-q: Suppress informational messages; only emit result data.- Stdin support: Pipe content directly for
rows createanddocs update. - No interactive prompts when
--no-inputis set orCI=true.
Exit Codes
| Code | Meaning |
|---|---|
0 | OK |
1 | Error |
2 | Usage error |
3 | Not found |
4 | Auth error |
5 | Conflict |
6 | Rate limited |
Environment Variables
| Variable | Description |
|---|---|
COPERA_CLI_AUTH_TOKEN | API token (overrides all config) |
COPERA_PROFILE | Active config profile name (default: "default") |
COPERA_NO_UPDATE_CHECK | Set to 1 to disable background version checks |
COPERA_SANDBOX | Set to 1 to use the dev API (api-dev.copera.ai) |
CI | When true, disables interactive prompts and update checks |
NO_COLOR | Disable ANSI color output |
Shell Completion
Need Help?
GitHub Repository
Source code, releases, and changelog
Report an Issue
Report bugs or request features