Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

glab-deploy-token

FreeNo executable scriptsNot checked

Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including instance-wide audits, metadata, active inventory, expiry, scopes…

vince-winkintelby vince-winkintel★ 51 GitHub stars

About this skill

glab deploy-token

Historical captured help and immutable provenance: command reference. Older command captures retain their original provenance and describe earlier interfaces.

Manage deploy-token metadata and explicitly approved creation or deletion for a project or group. Deploy tokens authenticate with a username/token pair and are separate from personal, project, and group access tokens.

Group selectors and token status

Verified against glab v1.134.0 source; this clarification does not raise the commands' earlier compatibility minima. This is a source-backed summary, not a new binary help capture. Historical help retains its original version and normalization.

get --group and list --group accept a numeric group ID or full group path. GITLAB_GROUP supplies the default group only when an explicit --group or --repo does not take precedence; list --instance ignores it. This is documentation clarification, not a new scope or hostname flag. UI-revoked tokens remain visible as revoked, whereas REST-deleted tokens disappear. --active excludes both revoked and expired entries; use the full inventory when verifying an approved deletion. Existing token values cannot be recovered by these metadata reads.

Source: get.go, list.go, envvars.go.

Instance inventory

list --instance (-i) inventories every deploy token on the resolved GitLab instance and requires administrator access. It is mutually exclusive with --repo and --group, and ignores GITLAB_GROUP. Confirm the effective host independently: a checkout can still supply the API host, and --instance is not a hostname selector. Pagination, --active, and metadata-only JSON apply; this does not reveal existing token values or enable instance-scoped create/get/delete. Approve the broader audit scope before reading an instance-wide inventory.

Inspect metadata

list (alias ls) collects all API pages; --active filters out both revoked and expired tokens. get <token-id> selects one numeric ID from the inventory. Both commands clear the token value before JSON serialization; text output contains metadata only. Neither recovers a secret. --output json and --jq support structured metadata selection.

# Credential-free discovery
glab deploy-token --help
glab deploy-token create --help
glab deploy-token get --help
glab deploy-token delete --help

For project/group operations, always select a nonempty explicit --repo <project-path-or-URL> or --group <group-id-or-path> for reads, creation, and deletion; these flags are mutually exclusive. Without either flag, GITLAB_GROUP selects group scope even inside a project checkout. An explicit --repo suppresses that environment fallback; an explicit --group selects that group instead. A checkout alone does not guarantee project scope.

Confirm the exact host, project/group, and actor before approving any operation. A full project URL pins the repository host. For group scope, a resolvable checkout can still determine the API host; outside a checkout, default/environment host selection applies. Review any configured API-host routing too. --group selects a group, not a host; do not assume it changes the host or that a default host overrides a checkout.

After approval for authenticated metadata reads on the selected host and targets:

# Project inventory and one numeric ID from that inventory
glab deploy-token list --repo https://gitlab.example.com/group/project --active --output json
glab deploy-token get 42 --repo https://gitlab.example.com/group/project --output json

# Group reads: first verify the resolved host as described above
glab deploy-token list --group group/subgroup --active --output json
glab deploy-token get 42 --group group/subgroup --output json

Create with a protected secret handoff

create <name> requires at least one --scope (-S), repeated or comma-separated. The server validates granted scopes. --username defaults to gitlab+deploy-token-<id>; --expires-at (-E) accepts YYYY-MM-DD at midnight UTC or an RFC 3339 timestamp. Omitting expiry creates a non-expiring token. Prefer the minimum approved scopes and a bounded expiry. The special name gitlab-deploy-token can expose the pair to CI/CD as CI_DEPLOY_USER and CI_DEPLOY_PASSWORD; approve that distribution scope too.

Creation has no confirmation prompt and prints the one-time secret in both text and JSON output. Before creation, obtain explicit approval for the host, project/group, actor, name, scopes, expiry, username, and secret destina

Full SKILL.md on GitHub

Install glab-deploy-token in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/commands.mdreferences/help-206ebab4f.md

FAQ

What does the glab-deploy-token skill do?

Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including instance-wide audits, metadata, active inventory, expiry, scopes, and one-time secret handling. Use glab-token for personal, project, or group access-token rotation.

How do I install the glab-deploy-token skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the glab-deploy-token skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare glab-deploy-token with