Skip to content

postsale auth

Sign in with a browser or a device code, sign out, and check which credential is active.

Updated September 3, 20261 min readPostsale CLI

Authentication management.

Subcommands

CommandPurpose
loginBrowser sign-in (default) or --no-browser device code
logoutClear stored credentials
statusShow current auth status
bash
postsale auth login
postsale auth login --no-browser
postsale auth status
postsale auth logout

Notes

  • 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 one env_credential_ignored warning (local-only commands such as auth status report it as ignored_env_credential instead), and auth logout says which credential becomes active
  • auth status on an API key reports credential_kind: "api_key", key_prefix, and expires: never; it never reports an email or an expiry for a key. See Use an API key
  • Not an OpenAPI schema slug group