# Deploy on Pressable & WordPress.com (WP Cloud)

Reference

- [Getting Started](https://spacepress.dev/docs/getting-started/)
  - [Installation & Setup](https://spacepress.dev/docs/getting-started/installation/)
  - [Project Structure](https://spacepress.dev/docs/getting-started/project-structure/)
- [Core Framework](https://spacepress.dev/docs/core/)
  - [Schema & Storage](https://spacepress.dev/docs/core/schema-and-storage/)
  - [Queries & Access Control](https://spacepress.dev/docs/core/queries-and-access/)
  - [Actions, Jobs, Hooks & HTTP Routes](https://spacepress.dev/docs/core/actions-jobs-routes/)
  - [Pages, Layouts & Interactive Islands](https://spacepress.dev/docs/core/pages-and-islands/)
- [Integrations & Ecosystem](https://spacepress.dev/docs/integrations/)
  - [Two-Way Markdown & Git Sync](https://spacepress.dev/docs/integrations/markdown-sync/)
  - [WooCommerce Native Storefront](https://spacepress.dev/docs/integrations/woocommerce/)
  - [React Email Templates](https://spacepress.dev/docs/integrations/react-email/)
  - [Astro & Generated Typed Clients](https://spacepress.dev/docs/integrations/astro-and-clients/)
- [Operations & Tooling](https://spacepress.dev/docs/operations/)
  - [CLI & Deployment](https://spacepress.dev/docs/operations/cli-and-deploy/)
  - [MCP & AI Agents](https://spacepress.dev/docs/operations/mcp-and-agents/)
  - [Deploy on Spacefast](https://spacepress.dev/docs/operations/deploy-spacefast/)
  - [Deploy on Pressable & WordPress.com (WP Cloud)](https://spacepress.dev/docs/operations/deploy-wp-cloud/)
  - [Deploy on Self-hosted WordPress](https://spacepress.dev/docs/operations/deploy-self-hosted/)
- [Reference](https://spacepress.dev/docs/reference/)
  - [Host Contract](https://spacepress.dev/docs/reference/host-contract/)
  - [Tested Compiler Compatibility](https://spacepress.dev/docs/reference/language-support/)

# Deploy on Pressable & WordPress.com (WP Cloud)

> For AI coding agents: start with [/start.md](/start.md) (build playbook) and [/rules.md](/rules.md) (compiler rules), see [/llms.txt](/llms.txt) for the complete documentation index, or read this page as Markdown at [/md/docs/operations/deploy-wp-cloud.md](/md/docs/operations/deploy-wp-cloud.md).

[View Markdown.md source ↗](/md/docs/operations/deploy-wp-cloud.md)[Open in ChatGPTAsk about this page ↗](https://chatgpt.com/?q=Read%20https%3A%2F%2Fspacepress.dev%2Fmd%2Fdocs%2Foperations%2Fdeploy-wp-cloud.md%20%28Deploy%20on%20Pressable%20%26%20WordPress.com%20%28WP%20Cloud%29%29%20and%20help%20me%20with%20questions%20about%20it.)[Open in ClaudeAsk about this page ↗](https://claude.ai/new?q=Read%20https%3A%2F%2Fspacepress.dev%2Fmd%2Fdocs%2Foperations%2Fdeploy-wp-cloud.md%20%28Deploy%20on%20Pressable%20%26%20WordPress.com%20%28WP%20Cloud%29%29%20and%20help%20me%20with%20questions%20about%20it.)[start.mdAgent build playbook ↗](/start.md)[rules.mdCompiler rules ↗](/rules.md)[llms.txtFull site index ↗](/llms.txt)

Deploy a SpacePress app to Pressable or plugin-enabled WordPress.com sites running on WP Cloud using typedpress plugin and typedpress push.

Both [Pressable](https://pressable.com) and plugin-enabled [WordPress.com](https://wordpress.com) plans (Business and Commerce) run on **WP Cloud** with PHP 8.2+, WordPress 7.1+, `ZipArchive`, SSH/WP-CLI access, and Application Passwords enabled over HTTPS. Deployment works identically on both — `spacepress.dev` itself runs on Pressable.

## Prerequisites

- A **Pressable** site or a plugin-enabled **WordPress.com** site (Business or Commerce) running **WordPress 7.1+** and **PHP 8.2+**
- Administrator access in `wp-admin` (or SSH/WP-CLI access)

## 1\. Package and install the SpacePress plugin

Generate the uploadable host plugin (`typedpress.zip`):

```bash
npx typedpress plugin --out typedpress.zip
```

Upload and activate `typedpress.zip` in **wp-admin → Plugins → Add New Plugin → Upload Plugin**, or over SSH with WP-CLI:

```bash
wp plugin install typedpress.zip --activate --force
```

Activating the plugin automatically installs and activates its pinned platform dependencies (`action-scheduler`, `secure-custom-fields`, `two-factor`, `mcp-adapter`).

## 2\. Authenticate and deploy

Sign in with WordPress Application Passwords, preview the deployment plan, and make it live:

```bash
npx typedpress login https://your-site.example
npx typedpress push --dry-run
npx typedpress push
```

`typedpress push` uploads the compiled PHP runtime and app trees, runs any new numbered SQL migrations in `tp/\_generated/migrations/`, configures pretty permalinks, creates app routes, and activates the build atomically.

In CI or non-interactive scripts, create a WordPress Application Password (`wp user application-password create <user> deploy --porcelain`) and pass `TP\_APP\_PASSWORD="<user>:<password>"`.

## 3\. Sync Markdown content & verify

If your schema uses `sync: "content/\*\*/\*.md"`, sync Markdown edits and verify live health and links:

```bash
npx typedpress sync --site https://your-site.example
npx typedpress doctor --site https://your-site.example --links
```

## WP Cloud hosting notes

- **Build store location:** On WP Cloud, PHP-FPM runs inside `/srv/htdocs` and cannot write outside it, so SpacePress automatically creates a randomized build store directory (`wp-content/typedpress-store-<random-hex>`). Keep that path private and never link to it publicly.
- **Root static files (`.js`, `.wasm`, `.txt`):** WP Cloud’s nginx edge serves top-level static file extensions directly from `/srv/htdocs/` before reaching PHP. If your app ships custom browser bundles or WebAssembly assets under `public/` (such as `public/site.js` or `public/compiler.wasm`), copy them into `/srv/htdocs/` during release and purge edge cache so nginx serves them directly from the CDN.
- **Avoid `/files/` for public assets:** WP Cloud reserves `/files/\*` for legacy WordPress Multisite rewrites. Place downloadable assets in another path (for example, `public/downloads/` or `public/playground-plugins/`).
- **Rollbacks:** Earlier builds stay in the site’s build store so you can switch back to a previous release in `wp-admin` without re-uploading. Switching code does not revert applied SQL migrations.

[← Previous**Deploy on Spacefast**](https://spacepress.dev/docs/operations/deploy-spacefast/)[Next →**Deploy on Self-hosted WordPress**](https://spacepress.dev/docs/operations/deploy-self-hosted/)

On this page

- [Prerequisites](#prerequisites)
- [1. Package and install the SpacePress plugin](#1-package-and-install-the-spacepress-plugin)
- [2. Authenticate and deploy](#2-authenticate-and-deploy)
- [3. Sync Markdown content & verify](#3-sync-markdown-content--verify)
- [WP Cloud hosting notes](#wp-cloud-hosting-notes)
