glab-variable

Manage GitLab project or group variables with glab variable commands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GitLab projects and groups often need consistent CI/CD variable management. This skill centralizes the creation, update, listing, and deletion of environment variables, secret keys, and configuration values to reduce manual errors and leakage.

Core Features & Use Cases

  • Manage project- or group-level variables using the glab variable commands (set, update, delete, list, get, export).
  • Support environment_scope and scope-level controls to apply variables across pipelines and environments.
  • Export or inspect variables for backup, migration, or auditing across multiple repos.

Quick Start

Use glab variable set to create a new variable for a project or group and verify with glab variable list.

Frequently Asked Questions about glab-variable

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

FAQPage Schema
How do I manage GitLab CI/CD variables for multiple projects?

You can manage GitLab CI/CD variables across multiple projects by using glab variable commands to centrally set, update, list, and delete environment variables or secrets, reducing manual configuration errors.

What is the best way to set environment-scoped secrets in GitLab pipelines?

Setting environment-scoped secrets in GitLab pipelines is best handled by using the glab variable set command with environment_scope controls, ensuring configuration values apply only to targeted pipeline environments.

Can I export and back up GitLab project variables for auditing?

Yes, you can export and inspect GitLab project variables for backup, migration, or auditing purposes using the glab variable export command, allowing you to securely retrieve existing CI/CD configuration values.

Does glab variable support group-level CI/CD configuration and access control?

Yes, glab variable supports group-level CI/CD configuration, allowing you to apply environment variables, configure secrets, and manage access control consistently across multiple repositories within a specific GitLab group.

How do I delete an outdated CI/CD variable from a GitLab repository?

To delete an outdated CI/CD variable from a GitLab repository, use the glab variable delete command, which removes the specified environment variable or secret key and ensures it no longer persists in your pipelines.