Synopsis
cluck login [--token T]
Description
Authenticates the CLI. By default it opens a browser; in CI, pass a token instead.
Options
| Flag | Description |
|---|---|
--token T | Use an API token (for CI) |
--sso DOMAIN | Start the SSO flow for a domain |
--no-browser | Print the URL instead of opening it |
All commands also accept the global flags --coop, --json, --quiet, and --no-color, plus --help, which prints this page in a smaller font.
Example
$ cluck login
Opening browser...
✔ Logged in as [email protected]
🐓 Bawk!
Exit codes
| 0 | Success. A quiet cluck. |
|---|---|
| 1 | The command ran but reported a problem, such as a failing check. |
| 2 | Bad usage: a flag was missing or invalid. |
| 3 | Authentication or permission error. See HEN-2001. |