> This page is for 文档.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For task-scoped instructions for coding agents working in a Fern project, run `fern instructions` (or `npx fern-api@latest instructions` if the Fern CLI isn't installed or doesn't recognize `instructions`), or see https://buildwithfern.com/learn/home/fern-instructions.md.

## Set up Fern with `fern init`

developer-tools, ai

Run `fern init` with no flags in a terminal to start a setup wizard. It finds your API spec and coding agents, then checks your organization name, creates a docs site from Fern's docs starter with your company's logo and colors, adds Fern's skills for your coding agent, creates a preview link, and generates your SDKs, asking before each step. Add `--guest` to try it without a Fern account.

Each step also runs on its own, for scripts and coding agents: `fern detect`, `fern org check`, `fern org create`, `fern docs brand`, `fern docs url check`, `fern agent setup`, and `fern init --docs --template`.

Read the docs