Skip to main content

baserow-cli

A command-line tool for Baserow — the open-source Airtable alternative.

Built for AI agents and automation, but works great for humans too. JSON output to stdout, structured errors to stderr, config via file/env/flags.

Install

uv tool install baserow-cli

Or with pip:

pip install baserow-cli

Quick start

# Set your Baserow database token and instance URL
export BASEROW_TOKEN="your-database-token"
export BASEROW_URL="https://your-baserow-instance.com"

# Or run the interactive setup
baserow config init

Create a database token in Baserow under Settings > Database tokens. Tokens are scoped per-table — you control exactly what the CLI can access.

Usage

# List tables accessible by your token
baserow tables list

# Get table info with field definitions
baserow tables get 42

# List rows (with search, filtering, sorting, pagination)
baserow rows list --table 42
baserow rows list --table 42 --search "quarterly" --size 50
baserow rows list --table 42 --filter "Status__equal=Done" --order-by "-Created"

# Single row operations
baserow rows get 1 --table 42
baserow rows create --table 42 --json '{"Name": "New item", "Status": "Todo"}'
baserow rows update 1 --table 42 --json '{"Status": "Done"}'
baserow rows delete 1 --table 42 --yes

# Batch operations
baserow rows batch-create --table 42 --json '[{"Name": "A"}, {"Name": "B"}]'
baserow rows batch-update --table 42 --json '[{"id": 1, "Status": "Done"}, {"id": 2, "Status": "Done"}]'
baserow rows batch-delete --table 42 --json '[3, 4, 5]' --yes

# Pipe JSON from stdin
cat data.json | baserow rows batch-create --table 42 --json -

Configuration

Config is loaded with priority: config file < env vars < CLI flags.

Source Token URL Default table
Config file core.token core.base_url defaults.table
Env var BASEROW_TOKEN BASEROW_URL BASEROW_TABLE
CLI flag --token --base-url --table

Config file location: ~/.config/baserow-cli/config.toml

# Manage config
baserow config init          # interactive setup
baserow config show          # print current config (token masked)
baserow config show --reveal # show full token
baserow config set defaults.table 42

Output

All commands output JSON to stdout. Errors go to stderr as structured JSON:

{"error": {"type": "not_found", "message": "...", "status_code": 404}}

Exit codes: 0 success, 1 error, 2 rate limited.

API reference

This CLI wraps the Baserow REST API. Your instance also serves interactive API docs at https://your-instance/api/redoc/.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baserow_cli-0.1.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baserow_cli-0.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file baserow_cli-0.1.1.tar.gz.

File metadata

  • Download URL: baserow_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for baserow_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a9001d7ff0fbd0b7f2ae030dc51146bcfb57e73eedfc2392ec41a419e203f282
MD5 90529967c7145b5011414a2d5b7a6c35
BLAKE2b-256 ff25671aa14de430baf77fffce33068d3d2d8bb13377ad7294a50f4ff49bb20d

See more details on using hashes here.

File details

Details for the file baserow_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: baserow_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for baserow_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca0e31d03661519310fc9cc5a254d129a08ace0e3b8cbeee209c55f1688f881e
MD5 2a4897dd4b19aed729505bb393027d94
BLAKE2b-256 e613ff6296b8b1f993675c32c77f306610d5eb69f7c215acc6d8ede98bca82f6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page