CLI Guide (Open Source)
The free, open-source engine of IaCConsole.
The `iacconsole-cli` is a powerful wrapper around OpenTofu/Terraform. It handles the complexity of injecting variables from the inventory and managing state backends seamlessly. It is completely open-source and free to use.
Open Source
Installation
go install github.com/alt-dima/iacconsole-cli@latest
Core Commands
iacconsole-cli init: Initializes the Unit and downloads providers.iacconsole-cli plan -d env:prod: Generates an execution plan using the "prod" Dimension.iacconsole-cli apply -d env:prod: Applies the changes to the infrastructure.
Local Mode
You don't need the managed service to use the CLI. You can use local JSON files as your inventory by setting the `IACCONSOLE_INVENTORY` environment variable or using the `-i` flag.
iacconsole-cli plan -d env:local -i ./inventory.json