Authoring Guide · Getting Started

Create a knowledge base (CLI)

Bootstrap your own site with npx create-kb, then open Author Studio

Updated Aug 26, 2026 · 2 min read

Create a knowledge base (CLI)

Use this when you want your docs, not a fork of someone else's knowledge base.

The CLI asks for site title, author name, GitHub username, and repository name. It writes a working Next.js project with a default home, footer, Welcome page, and this Authoring guide.

Pin a version

@latest always scaffolds the newest release. To stay on a known generator, pin it: npx create-kb@0.1.0 my-notes. Your generated site keeps working even when a newer create-kb ships. See Versions and upgrades.

After the command

Then open:

Author Studio is local only. Save writes MDX under content/. You still commit and push.

Flags (no prompts)

FlagMeaning
--yes / -ySkip prompts (directory is required)
--site-titleNav brand and SEO title
--authorFooter copyright name
--github-userGitHub user (Pages URL)
--github-repoRepo name (basePath becomes /repo, unless the repo is user.github.io)
--no-gitDo not run git init

From the product repo itself (maintainers, before npm):

What the CLI fills vs what you edit

The CLI writes identity into kb.config.json (name, author, GitHub, Pages basePath). It also writes kb.engine.json with the create-kb version that generated the project. Do not treat kb.engine.json as a design file.

Appearance is yours:

GoalFile
Homepagecomponents/HomePageClient.tsx
Footer and socialscomponents/Footer.tsx
Top navcomponents/Navigation.tsx
Colors and fontsapp/globals.css
Sidebar orderconfig/docs-order.config.ts

The generated README.md repeats this table.

Next