R12.1 Project-2025/11/05
Two-Factor Authentication for Smart CLI
If two-factor authentication (2FA) has been enabled for your account but not yet set up, you will be prompted to configure 2FA when logging into Smart CLI for the first time.
- Open Smart CLI login page.
- Enter username and password, then click Log In. If two-factor authentication is enabled for your user account, a dialog will pop up to prompt you to set up two-factor authentication from the NetBrain Login Page (see Set up Two-Factor Authentication with Authenticator App for details).

- Click the website link in the dialog, you will open the NetBrain Login UI to set up two-factor authentication. Alternatively, you can bypassed two-factor authentication setup
Log in to Smart CLI if Two-Factor Authentication is Enabled
After two-factor authentication has been set up, you must complete two-factor authentication to log in to Smart CLI.
- Open Smart CLI log in Page.
- Enter username and password. If username/password authentication succeeds, the page for code verification will appear.
- Enter the verification code shown on your Authenticator App.

- Click Verify, then you will log in to Smart CLI if the verification code is correct.
Note: If code verification fails, error message will appear. 
Backwards compatibility with old versions of smart CLI:
- If Server is upgraded to this new version and two-factor authentication is enabled, Smart CLI client needs to be updated in order to work (logging in to Smart CLI).
- If Server is upgraded to this new version but two-factor authentication is not enabled, the older version of Smart CLI can continue to be used.