Generate Infrastructure as Code (IaC)
The stackgen generate command generates Infrastructure as Code files for a project. If the output directory you pass does not exist, StackGen tries to create it. If you omit the directory, output goes to the current working directory.
Usage
stackgen generate [flags]
Flags
stackgen generate uses the global flags in Global CLI flags (--interactive, --log, --output, --project, --stackgen-home) plus -h / --help. There are no separate command-only flags beyond those today.
note
After upgrading the CLI, new flags may appear on generate.
Examples
Run generate with debug logging
stackgen generate --log 2
The above command runs stackgen generate with log level DEBUG (numeric 2).
Run generate with JSON output
stackgen generate --output json
The above command prints command output as JSON. Allowed --output values are json and human.