Skip to content
RustPress

Documentation Run

Command reference

Every rp command in one place: run and update the site, import and export content, manage themes, plugins, database, cache, users and AI tools.

Updated

This page lists every rp command, grouped by task. Every command takes --root DIR, the site folder; without it, $RP_ROOT or the current folder is used. rp help prints them all.

Site

CommandWhat it does
rp serve [--listen ADDR] [--safe-mode]Run the site: front end, /rp-admin/, /rp-login, /rp-json/
rp install --url … --title … --user … --password … --email …Install without the browser
rp update [--check]Install the latest signed release; running servers switch over without downtime
rp versionShow the installed version
rp option get NAME / rp option set NAME VALUERead or change a setting
rp export DIRWrite the public site as static HTML (needs pretty permalinks)
rp demo DIRBuild a throwaway demo site and export it
rp helpList every command

Shared hosting

CommandWhat it does
rp cgi [--fcgi-listen ADDR]Run under a web server as FastCGI or CGI (picked by itself)
rp cgi-setup --public DIR [--force]Write the start scripts and .htaccess, and print the cron job to add

Steps are in Hosting.

Content

CommandWhat it does
rp import FILE.xml [--author LOGIN] [--create-users] [--no-attachments] [--allow-local-attachments]Import a WordPress export file; attachments go to the Media Library
rp export-content [FILE.xml] [--content post|page|all]Write a WordPress export file
rp media regenerateRebuild image sizes

Themes and plugins

CommandWhat it does
rp theme listList installed themes
rp theme activate SLUGActivate a theme
rp theme buildCompile the theme’s Tailwind CSS
rp theme export SLUGExport a theme as a zip
rp theme install FILE.zip [--replace] [--activate] [--convert]Install a theme; --convert converts a WordPress theme zip
rp plugin listList installed plugins
rp plugin activate SLUG / deactivate SLUGTurn a plugin on or off (its requirements are checked)
rp plugin export SLUGExport a plugin as a zip
rp plugin install FILE.zip [--replace] [--activate]Install a plugin
rp plugin build DIRCompile a Rust plugin to WebAssembly, in a sandbox
rp backup [FILE]Save every theme and plugin in one zip

Database and cache

CommandWhat it does
rp db schemaShow the database tables and who owns them
rp db optimize [--revisions N]Clean and compact the database (also runs weekly)
rp db leftoversList data left by removed plugins
rp db plugin-data SLUG [--remove]Show a plugin’s data, or remove it
rp cache statusCheck the cache server (Redis, Valkey, Memcached)
rp cache flushClear every cache: pages on all servers, plugins’ cached data, templates and Cloudflare. Also Clear cache in the admin toolbar

Users and AI

CommandWhat it does
rp user create LOGIN EMAIL PASSWORD [ROLE]Create a user
rp user app-password LOGIN NAMECreate an application password for an API client or AI app
rp mcp --user ID [--abilities site,content,code,deploy]Serve the site’s AI tools as an MCP server over stdio (also over HTTP at /rp-json/rp/v1/ai/mcp)

More on connecting AI apps: MCP and AI tools.

Maintenance

CommandWhat it does
rp cron listScheduled events and background job counts
rp cron runRun due scheduled tasks, background jobs, cleanup and the update check once (for a system cron job)
rp cleanup [--dry-run]Clear stale AI workspace files, old rollback copies, trash and logs (also runs daily)

Settings and environment variables are in Configuration.