xlsx · json · csv
JSON or CSV to Excel from the command line
JSON to Excel and CSV to XLSX are first-class in docgen-cli. No pandas, no openpyxl, no “please upload your spreadsheet.” Pipe an API body or pass a file; column widths are calculated for you.
docgen convert sales.json -o sales.xlsx
docgen convert metrics.csv -o metrics.xlsx
Pipes and CI
A CLI spreadsheet tool should take stdin:
curl -s https://api.example.com/data | docgen convert - -o data.xlsx
ps aux | head -n 30 | docgen convert - -o processes.xlsx
Useful in scripts when the alternative is standing up a Python stack for a table dump. TSV works the same way as CSV.
Install
curl -fsSL https://raw.githubusercontent.com/0xkaizoku/docgen-cli/main/install.sh | sh
Need a written report instead of a sheet? Markdown to PDF or Markdown to Word from the same binary. Agents: docgen init-ai.
Why not pandas
pandas + openpyxl is the right answer for analysis. It is the wrong answer for “turn this JSON array into a file the PM can open.” Online converters add an upload and a privacy story you do not want in CI. docgen is a local compiler: one process, milliseconds, file on disk.