Skip to main content

cast login

Authenticate with Castari via browser-based OAuth.

Usage

cast login

What Happens

  1. Opens your default browser to Castari login page
  2. You sign in (or create an account)
  3. Browser redirects back, CLI captures the token
  4. Credentials saved to ~/.castari/credentials.json

Output

Opening browser to authenticate...
✓ Logged in as [email protected]

Options

OptionDescription
--no-browserPrint login URL instead of opening browser

Headless Authentication

For CI/CD or headless environments:
cast login --no-browser
This prints the URL for manual authentication.
For automated environments, use an API key instead of OAuth. See Environment Variables.

cast logout

Clear stored credentials.

Usage

cast logout

Output

✓ Logged out
This deletes ~/.castari/credentials.json.

cast whoami

Show the currently authenticated user.

Usage

cast whoami

Output

Logged in as: [email protected]
User ID: usr_abc123
If not logged in:
Not logged in. Run 'cast login' to authenticate.

See Also