- Install dependencies:
npm install
- Run the CLI locally:
npm run build npm run aoform -- --help
bin/aoform.tsonly boots the CLI runtime.src/cli/owns command definitions and parsing.src/commands/adapts CLI options to core operations.src/core/deploy/contains deploy workflow modules (config/state IO, spawn, source deploy).src/core/lua/contains Lua package build logic.src/templates/contains template files copied by commands.
- Keep command files thin; business logic belongs in
src/core/. - Keep modules focused (single responsibility over monolithic files).
- Prefer pure helper functions for deterministic logic and easier testing.