All auth operations - create an account, log in, recover access, or log out.
Auth is tied to the active profile. Switch profiles and the token and account identity switch with it.
Commands
tunnee auth register [--email] [--password] # create a new account
tunnee auth confirm [code] # verify your email
tunnee auth resend <email> # resend confirmation email
tunnee auth login [--email] # log in
tunnee auth logout # log out
tunnee auth forgot <email> # request password reset
tunnee auth reset <code> [--password] # reset your password Register
tunnee auth register --email you@example.com You’ll be prompted for email and password if you don’t pass them as flags.
After registering, confirm your email:
tunnee auth confirm <code> Registration doesn’t log you in automatically - confirmation is a separate step.
Confirm
tunnee auth confirm <code> Pass the code you received by email. You’ll be prompted for it if you don’t pass it as an argument.
Resend
tunnee auth resend you@example.com Resends the account confirmation email. Useful if the first one didn’t arrive.
Login
tunnee auth login --email you@example.com Leave out --email and it’ll prompt you. Password is prompted either way.
On success, the CLI saves the token, user ID, and email to the current profile.
Logout
tunnee auth logout Clears the token from the active profile. Other profiles are untouched.
Forgot & Reset
tunnee auth forgot you@example.com Sends a password reset email. Then use the code from the email to reset:
tunnee auth reset <code> You’ll be prompted for a new password. You can also pass it with --password.
After the reset, log in again:
tunnee auth login