Python library and command line tool for configuring a YubiKey. If you’re looking for the full graphical application, which also includes the command line tool, it’s here.
Usage: ykman [OPTIONS] COMMAND [ARGS]... Configure your YubiKey via the command line. Options: -v, --version -d, --device SERIAL -l, --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL] Enable logging at given verbosity level --log-file FILE Write logs to the given FILE instead of standard error; ignored unless --log-level is also set -h, --help Show this message and exit. Commands: fido Manage FIDO applications. info Show general information. list List connected YubiKeys. mode Manage connection modes (USB Interfaces). oath Manage OATH application. openpgp Manage OpenPGP application. otp Manage OTP Application. piv Manage PIV application.
sudo apt-add-repository ppa:yubico/stable sudo apt update sudo apt install yubikey-manager
brew install ykman
Or from source:
brew install swig ykpers libusb pip install --user yubikey-manager
The command line tool is installed together with the GUI version of YubiKey Manager.
Experimental Bash completion for the command line tool is available, but not enabled by default. To enable it, run this command once:
source <(_YKMAN_COMPLETE=source ykman | sudo tee /etc/bash_completion.d/ykman)