glab-opentofu

Manage OpenTofu and Terraform state and configurations from the GitLab CLI.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill glab-opentofu-haomingz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-opentofu
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/gitlab-cli-guide/glab-opentofu
Command: npx skills add https://github.com/haomingz/kimi-skills --skill glab-opentofu-haomingz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GitLab-based teams need a streamlined way to manage OpenTofu and Terraform state and configurations from the CLI, enabling consistent IaC workflows without switching tools.

Core Features & Use Cases

  • Initialize, manage, and configure backends for OpenTofu/Terraform state within GitLab-driven projects.
  • Support multi-state and multi-repo scenarios, enabling consistent state management across environments in an IaC workflow.
  • Use cases include setting up new environments, switching backends, and querying state information directly from GitLab-integrated workflows.

Quick Start

Run glab opentofu init production to initialize a new OpenTofu state.

Frequently Asked Questions about glab-opentofu

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

FAQPage Schema
How do I manage Terraform state directly from the GitLab CLI?

The glab opentofu skill enables GitLab CLI users to manage Terraform state by providing commands for backend configuration, initialization, and state queries across multiple repositories and environments.

Can I use glab to initialize OpenTofu backends for multi-environment projects?

Yes, glab opentofu supports initializing OpenTofu backends for multi-state scenarios, enabling consistent infrastructure-as-code state management across different environments within GitLab-integrated workflows.

Does the glab opentofu skill support both Terraform and OpenTofu configurations?

Yes, the glab opentofu skill supports both Terraform and OpenTofu configurations, allowing teams to handle state operations and backend setups uniformly without switching between different CLI tools.

What is the best way to switch infrastructure-as-code backends in GitLab?

Switching infrastructure-as-code backends in GitLab is handled through glab opentofu init commands, which configure state backends for OpenTofu and Terraform projects directly from the CLI.

Do I need the GitLab CLI to manage OpenTofu state with this workflow?

Yes, the GitLab CLI is required, as the skill exposes glab opentofu commands and flags to perform initialization and state management operations natively within GitLab-integrated DevOps scenarios.