Skip to content

vgrid fill

Fill a .sheet template with CSV data. Uses strict numeric parsing: integers and exact 2-decimal amounts only. Rejects currency symbols, commas in numbers, and formula injection. All other values are treated as text.

Terminal window
vgrid fill <template> --csv <file> --target <cell> --out <output> [options]
OptionDescription
--csvCSV file to load (required)
--targetTarget cell, optionally sheet-prefixed e.g. tx!A1 (required)
--outOutput .sheet file path (required)
--headersFirst CSV row is headers
--clearClear all data cells on the target sheet before filling
--delimiterCSV delimiter (default: ,)
--jsonOutput JSON result
Terminal window
# Fill a template with CSV data
vgrid fill model.sheet --csv data.csv --target tx!A1 --headers --out filled.sheet
# Target a cell on the default sheet
vgrid fill model.sheet --csv data.csv --target A1 --out filled.sheet
# Clear existing data before filling
vgrid fill model.sheet --csv data.csv --target tx!A1 --headers --clear --out filled.sheet
# JSON output for scripting
vgrid fill model.sheet --csv data.csv --target tx!A1 --headers --out filled.sheet --json
CodeMeaning
0Success
2Bad arguments (invalid target, missing flags)
3IO error (file not found, write failure)
4Parse error (CSV format violation)