mcpField
G
glab-opentofu

glab-opentofu

github.com/vince-winkintelCloud & DevOps49101 installsUpdated 1d ago
Repository

About glab-opentofu

glab-opentofu documents the glab commands for working with OpenTofu or Terraform integrations and state. It is intended for command-line users and agent automation, with JSON output available for listing state.

Key features

  1. 01Initialize OpenTofu or Terraform
  2. 02Work with infrastructure state
  3. 03List state as JSON

Use cases

  1. 01Initialize an OpenTofu or Terraform setup
  2. 02Retrieve state listings for agent automation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-opentofu

After installing, type/glab-opentofuin Claude Code to confirm it loaded.

Bundled filesreferences/commands.md

Details

From the project README

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.

Comments

Markdown supported