YB-SELECT(1)

πŸ“¦ version 0.5.2, in nixos 26.05, nixpkgs unstable

πŸŽ€ YB-SELECT(1) πŸŽ€

okay so bestie, this is the YB-SELECT(1) page from the User Commands manual, and it’s literally the β€œpick your YubiKey” moment. πŸ’–

✨ NAME ✨

select β€” interactively select a YubiKey and print its serial number. slay. πŸ’…

🌸 SYNOPSIS 🌸

select [--reader] [-h|--help]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so select lets you interactively pick one YubiKey from all connected devices, then prints its serial number to stdout. It’s intended for use in scripts, like this:

yb --serial "$(yb select)" store myfile

If only one YubiKey is connected, the serial is printed immediately β€” no picker, no extra steps, just instant results. ✨

If multiple YubiKeys are connected and the process is attached to a TTY, a single-line carousel is rendered on stderr: use ⟨/⟩ (or j/k) to cycle through devices, and press Enter to confirm. The currently highlighted device flashes its LED to help identify it physically. Press Esc or Ctrl-C to cancel. 🫢

⚠️ If multiple YubiKeys are connected but stderr is not a TTY, the command exits with an error. No carousel, no vibes, just an error. 😭

πŸ’– OPTIONS πŸ’–

  • --reader β€” print the reader name instead of the serial number. πŸŽ€
  • -h, --help β€” print help. that’s it, that’s the option. ✨

🌈 EXAMPLES 🌈

Print the serial number of the selected YubiKey:

yb select

Print the PC/SC reader name instead:

yb select --reader

Use in a script to target a specific YubiKey:

yb --serial "$(yb select)" store secret.key

πŸ‘‘ SEE ALSO πŸ‘‘

yb(1), yb-list-readers(1)


and that’s the whole page, bestie πŸ’– β€” source/version yb, date 2026-03, title YB-SELECT(1). mwah. πŸ’…πŸŽ€

πŸ“¦ where this page comes from