Skip to content

Command-Line Interface

Manage content from your terminal with ppx.

ppx is the Postpiece command-line interface. Manage sites, posts, pages, media, redirects, menus, webhooks, and imports from your terminal or CI pipeline. Install from npm and script your whole publishing workflow.

Install in seconds

The Postpiece CLI ships as @postpiece/cli on npm and installs the ppx command. Point it at a site and start publishing.

install

# Install globally
npm install -g @postpiece/cli

# Or run without installing
npx @postpiece/cli posts list --site myblog

Script your whole workflow

Draft in Markdown, import from other CMSes, manage taxonomy and redirects, and publish — all without leaving the terminal or your CI pipeline.

ppx

# Create a post from a Markdown file, then publish it
ppx posts create --site myblog --from ./launch.md
ppx posts publish launch-day

# Bulk-import from WordPress
ppx import wordpress --site myblog --file export.xml --author jane

# Search and manage taxonomy
ppx search --site myblog "AI trends"
ppx tags list --site myblog

Everything the dashboard does

Full command coverage

posts, pages, media, sites, authors, tags, collections, redirects, navigation, webhooks, triggers, team, and billing — every dashboard action has a command.

One-command imports

Import from WordPress and other sources with a single command, mapping content, media, and redirects into your Postpiece site.

Docs-as-code workflow

Author posts as Markdown files in your repo and publish them with ppx from CI — content lives in version control, deploys like code.

Key management

Manage API keys and scope access per site straight from the terminal. Great for provisioning agents and automation.

Built for automation

Every command is scriptable and returns structured output, so you can wire Postpiece into build steps, cron jobs, and deploy hooks.

Runs anywhere

Installs from npm and runs anywhere Node runs — local machines, CI runners, or containers.

Explore the platform

Publish from the command line.

Free to start · No credit card required · Deploy on Cloudflare