LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ykman

YubiKey device management CLI

TLDR

List YubiKeys
$ ykman list
copy
Show device info
$ ykman info
copy
List OATH accounts
$ ykman oath accounts list
copy
Generate TOTP code
$ ykman oath accounts code [account_name]
copy
Add OATH account
$ ykman oath accounts add -t [name] [secret]
copy
Reset FIDO2
$ ykman fido reset
copy
Set FIDO2 PIN
$ ykman fido access change-pin
copy
List PIV certificates
$ ykman piv certificates list
copy

SYNOPSIS

ykman [options] command [subcommand] [args]

DESCRIPTION

ykman (YubiKey Manager) is the official CLI from Yubico for managing all aspects of YubiKey hardware security tokens. It provides a unified interface to configure and interact with the various applications available on the device.The oath subcommand manages TOTP and HOTP accounts, storing two-factor authentication secrets on the hardware and generating one-time codes. The fido subcommand handles FIDO2/WebAuthn credentials for passwordless authentication, including PIN management and resident key storage. The piv subcommand manages X.509 certificates for smart card operations, and openpgp configures PGP keys for signing, encryption, and SSH authentication.The config subcommand controls device-level settings such as enabling or disabling USB and NFC interfaces for specific applications. The info and list commands display device details including serial number, firmware version, and available applications. The -d flag selects a specific device when multiple YubiKeys are connected.

PARAMETERS

list

List devices.
info
Device info.
oath
OATH commands.
fido
FIDO commands.
piv
PIV commands.
openpgp
OpenPGP commands.
config
Configuration.
-d SERIAL
Device serial.

INSTALL

sudo dnf install yubikey-manager
copy
sudo pacman -S yubikey-manager
copy
sudo apk add yubikey-manager
copy
sudo zypper install yubikey-manager
copy
brew install ykman
copy
nix profile install nixpkgs#yubikey-manager
copy

CAVEATS

Requires YubiKey. Some operations are destructive. Backup before reset.

HISTORY

ykman (YubiKey Manager) is the official CLI from Yubico. It replaces older tools with unified management.

SEE ALSO

gpg(1), ssh-keygen(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid