glab-cluster-agent-token-cache-clear(1)

glab-cluster-agent-token-cache-clear1

Clear cached gitlab agent tokens.

Usage

glab cluster agent token-cache clear [flags]

Overview

By default, clears tokens from both keyring and filesystem cache and revokes them on the GitLab server. Use --revoke=false to skip revocation.

Options

--agent=[]
Clear tokens for specific agent IDs only.

--filesystem[=true]
Clear tokens from filesystem cache.

--keyring[=true]
Clear tokens from keyring cache.

-R, --repo=""
Select another repository using the OWNER/REPO format.

--revoke[=true]
Revoke tokens on GitLab server before clearing cache.

Options inherited from parent commands

-h, --help[=false]
Show help for this command.

Examples

# Clear all cached agent tokens
glab cluster agent token-cache clear
# Clear tokens without revoking them on GitLab
glab cluster agent token-cache clear --revoke=false
# Clear tokens for a specific agent
glab cluster agent token-cache clear --agent 123

From glab 1.126.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.