Installation
- npm
- pnpm
Setup
API Key
Set your Postiz API key as an environment variable. You can get your API key from the Postiz Settings page.Custom API URL (self-hosted)
If you’re running a self-hosted Postiz instance, point the CLI to your server:Quick Start
Commands Overview
| Command | Description |
|---|---|
integrations:list | List all connected social media accounts |
integrations:settings | Get the settings schema for an integration |
integrations:trigger | Trigger a dynamic tool on an integration |
posts:create | Create a new post |
posts:list | List posts with optional date filtering |
posts:delete | Delete a post by ID |
upload | Upload a media file |
All commands output JSON, making the CLI easy to use in scripts and automation pipelines.

