Sí. El comando oathtool equivalente es
oathtool --totp -b «TOTPCODESTRING»
¿Qué estás usando que no reconoce Discourse (presumiblemente, no reconoce el código QR)? ¿Funciona con esto?