The Studio CLI

WordPress from your terminal.

The same engine as the app, as one command. Create sites, run WP-CLI, share previews, and push to WordPress.com or Pressable. It works on its own, in scripts and in CI.

curl -fsSL https://wordpress.studio/install.sh | bash

Windows (PowerShell):

irm https://wordpress.studio/install.ps1 | iex

macOS and Linux. Then run studio --help. Prefer a window? Download the app, which ships the same CLI.

A site in sixty seconds

Create a site, change it with WP-CLI, and share a link. Every site you make here also opens in the app.

Jump to the command reference

# Create a site in a new folder; it starts right away
mkdir coffee-shop && cd coffee-shop
studio create --name "Coffee Shop"

# Run any WP-CLI command against it
studio wp plugin install woocommerce --activate

# Share a temporary preview link
studio preview create

studio ui

The app, in a browser tab

One command starts the Studio interface on your machine and opens it in your browser. Manage your sites with a full interface, without installing the desktop app.

studio ui
  • Nothing more to install. It comes with the CLI.
  • Same sites. Everything you create in the terminal is there, and the other way around.
  • Runs locally. It serves on localhost:8081. Pick another port with --port, or skip opening the browser with --no-open.

localhost:8081

The Studio interface in a browser tab: the list of local sites, a Studio Code chat and a live preview of the selected site.

Command reference

Every command, grouped by what it touches. Commands act on the site in the current folder, or the one you name with --path. Add --help to any of them for its options.

Sites

CommandWhat it does
studio createCreate a new local WordPress site and start it.
studio listList your sites and whether they are running.
studio statusShow a site’s URL, PHP version and admin user.
studio startStart a site’s server.
studio stopStop a running site.
studio deleteRemove a site, with or without its files.

WordPress

CommandWhat it does
studio wp <command>Run any WP-CLI command against a site. No separate install.
studio wp plugin install <slug>Example: add a plugin from the directory.
studio wp option get blognameExample: read a setting.

Previews

CommandWhat it does
studio preview createUpload a temporary copy of a site and get a link to share.
studio preview listList a site’s preview links.
studio preview updateRefresh a preview with your latest changes.
studio preview deleteTake a preview down.

Sync

CommandWhat it does
studio pushPush a local site to WordPress.com or Pressable, or a static copy to Spacefast with --remote-site spacefast.
studio pullPull a live site down to a local copy.

Backups

CommandWhat it does
studio import <file>Import a .zip, .tar.gz, .sql, .wpress or WordPress export file.
studio exportExport a full site, or only its database.
studio export-static <dir>Export a site as static HTML files.

AI and agents

CommandWhat it does
studio codeOpen Studio Code, the built-in agent, in your terminal. /connect adds an AI provider and /model switches models.
studio mcpRun the MCP server that Claude Code, Codex, ChatGPT, Cursor and Grok Build connect to.

Interface

CommandWhat it does
studio uiStart the Studio interface locally and open it in your browser. More about it.
studio ui --port <number>Serve it on another port. The default is 8081.
studio ui --no-openStart it without opening a browser tab.

Account

CommandWhat it does
studio auth loginSign in to WordPress.com for previews, publishing and AI credits.
studio auth statusShow which account you are signed in with.
studio auth logoutSign out.

Made for scripts and CI

Plain commands that any shell, Makefile or CI runner can call.

  • No app required. The CLI runs on its own, on a laptop or a build machine.
  • Same sites everywhere. A site you script shows up in the app, and the other way around.
  • Nothing else to install. PHP, SQLite and WP-CLI ship with Studio.
# review.sh: a throwaway site for each branch
studio create --path "review-$BRANCH" --name "review-$BRANCH" --skip-browser
cd "review-$BRANCH"
studio wp theme activate my-theme
studio preview create

# when the branch merges
studio delete "review-$BRANCH"

Your agent runs it too

Studio Code and agents like Claude Code and Codex call this same CLI. You can read every step they take, and repeat it yourself.

# Claude Code
claude plugin marketplace add Automattic/studio-plugins
claude plugin install wp-studio@studio

# Codex
codex plugin add wp-studio@openai-curated-remote

Install in one line.

Free and open source, under GPLv2 or later.

curl -fsSL https://wordpress.studio/install.sh | bash

Windows (PowerShell):

irm https://wordpress.studio/install.ps1 | iex