forge login
Authenticate with API key and URL.
Command
forge login --api-key <key> [--api-url <url>]
Arguments
None.
Flags
| Flag | Type | Required | Default | Notes |
|---|---|---|---|---|
| string | yes | — | API key |
| string | no | | API base URL |
Examples
Basic login:
forge login --api-key bf_key_xxxxx
Custom API URL:
forge login --api-key bf_key_xxxxx --api-url https://staging.blueforge.studio
Errors
| Exit code | Meaning |
|---|---|
| 0 | Authenticated successfully |
| 1 | No API key provided |
Pitfalls
- Key stored locally — the API key is stored in
for subsequent commands.~/.forge/config.json - URL persistence — the API URL is persisted alongside the key. You only need
on first login or when switching environments.--api-url
See also
{auto-injected}
Tested against
{auto-injected}