Quickstart
Install the CLI, create a project, preview it on your computer, then publish. It takes about five minutes.
Prerequisites
- Node.js 22.13 or later (check with
node -v). - An empty directory, or an existing Fern / Mintlify docs project.
- A ButterIX account and an organization API key: previewing, checking, and publishing all happen on the platform.
Live in four steps
Install the CLI
The CLI package is named bitidocs, and the command is biti.
npm install -g bitidocspnpm add -g bitidocs# The root package.json provides a biti script, so no global install is needed
pnpm biti --helpRun biti --version after installing to confirm.
Create a project
biti init my-docs --title "Acme Docs"biti init generates the following files (it refuses to overwrite if the target directory already has a docs.yml):
my-docs
pages
assets
Already have an OpenAPI spec? Add --openapi to copy it to openapi.yml and generate an "API Reference" tab:
biti init my-docs --openapi ./openapi.yamlSign in and preview
cd my-docs
biti login --token biti_xxxxxxxxxxxxxxxx
biti devCreate the API key in the dashboard; see CLI deployment and API keys. Open the address printed in the terminal (http://localhost:3000 by default): pages are rendered by the ButterIX platform, biti syncs your changes to it, and the browser reloads when you save a file; CSS-only changes swap the stylesheet without a full reload. The preview opens on your computer only; search and Ask AI work on the published site.
If the port is taken, use biti dev --port 3100.
Publish
biti deploy --site acme-paymentsThe CLI uploads the project to the platform and prints the live URL once the build finishes. See CLI deployment and API keys.
Write your first page
Create guides/authentication.mdx under pages/:
---
title: Authentication
subtitle: Every request must include an API key in the Authorization header.
---
<Warning>Never commit API keys to your repository.</Warning>
## Get a key
Create a key under **Settings → API Keys** in the dashboard, then:
```bash
curl https://api.example.com/v1/me \
-H "Authorization: Bearer $ACME_KEY"
```Then add it to the navigation in docs.yml:
navigation:
- section: Get started
contents:
- page: Introduction
path: pages/introduction.mdx
- page: Quickstart
path: pages/quickstart.mdx
- page: Authentication
path: pages/guides/authentication.mdx
slug: authenticationBy default, a page's URL is generated from its title in the navigation. If the title contains non-ASCII characters (such as Chinese), set slug explicitly, or the URL will contain those characters. See Navigation for the rules.
Check before committing
biti checkbiti check loads the configuration on the platform, parses and renders every page, and reports configuration errors, missing pages, broken links, unknown components, and missing asset files. In CI or coding agents, use --json for machine-readable results and --strict to treat warnings as errors:
biti check --json --strict