cropscode login
cropscode loginDescription
Section titled “Description”Opens your default browser for a secure OAuth sign-in. After authenticating, the CLI stores your API key in ~/.cropscode/credentials.json.
If you’re already logged in, the CLI asks whether to keep the current session or log in with a different account.
Options
Section titled “Options”| Flag | Description |
|---|---|
--no-browser | Token-based login (for headless/SSH environments) |
Token-Based Login
Section titled “Token-Based Login”For servers or environments without a browser:
cropscode login --no-browserThis prompts you to paste an API token and your email address. Generate a token from your orchestrator’s settings page.
The CLI also auto-detects headless environments (SSH sessions, display-less Linux) and switches to token-based login automatically.
Verify
Section titled “Verify”cropscode statusShows your authenticated email and connection state.