settings — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited settings (Hook) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://em-content.zobj.net/source/apple/391/scroll_1f4dc.png"> <img alt="sheets-cli" src="https://em-content.zobj.net/source/apple/391/scroll_1f4dc.png" width="96"> </picture> </p>
<h1 align="center"> sheets-cli </h1>
<p align="center"> <strong>Composable Google Sheets primitives for humans and agents</strong> </p>
<p align="center"> <a href="#installation">Installation</a> • <a href="#quick-start">Quick Start</a> • <a href="#commands">Commands</a> • <a href="#for-agents">For Agents</a> </p>
<p align="center"> <img src="https://img.shields.io/badge/bun-%23000000.svg?style=flat&logo=bun&logoColor=white" alt="Bun"> <img src="https://img.shields.io/badge/typescript-%23007ACC.svg?style=flat&logo=typescript&logoColor=white" alt="TypeScript"> <img src="https://img.shields.io/badge/Google%20Sheets-34A853?style=flat&logo=google-sheets&logoColor=white" alt="Google Sheets"> <br> <img src="https://img.shields.io/badge/Claude_Code-D97757?style=flat&logo=anthropic&logoColor=white" alt="Claude Code"> <img src="https://img.shields.io/badge/OpenAI_Codex-412991?style=flat&logo=openai&logoColor=white" alt="OpenAI Codex"> </p>
📢 New Project: Check out GNO — local hybrid search for your documents (Markdown, PDF, Word, Excel). Combines BM25 + vector search with MCP integration for AI agents. Great companion to sheets-cli: search your local docs, query your cloud sheets.
Fast, deterministic CLI for Google Sheets. Read tables, append rows, update cells by key or index, batch operations—all with JSON output for programmatic consumption.
# Read a sheet as structured data
sheets-cli read table --sheet "Projects" --limit 10
# Update by key column (no fragile row indices)
sheets-cli update key --sheet "Projects" --key-col "Name" --key "Acme" --set '{"Status":"Done"}'<br>
🆕 Agent Skills — Install as a skill for Claude Code, OpenAI Codex, or VS Code (Insiders preview; enable chat.useAgentSkills). The agent automatically discovers sheets-cli when you mention spreadsheets. See For Agents.<br>
Prerequisites: Bun runtime
git clone https://github.com/gmickel/sheets-cli.git
cd sheets-cli
bun install
bun run build
# Binary at ./dist/sheets-cli<details> <summary><strong>Add to PATH</strong></summary>
# Symlink
ln -s "$(pwd)/dist/sheets-cli" /usr/local/bin/sheets-cli
# Or add to shell config
echo 'export PATH="$PATH:/path/to/sheets-cli/dist"' >> ~/.zshrc</details>
<br>
sheets find command)Desktop apps auto-allow localhost redirects. CLI captures OAuth code via http://localhost:3847.sheets-cli auth login --credentials ./client_secret.jsonBrowser opens → authorize → done.
# Set env var to avoid passing --spreadsheet every time
export SHEETS_CLI_DEFAULT_SPREADSHEET_ID="your-spreadsheet-id"Get the ID from your sheet URL: docs.google.com/spreadsheets/d/<ID>/edit
sheets-cli sheets list --spreadsheet <id>
sheets-cli read table --spreadsheet <id> --sheet "Sheet1" --limit 5
sheets-cli append --spreadsheet <id> --sheet "Sheet1" --values '{"Name":"New Item","Status":"Active"}'<br>
sheets-cli auth login --credentials <file> [--token-store <path>]
sheets-cli auth status
sheets-cli auth logoutsheets-cli sheets list [--spreadsheet <id>]
sheets-cli sheets find --name "<query>" [--limit 10] # Search by name
sheets-cli sheet info --sheet "<name>" [--spreadsheet <id>]
sheets-cli sheet info --gid <gid> [--spreadsheet <id>]
sheets-cli header --sheet "<name>" [--header-row 1]sheets-cli read table --sheet "<name>" [--limit 500] [--range "A1:Z500"] [--raw]
sheets-cli read range --range "<sheet>!A1:Z50"sheets-cli append --sheet "<name>" --values '<json>' [--value-input USER_ENTERED|RAW] [--dry-run]
sheets-cli update row --sheet "<name>" --row 12 --set '<json>' [--dry-run]
sheets-cli update key --sheet "<name>" --key-col "Col" --key "Val" --set '<json>' [--dry-run] [--allow-multi]
sheets-cli set range --range "<sheet>!M2:M2" --values '<json_2d_array>' [--dry-run]
sheets-cli batch --ops '<json>' [--dry-run]<details> <summary><strong>All flags</strong></summary>
| Flag | Description | Default |
|---|---|---|
--spreadsheet <id> | Spreadsheet ID or full URL | env var or required |
--dry-run | Preview without applying | false |
--value-input <mode> | USER_ENTERED or RAW | USER_ENTERED |
--header-row <n> | Header row number | Auto-detect |
--limit <n> | Max rows to return | unlimited |
--raw | Return unformatted values | false |
--allow-multi | Update multiple matching rows | false |
</details>
<br>
{"Name": "Acme Corp", "Status": "Active", "Start Date": "2025-01-15"}Headerless sheets (column letters):
{"A": "Acme Corp", "C": "Active"}[["Value1", "Value2"], ["Value3", "Value4"]][
{"op": "append", "sheet": "Tasks", "values": {"Name": "New Task"}},
{"op": "updateRow", "sheet": "Tasks", "row": 5, "set": {"Status": "Done"}},
{"op": "updateKey", "sheet": "Tasks", "keyCol": "ID", "key": "TASK-123", "set": {"Status": "Active"}},
{"op": "setRange", "range": "Tasks!A1:B1", "values": [["Col1", "Col2"]]}
]<br>
All commands return JSON to stdout:
{
"ok": true,
"cmd": "read table",
"spreadsheetId": "1abc...",
"sheet": "Projects",
"result": {
"headers": ["Name", "Status", "Date"],
"rows": [{"Name": "Alpha", "Status": "Active", "Date": "2025-01-15"}],
"headerRow": 1
}
}Errors:
{
"ok": false,
"cmd": "update key",
"error": {"code": "VALIDATION_ERROR", "message": "...", "details": {}}
}| Code | Meaning |
|---|---|
0 | Success |
10 | Validation error |
20 | Auth error |
30 | Permission error |
40 | API/transient error |
<br>
# Claude Code
sheets-cli install-skill # Project: ./.claude/skills/sheets-cli/SKILL.md
sheets-cli install-skill --global # Personal: ~/.claude/skills/sheets-cli/SKILL.md
# OpenAI Codex
sheets-cli install-skill --codex # ~/.codex/skills/sheets-cli/SKILL.mdInstalls an Agent Skill that teaches the agent how to use sheets-cli. After installing, the agent automatically discovers sheets-cli when you mention spreadsheets, Google Sheets, or sheet names.
Codex: Requiresskills = truein~/.codex/config.tomlunder[features]. VS Code: Agent Skills support is in preview and only available in VS Code Insiders. Enablechat.useAgentSkillsto use Agent Skills.
Restart the agent after installing to load the skill.
Follow read → decide → dry-run → apply:
# 1. Understand current state
sheets-cli read table --sheet "Tasks" --limit 100
# 2. Dry-run
sheets-cli update key --sheet "Tasks" --key-col "ID" --key "TASK-42" --set '{"Status":"Complete"}' --dry-run
# 3. Apply
sheets-cli update key --sheet "Tasks" --key-col "ID" --key "TASK-42" --set '{"Status":"Complete"}'read table returns columns as A, B, ...; use column letters for --set / --key-colappend can bootstrap by writing a header row from JSON keysA1:Z (auto-prefixed with the sheet)<br>
bun run dev # Hot-reload
bun run build # Compile binary
bun run typecheck # Type check
bun run lint # Lint
bun run test # Tests<br>
MIT
<p align="center"> <sub>Built with <a href="https://bun.sh">Bun</a> • Styled for machines and humans alike</sub> </p>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.