Skip to main content
Authenticate using the device flow, no client ID or secret needed:
This will:
  1. Display a one-time code in your terminal
  2. Open your browser to authorize
  3. Automatically save credentials to ~/.postiz/credentials.json

Auth Commands

API Key

Alternatively, set your Postiz API key as an environment variable:
You can get your API key from the Postiz Settings page.
OAuth2 credentials take priority over the API key when both are present.

Environment Variables

*Either OAuth2 (via postiz auth:login) or POSTIZ_API_KEY is required.

Self-hosting the auth server

postiz auth:login uses a hosted auth server by default, which works whether your Postiz is cloud or self-hosted. If you would rather run that piece yourself, see Self-hosting the CLI auth server.