YKMAN(1)
π YKMAN(1) β the YubiKey Manager, bestie edition π
okay so this is the manual for ykman, part of the User Commands crew, and it's literally the glow-up your YubiKey has been waiting for π¦
β¨ NAME β¨
ykman β YubiKey Manager (ykman) π
β¨ SYNOPSIS β¨
ykman [OPTIONS] COMMAND [ARGS]...
β¨ DESCRIPTION β¨
Configure your YubiKey straight from the command line. that's it, that's the whole vibe π
β¨ OPTIONS β¨
-d,--device SERIALβ pick which YubiKey you're talking to, by serial number π-r,--reader NAMEβ pick a YubiKey by its smart card reader name. ngl this one can't be used together with--deviceorlistπ«-t,--scp-ca FILENAMEβ tell it which CA to use to verify the SCP11 card key (CA-KLCC) π-s,--scp CREDβ hand over the private key and certificate chain for secure messaging. you can use this one multiple times to pass key + certs across multiple files (private key, certificates in leaf-last order), OR you can give SCP03 keys in hex separated by a colon:K-ENC:K-MAC[:K-DEK]ποΈ-p,--scp-password PASSWORDβ the password needed to unlock the--scpfile, if it needs one π-l,--log-level [error|warning|info|debug|traffic]β turn on logging at whichever verbosity level you want π--log-file FILEβ write the log into FILE instead of spilling it onto stderr (heads up: this needs--log-level) π--diagnoseβ show diagnostics info that's actually useful for troubleshooting π©Ί-v,--versionβ show version info about the app β--full-helpβ show the--helpoutput, including the hidden commands π-h,--helpβ show this message and exit, bye βοΈ
β¨ Commands β¨
infoβ show general information πΈlistβ list connected YubiKeys πscriptβ run a python script πconfigβ configure the YubiKey, enable or disable applications βοΈfidoβ manage the FIDO applications πhsmauthβ manage the YubiHSM Auth application πoathβ manage the OATH application ποΈopenpgpβ manage the OpenPGP application βοΈotpβ manage the YubiOTP application π’pivβ manage the PIV application πͺͺ
β¨ EXAMPLES β¨
List connected YubiKeys, only output serial number:
$ ykman list --serials
Show information about YubiKey with serial number 123456:
$ ykman --device 123456 info
β¨ SHELL COMPLETION β¨
there's experimental shell completion for the command line tool and honestly? obsessed π«Ά to enable it, run this command once (for Bash):
$ source <(_YKMAN_COMPLETE=bash_source ykman | sudo tee /etc/bash_completion.d/ykman)
want more info on shell completion (including how to do it in other shells)? it's all at: https://click.palletsprojects.com/en/stable/shell-completion/
and that's the whole page bestie π this was ykman 5.9.2, born June 2026, filed under YKMAN(1) β go forth and manage those keys, main character πβ¨
π¦ where this page comes from
- nixpkgs unstable: python3.14-yubikey-manager 5.9.2
- ubuntu stonking: yubikey-manager 5.9.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms