# CLI & Deployment

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

Source: https://spacepress.dev/docs/operations/cli-and-deploy

## 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.
