timokoessler / 2FAGuard

A modern and secure Windows app for managing your 2FA authentication codes.
https://2faguard.app
MIT License
71 stars 5 forks source link

Allow CLI Interaction for Retrieving and Copying TOTP Token Codes to Clipboard #21

Closed casilvam-cgd closed 4 months ago

casilvam-cgd commented 6 months ago

What is your idea?

Description:

Allow interaction with the app via the CLI to retrieve TOTP token codes and copy them directly to the clipboard without having to open the GUI. This feature would greatly enhance the usability and convenience of the app, especially for users who prefer command-line workflows or need to access token codes quickly without navigating through the graphical interface.

Feature Specifications:

Output example:

> C:\path-to-exe\2FAGuard.exe --get-code my-token --copy-to-clipboard
Token code for 'my-token': 123456
Token code copied to clipboard successfully.

Additional Notes:

If you need any further clarification or details, please let me know. Thank you!

timokoessler commented 6 months ago

Thanks for your suggestion. 👍 Automating several actions in one script would cause the problem that confirmation with Windows Hello or entering the password would be required for each command.

timokoessler commented 4 months ago

If you want to try the CLI, you can now download it from the release page. Its a first minimal version that includes a list and a get command. For use with the portable version, simply place the executable in the same folder. Later, the CLI will be available as an optional component that can be installed and updated from the GUI. The CLI does not work with the Microsoft Store version of 2FAGuard.