glab-ssh-key-get(1)

glab-ssh-key-get1

Returns a single ssh key specified by the id.

Usage

glab ssh-key get [] [flags]

Overview

Pass the key ID as an argument, or run the command without arguments to select a key interactively. Find key IDs by running glab ssh-key list --show-id.

By default, the command prints the public key. Use --output json to return the full key object.

Options

--jq=""
Filter JSON output with a jq expression.

-F, --output="text"
Format output as: text, json.

-p, --page=1
Page number.

-P, --per-page=20
Number of items to list per page.

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

# Get ssh key with ID as argument
glab ssh-key get 7750633
# Interactive
glab ssh-key get
# Interactive, with pagination
glab ssh-key get -P 50 -p 2

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

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