glab-opentofu

Manage OpenTofu and Terraform state for GitLab projects via CLI.

1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/a-ng-d/claude-ui-color-palette --skill glab-opentofu-a-ng-d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-opentofu
Source: https://github.com/a-ng-d/claude-ui-color-palette/tree/main/skills/gitlab-cli-skills/glab-opentofu
Command: npx skills add https://github.com/a-ng-d/claude-ui-color-palette --skill glab-opentofu-a-ng-d

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill simplifies managing OpenTofu and Terraform state within GitLab by providing a unified CLI workflow to initialize, view, and modify state, ensuring consistency and auditability.

Core Features & Use Cases

  • Initialize OpenTofu or Terraform state for GitLab repositories.
  • List, download, lock, and unlock states to maintain integrity and history.
  • Use cases include configuring backends, recovering from drift, and auditing state across CI/CD.

Quick Start

Initialize a state with glab opentofu init <state> to create and configure the backend for your project.

Frequently Asked Questions about glab-opentofu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage OpenTofu state in GitLab using glab?

You can manage OpenTofu state in GitLab using the glab opentofu CLI to initialize backends, list, download, lock, and unlock state files across multiple repositories.

What is the best way to initialize a Terraform backend for a GitLab project?

The best way to initialize a Terraform backend is using the glab opentofu init command, which creates and configures the backend for your GitLab project.

Can I use glab to lock and unlock OpenTofu state across multiple environments?

Yes, glab opentofu provides commands to lock and unlock OpenTofu state, maintaining state integrity and history across multiple repositories and environments.

How does glab enforce safe state operations for OpenTofu in CI/CD?

Glab enforces safe, auditable state operations by providing a unified CLI workflow to view, modify, and manage OpenTofu state, ensuring consistency during CI/CD pipelines.

Does the glab opentofu CLI support automated Terraform state recovery?

Yes, you can use the glab opentofu CLI for recovering from configuration drift by downloading, listing, and reconfiguring Terraform state across your repositories.