返回顶部
b

baserowBaserow数据操作

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
259
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

baserow

Baserow CLI

用于 Baserow 的命令行工具——开源 Airtable 替代方案。默认输出 JSON 格式——可通过管道传递给 jq 或直接使用。

安装

bash
uv tool install baserow-cli # 或:pip install baserow-cli
baserow config init # 交互式设置向导

配置文件:~/.config/baserow-cli/config.toml。所有值均可通过环境变量(BASEROWTOKEN、BASEROWURL、BASEROW_TABLE)或 CLI 标志设置。

命令发现

不要猜测命令名称或选项。请使用 --help:

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

快速参考

资源关键命令
baserow tableslist、get <table-id>
baserow fields
list --table | | baserow rows | list、get、create、update、delete | | baserow rows batch-* | batch-create、batch-update、batch-delete | | baserow config | init、show、set |

常见工作流程

发现表结构:
bash
baserow tables list
baserow tables get 42
baserow fields list --table 42

列出和搜索行:
bash
baserow rows list --table 42
baserow rows list --table 42 --search quarterly --size 50
baserow rows list --table 42 --filter Statusequal=Done --order-by -Created

创建行:
bash
baserow rows create --table 42 --json {Name: New item, Status: Todo}

更新行:
bash
baserow rows update 1 --table 42 --json {Status: Done}

批量操作:
bash
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

从标准输入传递 JSON:
bash
cat data.json | baserow rows batch-create --table 42 --json -

重要约定

  • - 当配置了 defaults.table 时,--table 为可选
  • 当配置了 defaults.database 时,--database 为可选
  • 破坏性命令(delete、batch-delete)在非 TTY(代理)环境中需要 --yes
  • --json 接受 - 从标准输入读取
  • 通过 --page 和 --size 进行分页(每页最多 200 条);默认为第 1 页
  • 错误信息以 JSON 格式输出到 stderr:{error: {type: ..., message: ..., status_code: N}}
  • 退出码:0 成功,1 错误,2 速率受限(可安全重试)
  • --json 中的字段值使用字段名称(而非 ID)

[!CAUTION]
delete 和 batch-delete 命令具有破坏性——执行前务必与用户确认。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 baserow-cli-1776204021 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 baserow-cli-1776204021 技能

通过命令行安装

skillhub install baserow-cli-1776204021

下载

⬇ 下载 baserow v0.1.0(免费)

文件大小: 1.92 KB | 发布时间: 2026-4-15 10:25

v0.1.0 最新 2026-4-15 10:25
Initial release of baserow-cli.

- Supports creating, reading, updating, and deleting rows in Baserow tables.
- Allows listing tables and fields, inspecting table structure, and querying data.
- Includes batch operations for creating, updating, and deleting multiple rows.
- Provides an interactive configuration wizard and supports environment variable setup.
- Outputs responses in JSON, with support for piping and error handling conventions.
- Requires confirmation for destructive commands with `--yes` flag.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部