excel-cli
Installation
SKILL.md
excelcli quick start
If excelcli is not on PATH, run this plugin's bin\start-cli.ps1 by its full
path with the same arguments.
The routine: about three calls
- Open and look in one batch. Start the batch with
session.open; later entries in the same batch use that workbook automatically. Read what you need to plan, such assheet.list,table.listandrange.get-used-range. The result ofsession.opengives thesessionId. Before editing, check itsautoSaveOnandwarning: Excel may save edits automatically. - Change and check in one batch with
--session <sessionId> --stop-on-error. Put the writes first, then reads of the cells you changed, so one result shows that the change worked. - Save and close:
session close --session <sessionId> --save, only after step 2's reads look right. Closing without--savediscards only unsaved edits; it cannot undo changes already saved by AutoSave.