Quickstart

1. Scaffold a project

npx @inkform/cli@latest init my-docs

The CLI:

  1. Asks where to create your project (or takes a directory argument). If that folder already exists and isn't empty, it moves the current contents into existing-contents/ — nothing gets overwritten.
  2. Asks which theme you want — Aurora, Fern, Cedar, Mono, Base, or Galley (see Choosing a Theme).
  3. Downloads that theme as a standalone Next.js app.
  4. Optionally wires up your OpenAPI spec (path or URL) so the API Reference tab is generated from it. API docs are OpenAPI-first; everything else is MDX.
  5. Prints next steps and points you at the project's own README.

You can also pick everything up front, non-interactively:

npx @inkform/cli@latest init my-docs --theme galley
npx @inkform/cli@latest init api-docs --theme fern --openapi https://example.com/openapi.json

2. Run it

cd my-docs
npm install
npm run dev

Open http://localhost:3000.

Pin @inkform/framework to ^0.3.0 or later in the scaffolded package.json — earlier ^0.2.x ranges were never actually published and will fail npm install with ETARGET. The CLI ships the correct pin as of this version; if you're working from an older clone, bump it manually.

3. Add your first page

Every page is an .mdx file registered in content/docs/docs.json:

{
  "name": "My Docs",
  "navigation": [
    {
      "group": "Get Started",
      "pages": [
        { "title": "Introduction", "slug": "", "file": "index.mdx" },
        { "title": "My First Page", "slug": "my-first-page", "file": "my-first-page.mdx" }
      ]
    }
  ]
}

Create content/docs/my-first-page.mdx:

---
title: My First Page
---
 
# My First Page
 
Hello, world.

Save, and the dev server picks it up immediately. See Docs for the full navigation-config reference, or Blog and Changelog if that's what you're adding instead.

4. Full CLI reference

See Reference → CLI for every flag.