CLI authentication

Use browser login for the default local CLI flow. The CLI opens the device approval page at www.sume.com/cli/login (with a user_code), waits for approval, and stores a CLI-scoped API key in local config.

To create a key manually instead, use the API Keys dashboard.

For remote or headless terminals, print the approval URL instead of opening a browser:

Manual API-key setup and environment variables are still supported for CI, server automation, and advanced local workflows:

x-api-key is the current CLI default. SUME_API_AUTH_MODE=bearer is supported for clients that prefer Authorization: Bearer.

Local config is stored under ~/.sume-com/config.json by default.