gws-sheets-append
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesesheets +append
sheets +append
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
Append a row to a spreadsheet
前置要求: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md命令生成。gws generate-skills
向电子表格中追加一行数据
Usage
Usage
bash
gws sheets +append --spreadsheet <ID>bash
gws sheets +append --spreadsheet <ID>Flags
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
| ✓ | — | Spreadsheet ID |
| — | — | Comma-separated values (simple strings) |
| — | — | JSON array of rows, e.g. '[["a","b"],["c","d"]]' |
| 标志 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| ✓ | — | 电子表格ID |
| — | — | 逗号分隔的值(纯字符串) |
| — | — | 行的JSON数组,例如'[["a","b"],["c","d"]]' |
Examples
Examples
bash
gws sheets +append --spreadsheet ID --values 'Alice,100,true'
gws sheets +append --spreadsheet ID --json-values '[["a","b"],["c","d"]]'bash
gws sheets +append --spreadsheet ID --values 'Alice,100,true'
gws sheets +append --spreadsheet ID --json-values '[["a","b"],["c","d"]]'Tips
Tips
- Use --values for simple single-row appends.
- Use --json-values for bulk multi-row inserts.
[!CAUTION] This is a write command — confirm with the user before executing.
- 使用--values进行简单的单行追加。
- 使用--json-values进行批量多行插入。
[!CAUTION] 这是一个写入命令 — 执行前请与用户确认。
See Also
See Also
- gws-shared — Global flags and auth
- gws-sheets — All read and write spreadsheets commands
- gws-shared — 全局标志与认证
- gws-sheets — 所有电子表格读写命令