Skip to content

xlflow form

Manage UserForms through Designer snapshots, rebuilds, and image export.

Usage

bash
xlflow form snapshot <name> --out <path>
xlflow form build <spec> [--overwrite]
xlflow form export-image <name> --out <png>

Options and Arguments

Option / argumentDescriptionDefault
snapshot <name>Save Designer state as JSON or YAML.-
build <spec>Create or update a UserForm from a saved spec.-
export-image <name>Render a runtime UserForm to PNG.-
--out <path>Output path for snapshots or images.-
--overwriteAllow replacing an existing UserForm on build.false
--sessionOperate against the managed live session workbook.false
--no-saveLeave session-backed build changes unsaved until xlflow save.false
--initializer <mode>Control initializer execution for image export.default
--keepaliveWrite periodic progress heartbeat lines to stderr for long Excel-backed work.false

Examples

bash
xlflow form snapshot CalendarForm --out src/forms/specs/CalendarForm.yaml --json
xlflow form build src/forms/specs/CalendarForm.yaml --overwrite --json
xlflow form export-image CalendarForm --out artifacts/CalendarForm.png --json

Notes

IMPORTANT

The canonical Designer source is src/forms/specs/*.yaml or *.json; sidecar code lives separately under src/forms/code/.

WARNING

form export-image depends on desktop Excel GUI behavior and may execute UserForm_Initialize depending on initializer settings.

JSON Output Example

Successful --json output uses the xlflow envelope plus command-specific fields.

json
{
  "status": "ok",
  "command": "form build",
  "form": "CalendarForm",
  "designer": "src/forms/specs/CalendarForm.yaml",
  "overwritten": true
}

Released under the MIT License.