Getting Started
xlflow turns an Excel VBA workbook, add-in, or binary workbook into a source-controlled project that can be edited, checked, and executed from the command line.
Requirements
- Windows
- Microsoft Excel
- PowerShell
- Trust access to the VBA project object model enabled in Excel
Commands that only inspect source files or saved workbook files, such as lint, analyze, and formulas pull, can run without Excel. Workbook-backed automation commands use Excel COM.
Create a project
Create a new macro-enabled workbook:
xlflow new Book.xlsmOmit the extension to default to .xlsm, or use an explicit .xlam filename for an Excel add-in project or .xlsb for an Excel Binary Workbook VBA project.
Or initialize from an existing workbook or add-in:
xlflow init Book.xlsm
xlflow init ExistingAddin.xlam
xlflow init ExistingModel.xlsbInstall the bundled agent skill during scaffolding when you want an AI coding agent to follow xlflow workflows:
xlflow new Book.xlsm --with-skill --agent codexFirst workflow
xlflow doctor --json
xlflow pull --json
xlflow formulas pull --json
xlflow lint --json
xlflow macros --json
xlflow run Main.Run --headless --jsonUse xlflow session start for repeated edit loops so Excel and the configured workbook stay open between commands.