Skip to content
The Docs Report
Tuesday, November 17, 2026NewsletterRSS

Fern's CLI Now Exports a Live Docs Site as HTML, Markdown or PDF

Fern's Nov. 5 changelog adds fern docs export, which downloads a live docs site as static HTML, per-page Markdown with llms.txt, or one PDF.

1 min read

FernCLIllms.txt

Isometric 3D illustration of glossy hot pink cardboard moving boxes with taped lids on a tiled floor

Fern added a command that downloads a copy of a live docs site, according to its Nov. 5 changelog entry. fern docs export writes the site to a local folder in one of three formats.

HTML is the default and includes the llms.txt file

Running the command with no options exports the full static site as HTML, Fern said. The export includes per-page Markdown, the site’s llms.txt and its assets. Fern said the folder can be served locally with npx serve <folder>.

Markdown and PDF are one flag away

The --format option sets the output, per the changelog. The md value exports each page’s Markdown plus llms.txt. The pdf value produces a single PDF that uses the same cover, table of contents, header and footer options as the PDF export in Fern’s dashboard.

The entry follows Fern’s hosting change by a week

Fern’s Oct. 30 changelog said docs sites are now prebuilt as static pages and served from the edge, and that custom domains still on Vercel must move to cname.ferndocs.com by Dec. 1.

The take

We think the export matters most as a backup. A hosted docs site is only as portable as the last copy you hold. A command that produces plain HTML, Markdown and a PDF lets a team keep a copy outside the vendor.

The llms.txt file in the export is the part worth checking. It shows what an AI agent sees when it reads the site. Run the export once this week, open the llms.txt and a few Markdown pages, and fix anything that looks wrong before an agent finds it.