speakeasy icon indicating copy to clipboard operation
speakeasy copied to clipboard

command line interface (CLI)

Open zeke opened this issue 5 years ago • 1 comments

Hello there 👋

It appears this package does not have a command-line interface. It would be handy to have one that could be used like this:

npx speakeasy totp --secret abc123

Is there a particular reason this is not supported? Would you be open to a pull request to support this behavior?

zeke avatar Mar 10 '20 16:03 zeke

This is how our team is currently faking a CLI:

alias 2fa="node -pe \"require('/usr/local/lib/node_modules/speakeasy').totp({secret:'xyz123', encoding:'base32'})\""

zeke avatar Mar 10 '20 16:03 zeke