glab-variable

Manage GitLab CI/CD variables for projects and groups via glab.

43|5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-variable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-variable
Source: https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-variable
Command: npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-variable

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the management of GitLab CI/CD variables, allowing for efficient handling of environment variables, secrets, and configuration settings for your pipelines.

Core Features & Use Cases

  • CRUD Operations: Create, read, update, and delete CI/CD variables at project and group levels.
  • Scope Management: Apply variables to specific environments or globally.
  • Export/Import: Easily export variables for backup or migration, and import them into new projects or groups.
  • Use Case: Securely store your API keys or database credentials as CI/CD variables, ensuring they are not hardcoded in your repository.

Quick Start

Use the glab variable skill to set a new CI/CD variable named MY_API_KEY with the value 'your_secret_key_here' for the current project.

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 a project?

You can manage GitLab CI/CD variables by creating, reading, updating, and deleting environment variables at the project or group level to configure automated pipelines and deployment processes.

What is the best way to store secrets in GitLab pipelines?

Storing secrets as GitLab CI/CD variables allows you to securely save API keys and database credentials, ensuring they are not hardcoded in your repository while remaining available to pipelines.

Do I need the GitLab CLI to update environment variables?

Yes, you need the GitLab CLI (glab) installed because this Skill interacts directly with the GitLab API through glab to perform variable operations and manage configurations.

Can I apply CI/CD variables to specific environments in GitLab?

Yes, GitLab CI/CD variables support scope management, allowing you to apply variables to specific deployment environments or configure them globally across your automated pipelines.

How do I export and import GitLab CI/CD variables?

You can export GitLab CI/CD variables to back them up or migrate them, and subsequently import them into new projects or groups to streamline configuration management across repositories.