# Installation & Setup

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

# Installation & Setup

> 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/getting-started/installation.md](/md/docs/getting-started/installation.md).

[View Markdown.md source ↗](/md/docs/getting-started/installation.md)[Open in ChatGPTAsk about this page ↗](https://chatgpt.com/?q=Read%20https%3A%2F%2Fspacepress.dev%2Fmd%2Fdocs%2Fgetting-started%2Finstallation.md%20%28Installation%20%26%20Setup%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%2Fgetting-started%2Finstallation.md%20%28Installation%20%26%20Setup%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)

Requirements, creating a new app, and starting the local WordPress development environment.

## Requirements

- **Node.js 22 or newer** and npm
- No Docker and no Rust toolchain required — the `typedpress` npm package downloads a prebuilt native compiler binary automatically.

## Create a new application

```bash
npm create typedpress@0.3.0 my-app
cd my-app
npm run dev
```

`create-typedpress` creates a complete starter project with:

- `typedpress.config.ts` defining a synced `notes` collection and `site` global
- `tp/app/` with a layout, home page, dynamic `/notes/\[slug\]` page, and a progressive `<form action={greet}>`
- `content/notes/` sample Markdown content
- `AGENTS.md`, `.mcp.json`, and coding-agent skills generated via `typedpress init`

## Running locally

`npm run dev` invokes `typedpress dev`, which compiles your TypeScript, boots a local WordPress + SQLite server, activates the compiled plugins, and rebuilds automatically on file changes.

- Open the printed site URL to view your rendered TSX pages.
- Open `/wp-admin/new/` to explore SpacePress Admin (or `/wp-admin/` for classic wp-admin).
- Stop the dev server without deleting local data via `npm run stop` (`typedpress dev stop`).

## Adding modules

Add first-party modules as source files you own at any time:

```bash
npx typedpress add shop           # WooCommerce storefront & catalog
npx typedpress add db             # SQL table starter
npx typedpress add api-reference  # /api documentation pages from OpenAPI
```

[← Previous**Getting Started**](https://spacepress.dev/docs/getting-started/)[Next →**Project Structure**](https://spacepress.dev/docs/getting-started/project-structure/)

On this page

- [Requirements](#requirements)
- [Create a new application](#create-a-new-application)
- [Running locally](#running-locally)
- [Adding modules](#adding-modules)
