Reference

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

Clear cached GitLab Agent tokens.

NAME

glab-cluster-agent-token-cache-clear - Clear cached GitLab Agent tokens.

SYNOPSIS

glab cluster agent token-cache clear [flags]

DESCRIPTION

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.

EXAMPLE

# 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

SEE ALSO

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