Glab Opentofu

Work with OpenTofu state management in GitLab. Use when managing Terraform/OpenTofu state, configuring state backends, or working with infrastructure as code. Triggers on OpenTofu, Terraform, state management, infrastructure as code, IaC.

vince-winkintel 6f5116c 2 files · 4.4 KB Updated

File contents

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

Structured output

glab opentofu state list supports --output json / -F json for structured output, which is useful for agent automation.

# List OpenTofu state with JSON output
glab opentofu state list --output json
glab opentofu state list -F json

Subcommands

See references/commands.md for full --help output.

vince-winkintel/gitlab-cli-skills/tree/main/glab-opentofu commit 6f5116cc8a

Frequently asked questions

npx skillmds add vince-winkintel/glab-opentofu