ColdPlane Docs
CLI Reference

Commands

All available ColdPlane CLI commands.

auth set-key

Set your API key for authentication.

coldplane auth set-key --key <api-key>
OptionRequiredDescription
--key, -kYesAPI key (recommended format: <id>:<secret>)

Your credentials are saved to ~/.coldplane/config.json.

auth whoami

Show the currently authenticated user.

coldplane auth whoami

backup create

Archive one or more tables from your database.

coldplane backup create [options]
OptionRequiredDescription
--db-url, -dYesDatabase connection string (postgres:// or mysql://)
--tablesYesComma-separated list of table names to archive
--nameNoHuman-friendly name for the backup (auto-generated if omitted)
--chunk-sizeNoRows per chunk (default: 2500000)
--workersNoNumber of parallel workers (default: 4)
--format, -fNoExport format (default: parquet)

Example:

coldplane backup create \
  --db-url "postgres://user:pass@host:5432/mydb" \
  --tables "events,logs"

backup list

List existing backups. Aliases: backup ls

coldplane backup list [options]
OptionRequiredDescription
--limit, -nNoMax number of backups to display (default: 10)
--allNoShow all backups (overrides --limit)
--statusNoFilter by status: running, completed, failed
--dbNoFilter by database name
--tableNoFilter by table name
--nameNoFilter by backup name

backup describe

Show detailed information about a backup. Aliases: backup get

coldplane backup describe <backup-id> [--json]
OptionRequiredDescription
--jsonNoOutput raw JSON instead of formatted table

backup delete

Delete a backup. Aliases: backup rm

coldplane backup delete <backup-id>

backup restore

Restore archived data into a target database.

coldplane backup restore [options]
OptionRequiredDescription
--backup-idYesBackup ID to restore from
--tableYesTarget table name in the destination database
--toYesTarget database connection string (postgres:// or mysql://)

Example:

coldplane backup restore \
  --backup-id bck_abc123 \
  --table events_restored \
  --to "postgres://user:pass@host:5432/mydb"

query run

Execute a SQL query against an archived backup.

coldplane query run [options]
OptionRequiredDescription
--backup-id, -bYesBackup ID to query
--table, -tNoTable name
--sql, -sYesSQL query (SELECT * is not allowed; specify explicit columns)
--output, -oNoOutput format: table, json, or csv (default: table)
--exportNoExport full results to a downloadable file
--formatNoExport file format: csv or parquet (default: csv)

Example:

coldplane query run \
  --backup-id bck_abc123 \
  --table events \
  --sql "SELECT user_id, COUNT(*) FROM events GROUP BY user_id" \
  --output table

convert

Convert a backup into a different database engine (e.g. MySQL to PostgreSQL).

The convert command requires a Pro plan or higher.

coldplane convert [options]
OptionRequiredDescription
--backup-idYesBackup ID to convert
--toYesTarget database connection string

Example:

coldplane convert \
  --backup-id bck_abc123 \
  --to "postgres://user:pass@host:5432/newdb"

version

Print the CLI version and build information.

coldplane version

completion

Generate shell completion scripts.

coldplane completion [bash|zsh|fish|powershell]