Skip to main content
Mintlify

Search documentation

Type to search this documentation.

On this pageOverview

Offline export

Export your documentation site as a self-contained zip archive for offline viewing, internal distribution, or air-gapped environment hosting.

Use mint export to package your entire documentation site into a self-contained zip archive. Recipients can unzip and view the docs in their browser without an internet connection, a Mintlify account, or any build tools. They only need Node.js installed.

This is useful when you need to distribute documentation to users who can't access your live site, such as for on-premise customers, air-gapped environments, or internal compliance reviews.

  • The CLI installed and up to date
  • Node.js v20.17.0+ installed
  • Offline exports do not support search. To add offline search, index the exported HTML with a static search tool.
  • Offline exports do not support the Mintlify assistant.

Navigate to your documentation directory containing your docs.json file and run:

Bash
mint export

The CLI builds your site, crawls every page defined in your navigation, and packages the output into a zip file in your current directory.

Flag Description Default
--output <path> Set the output zip file path. export.zip
--groups <group> Mock user groups for the export. Useful when your docs use group-based access control and you want the archive to include restricted pages. —
--disable-openapi Skip OpenAPI file generation during the export. Use this if you have many OpenAPI specs and want faster builds. —

For example, to export your site to a custom filename with a specific user group:

Bash
mint export --output customer-docs.zip --groups enterprise

The exported archive is a static, unauthenticated bundle. Anyone with the zip file can view every page it contains.

  • The --groups flag controls which group-restricted pages Mintlify includes in the archive at export time. It does not enforce authentication after export.
  • Only share archives with recipients who are allowed to see the content they contain.
  • Regenerate and redistribute the archive to publish new changes. Anyone running an older zip continues to see the older content.

The exported archive contains everything needed to view your docs offline:

File Purpose
HTML pages Pre-rendered version of every page in your navigation
_next/static/ Bundled CSS, JavaScript, and other static assets
serve.js Zero-dependency Node.js HTTP server that serves the site
Start Docs.command macOS launcher. Double-click to open the docs.
Start Docs.bat Windows launcher. Double-click to open the docs.

Share the zip file with anyone who has Node.js installed. To view the docs:

  1. Unzip the archive.
  2. Open a terminal in the unzipped directory.
  3. Run node serve.js.
  4. Open http://localhost:3000 in your browser.
  1. Unzip the archive.
  2. Double-click Start Docs.command.
  3. The docs open in your default browser at http://localhost:3000.
  1. Unzip the archive.
  2. Double-click Start Docs.bat.
  3. The docs open in your default browser at http://localhost:3000.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu