carta
glab-gpg-key-add(1)

glab-gpg-key-add1

Add a gpg key to your gitlab account.

Usage

glab gpg-key add [key-file] [flags]

Overview

Creates a new GPG key owned by the currently authenticated user.

Options inherited from parent commands

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

-R, --repo=""
Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

Examples

# Read GPG key from stdin and upload.
glab gpg-key add
# Read GPG key from specified key file and upload.
glab gpg-key add ~/.gnupg/pubkey.asc

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