Authentication and SSO
omnistrate-ctl supports both password-based authentication and SSO sign-in using a browser device flow.
Authentication methods
- Email + password (
--emailand--password) - Email + password from stdin (
--password-stdin) - SSO with Google (
--google) - SSO with GitHub (
--gh) - SSO with Microsoft Entra (
--entra)
You can also run omnistrate-ctl login with no flags and choose interactively.
Password authentication
Direct password login:
sh omnistrate-ctl login --email your_email@example.com --password your_password
Recommended for scripts (avoid putting passwords in shell history):
sh echo "$OMNISTRATE_PASSWORD" | omnistrate-ctl login --email your_email@example.com --password-stdin
SSO authentication (Google, GitHub, Microsoft Entra)
Start SSO login with one of:
sh omnistrate-ctl login --google omnistrate-ctl login --gh omnistrate-ctl login --entra
The CLI will:
- Request a device code from the selected identity provider
- Open the verification page in your browser
- Show (and copy) a user code
- Poll Omnistrate until authentication completes
- Save the Omnistrate JWT token locally