# Quick Start

> 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/quick-start.md](/md/quick-start.md).

[View Markdown.md source ↗](/md/quick-start.md)[Open in ChatGPTAsk about this page ↗](https://chatgpt.com/?q=Read%20https%3A%2F%2Fspacepress.dev%2Fmd%2Fquick-start.md%20%28SpacePress%20Quick%20Start%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%2Fquick-start.md%20%28SpacePress%20Quick%20Start%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)

The famous 3-minute install: hand the prompt to your coding agent — or scaffold directly with the CLI — and launch local WordPress with no Docker or Rust toolchain required.

**Requirements & pre-release naming:** You need **Node.js 22+** and npm. The `typedpress` npm package downloads a prebuilt Rust compiler binary automatically. During pre-release, CLI commands, config filenames (`typedpress.config.ts`), and imports (`from "typedpress"`) use the `typedpress` identifier.

1

## Start with your coding agent — or the CLI

Paste this prompt into Claude Code, Cursor, Codex, or any coding agent. It reads [`/start.md`](/start.md) and [`/rules.md`](/rules.md), scaffolds the starter with `AGENTS.md`, 12 skills, and [`.mcp.json`](https://spacepress.dev/docs/operations/mcp-and-agents/), and boots local WordPress:

`Read https://spacepress.dev/start.md and https://spacepress.dev/rules.md, then help me build a SpacePress app (scaffold with \`npm create typedpress@0.3.0 my-app\`, verify with \`npx typedpress check\`, and boot local WordPress with \`npm run dev\`).`

Or run the scaffolder directly in your terminal:

npm create typedpress@0.3.0 my-appcd my-app && npm run dev

`typedpress dev` compiles your TypeScript, boots a local WordPress + SQLite site, activates the generated plugins, and watches for file changes. Open the printed URL in your browser and say *Howdy* to the modern SpacePress Admin at `/wp-admin/new/`.

2

## Define your schema & server action

SpacePress reads `typedpress.config.ts` (and any files it re-exports from `tp/`). Edit the starter schema below — try adding a `summary: text().optional()` field or modifying the `clap` action — and inspect the live PHP, SQL migration, and TypeScript definitions generated in your browser.

3

## Render a server TSX page & interactive island

Pages in `tp/app/` compile directly to PHP and render inside WordPress with zero Node.js. Forms bound to `action={greet}` work even with JavaScript disabled; components marked `"use client"` compile into WordPress Interactivity API stores.

import { db } from "typedpress"; import { Link, useFormState } from "typedpress/app"; import { greet } from "../actions"; export const metadata = { title: "Home" }; export default async function Home() { const latest = await db.query.notes.findMany({ columns: { id: true, title: true, slug: true }, orderBy: { publishedAt: "desc" }, limit: 5, }); const state = useFormState(greet); return ( \<section> \<h1>Latest Notes\</h1> \<ul> {latest.map((note) => ( \<li key={note.id}> \<Link href={\`/notes/${note.slug}\`}>{note.title}\</Link> \</li> ))} \</ul> \<form action={greet}> \<input name="name" defaultValue={state.values.name ?? ""} required /> \<button type="submit">Say hello\</button> \</form> {state.result && \<p role="status">{state.result.message}\</p>} \</section> ); }"use client"; import { useState } from "typedpress/client"; import { clap } from "../schema"; export function ClapButton({ noteId, initial }: { noteId: number; initial: number }) { const \[count, setCount\] = useState(initial); const \[busy, setBusy\] = useState(false); return ( \<button type="button" disabled={busy} onClick={async () => { setBusy(true); const res = await clap({ noteId }); setCount(res.count); setBusy(false); }} > {count} {count === 1 ? "clap" : "claps"} \</button> ); }

4

## Sync Markdown content & verify types

Collections with `sync: "content/notes/\*.md"` stay in two-way sync between Git and WordPress. Run `typedpress sync` to push local Markdown files or pull edits made in WordPress Admin, and run `check` + `tsc` to validate everything before shipping.

npx typedpress syncnpm run check && npm run typecheck

5

## Build & deploy anywhere WordPress runs

Compile your project into standalone WordPress plugins under `tp/dist/wp-content/plugins/`, deploy to [Spacefast](https://spacepress.dev/docs/operations/deploy-spacefast/), [Pressable & WordPress.com (WP Cloud)](https://spacepress.dev/docs/operations/deploy-wp-cloud/), or [self-hosted WordPress](https://spacepress.dev/docs/operations/deploy-self-hosted/) with `login` + `push`, or export a static site when `output: "static"` is set.

npx typedpress buildnpx typedpress login https://example.com && npx typedpress push

Need to add a module later? Scaffold a WooCommerce storefront with `npx typedpress add shop`, SQL tables with `npx typedpress add db`, or OpenAPI reference pages with `npx typedpress add api-reference`.

## Where to go next

[

### Interactive Handbook →

Learn the complete architecture end-to-end with live embedded WASM sandboxes across all 14 sections.

](https://spacepress.dev/handbook/)[

### Open the Playground →

Switch between complete apps, inspect compiled diffs, share links, and run inside WordPress Playground.

](https://spacepress.dev/play/)[

### Reference & APIs →

Browse structured technical reference covering schema builders, access rules, sync, WooCommerce, and CLI.

](https://spacepress.dev/docs/)
