Subchapter 4.2
references/auth.mdMarkdown1 KBView on GitHub
| Flag | Type | Required | Description |
|---|---|---|---|
--key <key> | string | Yes (non-interactive) | API key (must start with re_) |
Pass the key from an environment variable (e.g. --key "$RESEND_API_KEY") or a secret manager — never as a literal, which would persist in shell history and logs.
Removes the active profile’s credentials (or all profiles if no --profile).
Lists all profiles with active marker.
Argument: [name] — Profile name (prompts in interactive if omitted)
Arguments: [old-name] [new-name] — Prompts in interactive if omitted
Argument: [name] — Profile name (prompts in interactive if omitted)
No flags. Shows authentication status (local only, no network calls).
Checks: CLI Version, API Key, Domains, AI Agents.
Exits 0 if all pass/warn, 1 if any fail.
Checks GitHub releases for newer version. Shows upgrade command.
Opens https://resend.com/emails in the default browser.
broadcasts and templates also have their own open subcommands:
resend broadcasts open [id] — open a broadcast or the broadcasts listresend templates open [id] — open a template or the templates list