postsale auth
Sign in with a browser or a device code, sign out, and check which credential is active.
Authentication management.
Subcommands
| Command | Purpose |
|---|---|
login | Browser sign-in (default) or --no-browser device code |
logout | Clear stored credentials |
status | Show current auth status |
bash
postsale auth login
postsale auth login --no-browser
postsale auth status
postsale auth logoutNotes
- Tokens:
~/.postsale/tokens.json, readable only by your user account - Stored session precedes
POSTSALE_TOKEN; when the variable holds an API key (psk_…) that a session shadows, every command that calls the API prints oneenv_credential_ignoredwarning (local-only commands such asauth statusreport it asignored_env_credentialinstead), andauth logoutsays which credential becomes active auth statuson an API key reportscredential_kind: "api_key",key_prefix, andexpires: never; it never reports an email or an expiry for a key. See Use an API key- Not an OpenAPI schema slug group
Related
- Authenticate guide
- Agent: environment / token for all tools
On this page
Related