Skip to content
Back to skills

Sheets Cli

ASecurity

Read, write, and update Google Sheets data via CLI with primitives for tables, rows, and cells.

  • 7 stars
  • 0 votes
  • 0 copies
  • 11 views
  • Added September 3, 2026
toolsgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add mediar-ai/skillhubz --skill sheets-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sheets Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sheets Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mediar-ai-sheets-cli/badge)](https://www.skillsdirectory.com/skills/mediar-ai-sheets-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Google Sheets CLI

Read, write, and update Google Sheets data via CLI with primitives for tables, rows, and cells.

## Prerequisites

- `sheets-cli` installed and in PATH
- Google Sheets API credentials configured

## Instructions

### Quick Reference

```bash
# Find spreadsheet by name
sheets-cli sheets find --name "Projects"

# List sheets/tabs
sheets-cli sheets list --spreadsheet <id-or-url>

# Read table data
sheets-cli read table --spreadsheet <id> --sheet "Sheet1" --limit 100

# Update by key column (preferred - rows can shift)
sheets-cli update key --spreadsheet <id> --sheet "Projects" \
  --key-col "Name" --key "Acme" --set '{"Status":"Done"}'

# Append row
sheets-cli append --spreadsheet <id> --sheet "Projects" \
  --values '{"Name":"NewCo","Status":"Active"}'
```

### Workflow Pattern

Always follow **read → decide → dry-run → apply**:

```bash
# 1. Understand current state
sheets-cli read table --sheet "Tasks" --limit 100

# 2. Dry-run first
sheets-cli update key --sheet "Tasks" --key-col "ID" --key "TASK-42" \
  --set '{"Status":"Complete"}' --dry-run

# 3. Apply if dry-run looks correct
sheets-cli update key --sheet "Tasks" --key-col "ID" --key "TASK-42" \
  --set '{"Status":"Complete"}'
```

### Commands

| Command | Description |
|---------|-------------|
| `sheets find` | Find spreadsheet by name |
| `sheets list` | List tabs in spreadsheet |
| `read table` | Read table with headers |
| `update key` | Update row by key column |
| `update index` | Update row by index |
| `append` | Add new row |
| `batch` | Multiple operations |

## Guidelines

1. Always read before writing to understand current state
2. Use key-based updates (rows can shift)
3. Dry-run before applying changes
4. Use JSON format for values
5. Specify spreadsheet by ID or URL

## Notes

- Pre-installed and available in PATH
- Supports batch operations for efficiency
- Key-column updates are safer than index-based

Source: gmickel/sheets-cli

Files in this skill

  • manifest.json334 B
  • skill.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.