Site color

Choose your site’s color palette.

Saved on this device.

PureStack CLI

PureStack CLI launches PureStack Forge, PureStack's website builder. Start with a template, shape your project, and explore it live.

Open Forge

With Node.js 22.12+ and npm installed, run this where you want to create your project:

npx purestack@latest init

The command starts Forge as a local PureStack website. Click the URL printed in your terminal and keep the terminal open while you explore.

Shape your site

1. Name it. Choose a title and project folder, relative to where you ran the command.

PureStack Forge site details with a site title, project folder, and navigation between setup sections.
Give your site a name. Move between setup sections whenever you need.

2. Shape it. Pick Starter, explore the palettes, and choose your features. Go back to adjust anything before creating.

PureStack Forge template options showing appearance settings and the Ember color palette.
Your template brings its own settings. Choose a palette and the features you want.

3. Create it. Select Install dependencies, optionally enable Git, and click Create site after reviewing. Watch the progress, then choose Browse live site.

PureStack Forge review screen summarizing the site title, folder, starter template, and dependency installation before creating the site.
Review your choices, then create your site and open it live.

The CLI can set up Yarn during installation. Git setup creates or reuses a repository without making a commit.

A real site. Your source.

A responsive landing page, About page, light and dark themes, a customization guide, and an interactive launch checklist. All yours to edit, with guidance for you and your AI assistant.

Make the first change

Open your project in your editor. Change the headline in content/modules/content/landing.ts and save. Your words appear on the live site.

Make it yours Start here
Words, sections, and buttons content/modules/content/landing.ts
Site name, logo, and palette content/siteConfig.json
Your story content/about.mdx
Layouts and components content/modules/components/

Your project’s README.md, AGENTS.md, and /guide/ show the way. PureStack Component Tools helps you edit pages and components in VS Code.

Come back and keep building

Finish Forge stops both local servers and keeps your project. Next time:

cd my-site
yarn dev

Replace my-site with your folder name. Skipped installation? Run yarn install first.

Everyday commands

Command What it does
yarn dev Open your site locally. Saved changes reload in your browser.
yarn format Format your code, MDX components, and TypeScript templates.
yarn check Check code quality and formatting.
yarn test Run app tests while you work.
yarn build Generate the complete site in dist/dev.
yarn publish Prepare a clean release in dist/publish, ready for your host.

Ready to go live? Follow the deployment guide.

Need more control from the terminal?

You can prefill Forge without skipping it:

npx purestack@latest init my-site --title "My next idea"

Run npx purestack@latest init --help for template selection, preset options, Forge's host and port, and direct creation for scripts. For existing content, use commands such as yarn purestack build --content ./content.

build: generate static files

Writes the complete site to outDir. Use --clean to empty it first or --no-cache to bypass persistent caches.

serve: preview and edit

Watches edits and reloads your browser. --port changes the address; --full-render builds every page before browsing. To run a second server for the same site, add --out 2 and another port: it builds into outDir with a -2 suffix, such as dist/site-2.

publish: prepare a release folder

Cleans publishDir and prepares an optimized release locally. Set your public URL in site configuration.