Overview
Thegws sheets +append helper command simplifies adding data to Google Sheets by wrapping the spreadsheets.values.append API method with convenient input formats.
Command Syntax
Parameters
The spreadsheet ID (found in the spreadsheet URL)
Comma-separated values for a single row. Cannot be used with
--json-valuesJSON array of rows, e.g.,
[["a","b"],["c","d"]]. Cannot be used with --valuesExamples
Single row with simple values
Append a single row with comma-separated values:["Alice", "100", "true"] to the next available row.
Multiple rows with JSON
Append multiple rows using JSON format:Using shell variables
Bulk insert from file
Output Format
Returns details about the append operation:How It Works
- Range Selection: Automatically targets range
A1withvalueInputOption=USER_ENTERED - Value Parsing:
--values: Splits on commas to create a single row array--json-values: Parses JSON to support single or multiple rows
- API Call: Executes
spreadsheets.values.appendwhich finds the next empty row - Data Interpretation:
USER_ENTEREDmeans Sheets interprets values (formulas, dates, numbers)
Value Input Modes
The command usesvalueInputOption=USER_ENTERED, which means:
- Numbers are parsed as numbers (not strings)
=SUM(A1:A10)is interpreted as a formula3/14/2026is parsed as a datetrue/falseare parsed as booleans
valueInputOption=RAW.
Common Patterns
Log entries
CSV import
Related
- gws-sheets-append skill — AI agent integration
- sheets +read — Read values from spreadsheets
- For advanced control (specific ranges, raw values), use: