---
title: Quickstart
subtitle: Install the CLI, create a project, preview it on your computer, then publish. It takes about five minutes.
description: Install the biti CLI and ship your first docs site with biti init, biti login, biti dev, and biti deploy.
---

## 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

<Steps>
  <Step title="Install the CLI">
    The CLI package is named `bitidocs`, and the command is `biti`.

    <CodeGroup>
    ```bash npm
    npm install -g bitidocs
    ```

    ```bash pnpm
    pnpm add -g bitidocs
    ```

    ```bash Inside the ButterIX repo
    # The root package.json provides a biti script, so no global install is needed
    pnpm biti --help
    ```
    </CodeGroup>

    Run `biti --version` after installing to confirm.
  </Step>

  <Step title="Create a project">
    ```bash
    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`):

    <Files>
      <Folder name="my-docs" defaultOpen>
        <File name="docs.yml" comment="Site configuration and navigation" />
        <Folder name="pages" defaultOpen>
          <File name="introduction.mdx" />
          <File name="quickstart.mdx" />
        </Folder>
        <Folder name="assets" defaultOpen>
          <File name="logo.svg" />
        </Folder>
        <File name="AGENTS.md" comment="Writing guide for coding agents" />
        <File name=".gitignore" comment="Ignores files biti generates" />
      </Folder>
    </Files>

    Already have an OpenAPI spec? Add `--openapi` to copy it to `openapi.yml` and generate an "API Reference" tab:

    ```bash
    biti init my-docs --openapi ./openapi.yaml
    ```
  </Step>

  <Step title="Sign in and preview">
    ```bash
    cd my-docs
    biti login --token biti_xxxxxxxxxxxxxxxx
    biti dev
    ```

    Create the API key in the dashboard; see [CLI deployment and API keys](../deploy/cli-deploy.mdx). 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.

    <Note>
      If the port is taken, use `biti dev --port 3100`.
    </Note>
  </Step>

  <Step title="Publish">
    ```bash
    biti deploy --site acme-payments
    ```

    The CLI uploads the project to the platform and prints the live URL once the build finishes. See [CLI deployment and API keys](../deploy/cli-deploy.mdx).
  </Step>
</Steps>

## Write your first page

Create `guides/authentication.mdx` under `pages/`:

````mdx title="pages/guides/authentication.mdx"
---
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`:

```yaml title="docs.yml" {7-9}
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: authentication
```

<Info>
  By 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](../configuration/navigation.mdx#slug-rules) for the rules.
</Info>

## Check before committing

```bash
biti check
```

`biti 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:

```bash
biti check --json --strict
```

## Next steps

<CardGroup cols={3}>
  <Card title="Project structure" icon="lucide:folder-tree" href="./project-structure.mdx">
    What each directory and file is for.
  </Card>
  <Card title="Writing" icon="lucide:pen-line" href="../writing/markdown.mdx">
    Markdown, code blocks, images, and components.
  </Card>
  <Card title="Import OpenAPI" icon="lucide:code" href="../api/openapi.mdx">
    Generate an API reference from a spec.
  </Card>
</CardGroup>
