Authentication

register

Create a new user account.

ops register

Prompts for username and password interactively. Password must be at least 8 characters and requires confirmation.

login

Authenticate and save token locally.

ops login

Prompts for username and password. On success, saves the JWT token to ~/.config/ops/credentials.json.

logout

Clear saved credentials.

ops logout

Removes the stored token from ~/.config/ops/credentials.json.

whoami

Display current logged-in user info.

Output includes:

  • User ID

  • Username

  • Token expiration date

token

Print the current session token to stdout.

Useful for piping into other commands or setting up CI/CD:

Last updated