YB-SELECT(1)
π 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 π
and thatβs the whole page, bestie π β source/version yb, date 2026-03, title YB-SELECT(1). mwah. π π
π¦ where this page comes from
- nixos 26.05: yb 0.4.2
- nixpkgs unstable: yb 0.5.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms