glab gpg-key
Overview
Manage GPG keys registered with your GitLab account.
USAGE
glab gpg-key <command> [command] [--flags]
COMMANDS
add [key-file] Add a GPG key to your GitLab account.
delete <key-id> Deletes a single GPG key specified by the ID.
get <key-id> Returns a single GPG key specified by the ID.
list [--flags] Get a list of GPG keys for the currently authenticated user.
FLAGS
-h --help Show help for this command.
-R --repo Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.
Quick start
glab gpg-key --help
v1.89.0 Updates
v1.89.0+:
glab gpg-key listandglab gpg-key getsupport--output json/-F jsonfor structured output, ideal for agent automation.
# List GPG keys with JSON output (v1.89.0+)
glab gpg-key list --output json
glab gpg-key list -F json
# Get a specific GPG key with JSON output (v1.89.0+)
glab gpg-key get <key-id> --output json
glab gpg-key get <key-id> -F json
Subcommands
See references/commands.md for full --help output.