v
Gitlab Cli Skills
@vince-winkintel
npx machina-cli add skill @vince-winkintel/gitlab-cli-skills --openclawFiles (1)
SKILL.md
975 B
glab alias
Overview
Create, list, and delete aliases.
USAGE
glab alias [command] [--flags]
COMMANDS
delete <alias name> [--flags] Delete an alias.
list [--flags] List the available aliases.
set <alias name> '<command>' [--flags] Set an alias for a longer command.
FLAGS
-h --help Show help for this command.
Quick start
glab alias --help
Subcommands
See references/commands.md for full --help output.
Overview
glab alias lets you create, list, and delete GitLab CLI command aliases. It shortens long glab workflows by turning them into reusable shortcuts. Use it to manage custom CLI shortcuts or view your existing aliases.
How This Skill Works
Use glab alias set to create an alias that maps a short name to a longer glab command. Use glab alias list to view existing aliases and glab alias delete to remove them. The -h/--help flag provides command help.
When to Use It
- You frequently run long glab commands and want shorter shortcuts.
- You manage repetitive tasks across multiple projects.
- You want to share a curated set of aliases with teammates.
- You need to remove deprecated or unused aliases.
- You are exploring available aliases to optimize your workflow.
Quick Start
- Step 1: glab alias --help
- Step 2: glab alias set <alias> '<command>'
- Step 3: glab alias list
Best Practices
- Choose descriptive alias names that reflect the command’s purpose.
- Quote multi-part commands when setting an alias to preserve spaces, but test first.
- Document aliases in a shared README or wiki for onboarding.
- Export or log your alias list regularly to back up custom workflows.
- Prune unused aliases monthly to keep the CLI clean.
Example Use Cases
- glab alias set new-mr 'mr create --title WIP_Update_docs --description Auto_MR --target-branch main'
- glab alias list
- glab alias delete old-mr
- glab alias set open-proj 'repo view --web'
- glab alias set login-host 'auth login --hostname gitlab.example.com'
Frequently Asked Questions
Add this skill to your agents