Database v0.1.0

baserow-cli

Baserow: Create, read, update, and delete rows, list tables and fields. Use when the user wants to interact with Baserow...

jzakirov 更新于 2026-03-06 1 浏览
下载 SKILL

技能说明

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.

使用场景

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/baserow-cli
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 19 kB
SKILL.md text/markdown
---
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](https://baserow.io) — the open-source Airtable alternative. Output is JSON by default — pipe to `jq` or consume directly.

## Setup

```bash
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`:

```bash
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:**
```bash
baserow tables list
baserow tables get 42
baserow fields list --table 42
```

**List and search rows:**
```bash
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:**
```bash
baserow rows create --table 42 --json '{"Name": "New item", "Status": "Todo"}'
```

**Update a row:**
```bash
baserow rows update 1 --table 42 --json '{"Status": "Done"}'
```

**Batch operations:**
```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
```

**Pipe JSON from stdin:**
```bash
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.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。