# CLI & Deployment

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/)

# CLI & Deployment

> 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/cli-and-deploy.md](/md/docs/operations/cli-and-deploy.md).

[View Markdown.md source ↗](/md/docs/operations/cli-and-deploy.md)[Open in ChatGPTAsk about this page ↗](https://chatgpt.com/?q=Read%20https%3A%2F%2Fspacepress.dev%2Fmd%2Fdocs%2Foperations%2Fcli-and-deploy.md%20%28CLI%20%26%20Deployment%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%2Fcli-and-deploy.md%20%28CLI%20%26%20Deployment%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)

Build, check, export, push, doctor, plugin packaging, and production hosting options.

## Core build & deploy commands

- `typedpress dev` / `dev stop` / `dev status` — manage the local WordPress + SQLite site.
- `typedpress check \[--json\] \[--frozen\]` — compile and report diagnostics without writing output.
- `typedpress build` — emit WordPress plugins into `tp/dist/wp-content/plugins/`, migrations, types, client, and OpenAPI.
- `typedpress export \[--site <url>\]` — prebuild `tp/app/` into `tp/dist/static/` (`output: "static"`).
- `typedpress plugin` — package an uploadable `typedpress.zip` plugin for `wp-admin`.
- `typedpress login <site-url>` & `typedpress push` — authenticate via WordPress Application Passwords and deploy directly to a remote WordPress site.
- `typedpress doctor \[--links\]` — verify build integrity, live site plugins, and crawl internal links/anchors.

## Site operations (WP-CLI bridge)

Target local dev (default) or any remote site (`--site <dir | workspace | @alias>`):

- `typedpress wp <args...>` — run any WP-CLI command.
- `typedpress migrate`, `seed`, `jobs`, `staged`, `publish-due`, `identity`, `find`, `insert`, `update`, `delete`, `action`, `abilities`, `run`.

## Hosting & deployment guides

SpacePress runs anywhere WordPress 7.1+ and PHP 8.2+ run:

- **[Deploy on Spacefast](/docs/operations/deploy-spacefast)**
- **[Deploy on Pressable & WordPress.com (WP Cloud)](/docs/operations/deploy-wp-cloud)**
- **[Deploy on Self-hosted WordPress](/docs/operations/deploy-self-hosted)** — server requirements & everywhere else

## Sealed mode & plugin lockfile

Declare third-party WordPress plugins in `defineConfig({ plugins: { ... }, sealed: true })`. Exact versions and SHA-256 checksums are locked in `tp/\_generated/wp-plugins.lock.json`, and sealed mode refuses activation of undeclared plugins.

[← Previous**Operations & Tooling**](https://spacepress.dev/docs/operations/)[Next →**MCP & AI Agents**](https://spacepress.dev/docs/operations/mcp-and-agents/)

On this page

- [Core build & deploy commands](#core-build--deploy-commands)
- [Site operations (WP-CLI bridge)](#site-operations-wp-cli-bridge)
- [Hosting & deployment guides](#hosting--deployment-guides)
- [Sealed mode & plugin lockfile](#sealed-mode--plugin-lockfile)
