Skip to content

Adding Services

Dave Walker edited this page Jan 28, 2025 · 1 revision

To add a new service to the current data file, use the following syntax:

/path/to/OtpGenerator.Terminal --add "service" "account" "secret"

Where:

Argument Comments
/path/to/OtpGenerator.Terminal The path to the OTP Generator binary, named "OtpGenerator.Terminal" on MacOS and Linux and "OtpGenerator.Terminal.exe" on Windows
service The service name
account The account name
secret The 2FA generation secret associated with the account and service

Values need only be quoted "..." if they contain special characters or spaces.

The application will check the service/account combination doesn't already exist and, if not, will add it to the databae and generate and display a 2FA code valid for the combination:

Add Service

Clone this wiki locally