Agent directive: read the LLMS index for this site. Markdown versions of pages are available by appending .md to the page URL or by sending Accept: text/markdown.

Install

How to install and setup publish.dev

CLI

The CLI helps you setup your site and configuration, runs a development server, and validates builds.

Initialization

Run the init script to setup your repo.

npx @publish.os/cli@latest init

You can choose to start from scratch or a template.

Once scaffolded, you can run the development server and start building:

npx @publish.os/cli@latest dev

Filesystem

Getting started with publish.dev is as simple as putting a folder in your repo.

app/                        # your repo
├── dashboard/              # any app that might be related to your content
└── ...
│
publish.os/
├── publish.os.config.json
└── docs/
    └── content/
        └── install.mdx

When you want more control or customization, simply author your own layouts, pages, or components.

publish.os/
├── publish.os.config.json
├── theme.css
└── components/ui/
    └── button.tsx
└── docs/
    └── page.tsx
    └── content/
        └── install.mdx