Create a new user account.
ops register
Prompts for username and password interactively. Password must be at least 8 characters and requires confirmation.
Authenticate and save token locally.
ops login
Prompts for username and password. On success, saves the JWT token to ~/.config/ops/credentials.json.
~/.config/ops/credentials.json
Clear saved credentials.
ops logout
Removes the stored token from ~/.config/ops/credentials.json.
Display current logged-in user info.
Output includes:
User ID
Username
Token expiration date
Print the current session token to stdout.
Useful for piping into other commands or setting up CI/CD:
Last updated 5 hours ago
ops whoami
ops token
export OPS_TOKEN=$(ops token)