Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line interface (CLI) #129

Open
zeke opened this issue Mar 10, 2020 · 1 comment
Open

command line interface (CLI) #129

zeke opened this issue Mar 10, 2020 · 1 comment

Comments

@zeke
Copy link

zeke commented Mar 10, 2020

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
Copy link
Author

zeke commented Mar 10, 2020

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'})\""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant