About glab-gpg-key
glab-gpg-key documents glab commands for managing GPG keys registered to a GitLab account, including adding, retrieving, listing, and deleting keys. Listing and retrieval support JSON output for agent automation.
Key features
- 01Add GPG keys to GitLab
- 02Retrieve a GPG key
- 03List registered keys
- 04Delete a GPG key
- 05Output listings and details as JSON
Use cases
- 01Register a GPG key with a GitLab account
- 02Inspect or remove a registered key
- 03Provide key data to agent automation
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ vince-winkintel/ gitlab-cli-skills --skill glab-gpg-keyAfter installing, type/glab-gpg-keyin Claude Code to confirm it loaded.
Bundled filesreferences/commands.md
Details
From the project READMEglab 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
Structured output
glab gpg-key list and glab gpg-key get support --output json / -F json for structured output, which is useful for agent automation.
# List GPG keys with JSON output
glab gpg-key list --output json
glab gpg-key list -F json
# Get a specific GPG key with JSON output
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.
Comments
Markdown supported