Skip to main content

Baserow CLI for AI agents and humans

Project description

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.

License

MIT

Project details


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.0.tar.gz (9.5 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.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: baserow_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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":null}

File hashes

Hashes for baserow_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c1b256a2fca9794e640c782662d6efcb0ccd708db9bbb3aff5fd16f43dd8076
MD5 6a68cac9717bd9cc8eb81410a140b35a
BLAKE2b-256 c2f6927ec743510ceaf3a10ce2551c217f0af7b4186d0c48ece9e5a957b41bc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: baserow_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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":null}

File hashes

Hashes for baserow_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bcc4575a5148896bd34a12e720bcfde862f21470bdedddd02c3f27a1290b0e4
MD5 ee2713199688efc59c5f9bc5accf708a
BLAKE2b-256 cab0830624631a125b0646b7a4d94ffe5a171a2daa4a407c5c5d04483a598e36

See more details on using hashes here.

Supported by

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