glab(1)

🌸 glab(1) β€” the glab manual, bestie edition 🌸

okay so you're reading the glab manual, specifically the page for glab-ssh-key-get, and honestly? iconic of you. let's get into it πŸ’…


✨ NAME ✨

glab-ssh-key-get β€” returns a single SSH key specified by the ID. that's it, that's the whole vibe. one key, by ID, served fresh πŸŽ€


✨ SYNOPSIS ✨

glab ssh-key get [] [flags]

✨ DESCRIPTION ✨

so here's the tea πŸ“: you pass the key ID as an argument, or β€” and this is the fun part β€” you run the command with no arguments at all and it lets you pick a key interactively. main character choose-your-own-adventure energy, literally.

wanna know the IDs in the first place? run glab ssh-key list --show-id and it'll spill them for you. iykyk πŸ‘‘

by default, the command prints the public key. just the public one. but if you want the whole entire key object β€” the full thing, no crumbs β€” use --output json. slay.


✨ OPTIONS ✨

  • --jq="" β€” filter that JSON output with a jq expression. chef's kiss for when you only want one lil field. πŸ”₯
  • -F, --output="text" β€” format the output as: text, json.
  • -p, --page=1 β€” page number. which page of the list we're on, bestie. πŸ“„
  • -P, --per-page=20 β€” number of items to list per page. default is 20, bump it if you're feeling greedy ✨

✨ OPTIONS INHERITED FROM PARENT COMMANDS ✨

  • -h, --help[=false] β€” show help for this command. the classic. the blueprint. 🫢
  • -R, --repo="" β€” select another repository. you can use either OWNER/REPO or GROUP/NAMESPACE/REPO. the full URL or Git URL is also accepted. flexible queen behavior πŸ‘‘

✨ EXAMPLE ✨

# 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

see? argument, no argument, and no argument but with pagination. three flavors of the same slay 🌈


✨ SEE ALSO ✨

  • glab-ssh-key(1) β€” go say hi to the parent page, it misses you πŸ’–

ngl, don't forget: if you leave off the ID you're going interactive, so be ready to actually pick something. no cap πŸ™ˆ

Auto generated by spf13/cobra 🧚 Nov 2026 β€” and that's the whole page, bestie! glab(1), rewritten with love, signed off with a sparkle βœ¨πŸ’œ

πŸ“¦ where this page comes from