glab opentofu
Overview
Work with the OpenTofu or Terraform integration.
USAGE
glab opentofu <command> [command] [--flags]
COMMANDS
init <state> [--flags] Initialize OpenTofu or Terraform.
state <command> [command] [--flags] Work with the OpenTofu or Terraform states.
FLAGS
-h --help Show help for this command.
-R --repo Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.
Quick start
glab opentofu --help
v1.89.0 Updates
v1.89.0+:
glab opentofu state listsupports--output json/-F jsonfor structured output, ideal for agent automation.
# List OpenTofu state with JSON output (v1.89.0+)
glab opentofu state list --output json
glab opentofu state list -F json
Subcommands
See references/commands.md for full --help output.