360 Secure SkillHub
360 安全技能中心

Baserow CLI

这是开源Airtable替代工具Baserow的命令行客户端,核心功能包括管理表格、字段,以及对行数据进行单条或批量的增删改查。典型场景有查询表结构、批量维护数据、单条数据操作等。支持通过配置文件、环境变量或CLI参数设置连接,输入为命令指令,输出默认JSON格式,错误信息以JSON输出到stderr,便于后续处理。

jzakirov
jzakirov
热度 51.05
最近更新 2026-05-11 17:29:02
分类:自动化依赖:代码执行应用场景:自动化脚本 / 数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add baserow-cli-tool
Metadata
name
baserow-cli
version
0.1.0
description
Baserow: Create, read, update, and delete rows, list tables and fields. Use when the user wants to interact with Baserow — querying data, creating or updating rows, inspecting table structure, or any database workflow.
metadata
{"openclaw":{"emoji":"🗄️","category":"productivity","requires":{"bins":["baserow"],"env":["BASEROW_TOKEN","BASEROW_URL"]},"cliHelp":"baserow --help"}}

Baserow CLI

CLI for Baserow — the open-source Airtable alternative. Output is JSON by default — pipe to jq or consume directly.

Setup

uv tool install baserow-cli   # or: pip install baserow-cli
baserow config init            # interactive setup wizard

Config: ~/.config/baserow-cli/config.toml. All values can be set via env vars (BASEROW_TOKEN, BASEROW_URL, BASEROW_TABLE) or CLI flags.

Command Discovery

Do not guess command names or options. Use --help:

baserow --help
baserow rows --help
baserow rows list --help

Quick Reference

Resource Key commands
baserow tables list, get <table-id>
baserow fields list --table <id>
baserow rows list, get, create, update, delete
baserow rows batch-* batch-create, batch-update, batch-delete
baserow config init, show, set

Common Workflows

Discover table structure:

baserow tables list
baserow tables get 42
baserow fields list --table 42

List and search rows:

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"

Create a row:

baserow rows create --table 42 --json '{"Name": "New item", "Status": "Todo"}'

Update a row:

baserow rows update 1 --table 42 --json '{"Status": "Done"}'

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 -

Important Conventions

  • --table is optional when defaults.table is configured
  • --database is optional when defaults.database is configured
  • Destructive commands (delete, batch-delete) require --yes in non-TTY (agent) contexts
  • --json accepts - to read from stdin
  • Pagination via --page and --size (max 200 per page); default is page 1
  • Errors go to stderr as JSON: {"error": {"type": "...", "message": "...", "status_code": N}}
  • Exit codes: 0 success, 1 error, 2 rate-limited (retry safe)
  • Field values in --json use field names (not IDs)

[!CAUTION] delete and batch-delete commands are destructive — always confirm with the user before executing.