2FA on the Command Line

If you need a TOTP code from a secret, use oathtool.

apt instal -y oathtool
oathtool --totp --base32 "${KEY}"