Skip to content

Commands

xlflow exposes a Cobra-based CLI. Every command accepts the global --json flag for machine-readable output.

bash
xlflow [command] --json

Use command pages for workflow guidance and the canonical CLI contract in JSON Output.

CommandPurpose
newCreate a new xlflow project and macro-enabled workbook.
initInitialize an xlflow project from an existing workbook.
doctorDiagnose Excel, COM, PowerShell, VBIDE access, and source GUI boundaries.
attachValidate that the active Excel workbook matches the configured workbook.
backupList rollback-capable workbook backups for the configured workbook.
listList workbook resources. The public subcommand is list forms.
formManage UserForms through snapshot, build, and image export workflows.
pullExport workbook VBA components into configured source directories.
pushImport edited source files back into the configured workbook.
rollbackRestore the configured workbook from an xlflow-managed backup.
sessionKeep Excel and the configured workbook open across repeated commands.
saveSave the workbook held by the managed xlflow session.
runnerManage the persistent xlflow runner marker module.
traceManage VBA trace logging support and trace log cleanup.
runRun a workbook macro from the CLI.
export-imageExport a worksheet range as a PNG image through Excel COM.
editMutate a live session workbook for setup and visual tuning.
macrosDiscover runnable public workbook macro entrypoints without executing user code.
uiManage xlflow-owned worksheet buttons.
testDiscover and run workbook VBA test procedures.
diffCompare workbook files and optionally exported VBA source trees.
inspectInspect saved workbook state or UserForm state.
inspect-guiScan source for automation-hostile GUI boundaries without opening Excel.
lintLint VBA source files for agent-hostile and compile-dialog-prone patterns.
analyzeAnalyze VBA source for runtime-risk patterns without Excel COM.
checkRun lint, analyze, and doctor as a combined preflight.
completionGenerate shell completion scripts through Cobra.
skillInstall the bundled xlflow skill for AI agent tools.
versionShow xlflow build metadata.

Released under the MIT License.