mint 4.3.84 → 4.3.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +221 -160
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,252 +1,313 @@
1
1
  <div align="center">
2
2
  <a href="https://mintlify.com">
3
- <img
4
- src="https://mintlify-assets.b-cdn.net/logo.svg"
5
- alt="Mintlify Logo"
6
- height="48"
7
- />
3
+ <img src="https://mintlify-assets.b-cdn.net/logo.svg" alt="Mintlify" height="48" />
8
4
  </a>
9
- <br />
5
+ <h1>mint</h1>
10
6
  <p>
11
- <h3>
12
- <b>
13
- Mint CLI
14
- </b>
15
- </h3>
7
+ <b>The Mintlify CLI</b><br />
8
+ Write, preview, check, and publish your docs from the terminal.
16
9
  </p>
17
10
  <p>
18
- The Mint CLI is the easiest way to build Mintlify apps from the command line.
11
+ <a href="https://www.npmjs.com/package/mint"><img src="https://img.shields.io/npm/v/mint?style=flat&label=npm&color=0D9373&labelColor=18181B" alt="npm version" /></a>
12
+ <a href="https://www.npmjs.com/package/mint"><img src="https://img.shields.io/npm/dm/mint?style=flat&label=downloads&color=0D9373&labelColor=18181B" alt="Monthly downloads" /></a>
13
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%E2%89%A5%2020.17-0D9373?style=flat&labelColor=18181B" alt="Node.js 20.17 or later" /></a>
14
+ <a href="https://x.com/mintlify"><img src="https://img.shields.io/badge/follow-%40mintlify-0D9373?style=flat&logo=x&logoColor=white&labelColor=18181B" alt="Follow Mintlify on X" /></a>
19
15
  </p>
20
16
  <p>
21
-
22
- [![Website](https://img.shields.io/website?url=https%3A%2F%2Fmintlify.com&logo=mintlify)](https://mintlify.com) [![Tweet](https://img.shields.io/twitter/url?url=https%3A%2F%2Fmintlify.com%2F)](https://twitter.com/intent/tweet?url=&text=Check%20out%20%40mintlify)
23
-
24
- </p>
25
- <p>
26
- <sub>
27
- Built with ❤︎ by
28
- <a href="https://mintlify.com">
29
- Mintlify
30
- </a>
31
- </sub>
17
+ <a href="https://mintlify.com/docs/quickstart"><b>Quickstart</b></a>
18
+ &nbsp;&middot;&nbsp;
19
+ <a href="https://mintlify.com/docs/cli/commands"><b>Command reference</b></a>
20
+ &nbsp;&middot;&nbsp;
21
+ <a href="https://app.mintlify.com"><b>Dashboard</b></a>
22
+ &nbsp;&middot;&nbsp;
23
+ <a href="https://mintlify.com/docs/changelog"><b>Changelog</b></a>
32
24
  </p>
33
25
  </div>
34
26
 
35
- ### Installation
27
+ <br />
36
28
 
37
- ```
29
+ ## Quickstart
30
+
31
+ **1. Install the CLI**
32
+
33
+ ```sh
38
34
  npm i -g mint
39
35
  ```
40
36
 
41
- Requires Node 20.17 or higher. LTS versions recommended. Node 25+ is not supported.
42
-
43
- ### Local preview
37
+ **2. Create a docs site**
44
38
 
45
- #### `mint dev`
39
+ ```sh
40
+ mint new my-docs
41
+ cd my-docs
42
+ ```
46
43
 
47
- Run at the root of your Mintlify project to preview changes locally. Opens in the browser by default.
44
+ **3. Preview it locally**
48
45
 
49
- ```
46
+ ```sh
50
47
  mint dev
51
48
  ```
52
49
 
53
- **Options**
50
+ Your site opens at [localhost:3000](http://localhost:3000) and reloads as you edit.
54
51
 
55
- | Flag | Description | Default |
56
- | --------------------- | --------------------------------------- | ------- |
57
- | `--port <number>` | Port to run the preview on | `3000` |
58
- | `--no-open` | Skip opening the preview in the browser | — |
59
- | `--groups <group...>` | Mock user groups for local testing | — |
60
- | `--disable-openapi` | Disable OpenAPI file generation | — |
52
+ **4. Ship it**
61
53
 
62
- **Custom port**
54
+ Push the folder to GitHub and [connect the repository](https://app.mintlify.com) in the dashboard. Every push to your default branch deploys.
63
55
 
64
- ```
65
- mint dev --port 3333
66
- ```
56
+ > **Requirements:** Node.js 20.17 or later. LTS versions are recommended; Node 25 is not supported.
67
57
 
68
- If the specified port is already in use, the CLI automatically tries the next available port.
58
+ <br />
69
59
 
70
- **Troubleshooting**
60
+ ## Commands
71
61
 
72
- If `mint dev` is not working, try these steps in order:
62
+ ### Write and preview
73
63
 
74
- 1. Make sure you are running in a folder with a `docs.json` file.
75
- 2. Run `mint update` to get the latest version of the CLI.
76
- 3. Make sure you are using Node 20.17 or higher.
77
- 4. Delete the contents of the `.mintlify` folder in your home directory.
64
+ | Command | What it does |
65
+ | -------------- | -------------------------------------------- |
66
+ | `mint new` | Scaffold a new docs site |
67
+ | `mint dev` | Preview locally with live reload |
68
+ | `mint format` | Format your MDX files |
69
+ | `mint og` | Render a page's social preview image |
70
+ | `mint migrate` | Guide a migration from another docs platform |
78
71
 
79
- ### Validate and check
72
+ ### Check
80
73
 
81
- #### `mint validate`
74
+ | Command | What it does |
75
+ | ------------------- | ------------------------------------------------ |
76
+ | `mint validate` | Content, OpenAPI, and strict build checks for CI |
77
+ | `mint broken-links` | Find broken links, anchors, and redirects |
78
+ | `mint a11y` | Check color contrast and alt text |
79
+ | `mint score` | Check how agent-ready a live docs site is |
82
80
 
83
- Validate the documentation build in strict mode. Exits with a non-zero code on any warning or error — useful in CI.
81
+ ### Publish
84
82
 
85
- ```
86
- mint validate
87
- ```
83
+ | Command | What it does |
84
+ | -------------------------- | ------------------------------------------- |
85
+ | `mint add-domain <domain>` | Add a custom domain and get its DNS records |
86
+ | `mint export` | Export a static zip for air-gapped hosting |
88
87
 
89
- **Options**
88
+ ### Insights and automation
90
89
 
91
- | Flag | Description |
92
- | --------------------- | ------------------------------------------------------------------ |
93
- | `--groups <group...>` | Mock user groups for validation |
94
- | `--disable <rules>` | Turn off rules or groups, e.g. `--disable openapi` to skip OpenAPI |
90
+ | Command | What it does |
91
+ | ------------------ | ---------------------------------------------------- |
92
+ | `mint analytics` | Query views, searches, feedback, and assistant chats |
93
+ | `mint automations` | Create, list, and delete automations |
95
94
 
96
- #### `mint broken-links`
95
+ ### AI agents
97
96
 
98
- Check for broken internal links in your project.
97
+ | Command | What it does |
98
+ | ------------------- | ---------------------------------------------------------- |
99
+ | `mint agent setup` | Connect Claude Code, Codex, or Cursor to Mintlify |
100
+ | `mint instructions` | Print Mintlify workflow instructions for agents |
101
+ | `mint deploy` | Provision a site with no account and get push instructions |
102
+ | `mint claim` | Move a `mint deploy` site into a Mintlify account |
99
103
 
100
- ```
101
- mint broken-links
102
- ```
103
-
104
- **Options**
104
+ ### Account and CLI
105
105
 
106
- | Flag | Description |
107
- | ------------------ | ------------------------------------------------------------------------- |
108
- | `--check-anchors` | Also validate anchor links like `link-path#section` against heading slugs |
109
- | `--check-external` | Also check external links for broken URLs |
110
- | `--check-snippets` | Also check links inside `<Snippet>` components |
106
+ | Command | What it does |
107
+ | ------------------------------- | ---------------------------------------------------- |
108
+ | `mint signup` / `mint login` | Create an account or sign in from the browser |
109
+ | `mint status` / `mint logout` | See who you're signed in as, or sign out |
110
+ | `mint config set <key> <value>` | Save defaults like `subdomain`, `dateFrom`, `dateTo` |
111
+ | `mint update` | Update the CLI to the latest version |
112
+ | `mint version` | Print the CLI and client versions |
111
113
 
112
- #### `mint openapi-check <filename>`
114
+ Run `mint <command> --help` for every flag, or read the [full command reference](https://mintlify.com/docs/cli/commands).
113
115
 
114
- Check an OpenAPI spec for errors. Accepts a local file path or a URL.
116
+ <br />
115
117
 
116
- ```
117
- mint openapi-check ./openapi.yaml
118
- mint openapi-check https://petstore3.swagger.io/api/v3/openapi.json
119
- ```
118
+ ## Command details
120
119
 
121
- #### `mint a11y`
120
+ <details>
121
+ <summary><b><code>mint dev</code></b> &nbsp;Local preview</summary>
122
+ <br />
122
123
 
123
- Check for accessibility issues in your documentation. Also available as `mint accessibility`, `mint accessibility-check`, and `mint a11y-check`.
124
+ Run from the folder that contains your `docs.json`.
124
125
 
125
- ```
126
- mint a11y
126
+ ```sh
127
+ mint dev
128
+ mint dev --port 3333 --no-open
129
+ mint dev --groups admin beta
127
130
  ```
128
131
 
129
- **Options**
132
+ | Flag | Description | Default |
133
+ | --------------------- | ------------------------------------------------------- | ------- |
134
+ | `--port <number>` | Port for the preview. Tries the next free port if taken | `3000` |
135
+ | `--no-open` | Don't open the browser | |
136
+ | `--host` | Expose the preview on your local network | |
137
+ | `--groups <group...>` | Preview as readers in these user groups | |
138
+ | `--signed-in` | Preview as a signed-in reader with no groups | |
139
+ | `--disable-openapi` | Skip OpenAPI processing for faster startup | |
140
+ | `--disable-prefetch` | Turn off navigation prefetching on very large sites | |
141
+ | `--multi-repo` | Compose docs from several local repositories | |
130
142
 
131
- | Flag | Description |
132
- | ----------------- | ----------------------------------------- |
133
- | `--skip-contrast` | Skip color contrast checks |
134
- | `--skip-alt-text` | Skip alt text checks on images and videos |
143
+ </details>
135
144
 
136
- ### Create and manage content
145
+ <details>
146
+ <summary><b><code>mint validate</code></b> &nbsp;One check for CI</summary>
147
+ <br />
137
148
 
138
- #### `mint new [directory]`
149
+ Runs content rules and OpenAPI checks, then a strict build. Exits `0` when clean, `1` on errors, and `2` if validation couldn't run.
139
150
 
140
- Create a new Mintlify documentation site. Defaults to the current directory.
141
-
142
- ```
143
- mint new
144
- mint new my-docs
151
+ ```sh
152
+ mint validate
153
+ mint validate --no-build --format json
154
+ mint validate --files "guides/**/*.mdx" --fix
145
155
  ```
146
156
 
147
- **Options**
157
+ | Flag | Description |
158
+ | --------------------- | --------------------------------------------------------- |
159
+ | `--files <glob...>` | Limit page checks to these files or globs |
160
+ | `--no-build` | Skip the strict build for a fast, offline check |
161
+ | `--fix` | Apply available fixes and check again |
162
+ | `--disable <rules>` | Turn off rules or groups, for example `--disable openapi` |
163
+ | `--enable <rules>` | Turn rules back on, for example after `--disable all` |
164
+ | `--format json` | Print a single JSON report for scripts and agents |
165
+ | `--groups <group...>` | Validate as readers in these user groups |
148
166
 
149
- | Flag | Description |
150
- | ---------------- | ----------------------------------- |
151
- | `--theme <name>` | Theme for the documentation site |
152
- | `--name <name>` | Name of the documentation project |
153
- | `--force` | Initialize in a non-empty directory |
167
+ </details>
154
168
 
155
- #### `mint rename <from> <to>`
169
+ <details>
170
+ <summary><b><code>mint broken-links</code></b> &nbsp;Link checker</summary>
171
+ <br />
156
172
 
157
- Rename a file and update all internal references to it throughout the project.
158
-
159
- ```
160
- mint rename introduction.mdx overview.mdx
173
+ ```sh
174
+ mint broken-links
175
+ mint broken-links --check-anchors --check-external
176
+ mint broken-links --links-to /guides/setup
161
177
  ```
162
178
 
163
- **Options**
179
+ | Flag | Description |
180
+ | ------------------- | --------------------------------------------------------- |
181
+ | `--files <glob...>` | Only check these files or globs |
182
+ | `--check-anchors` | Also check `#section` links against heading slugs |
183
+ | `--check-external` | Also check external URLs |
184
+ | `--check-snippets` | Also check links inside `<Snippet>` components |
185
+ | `--check-redirects` | Also check that `docs.json` redirects point to real pages |
186
+ | `--links-to <page>` | List every internal link that points to a page instead |
164
187
 
165
- | Flag | Description |
166
- | --------- | ---------------------------- |
167
- | `--force` | Rename files and skip errors |
188
+ </details>
168
189
 
169
- #### `mint scrape <url>`
190
+ <details>
191
+ <summary><b><code>mint og</code></b> &nbsp;Social preview images</summary>
192
+ <br />
170
193
 
171
- Scrape an entire documentation site and convert it to Mintlify MDX files. Also available as `mint scrape site <url>`.
194
+ Renders a page's OG image with the same code as your live site, using the `thumbnails` settings in `docs.json`.
172
195
 
173
- ```
174
- mint scrape https://example.com/docs
196
+ ```sh
197
+ mint og guides/webhooks
198
+ mint og --preset headline --surface brand
199
+ mint og --output og.png --no-open
175
200
  ```
176
201
 
177
- **Options**
202
+ | Flag | Description |
203
+ | --------------------- | --------------------------------------------- |
204
+ | `--preset <name>` | Try a preset without editing `docs.json` |
205
+ | `--surface <name>` | Try a surface without editing `docs.json` |
206
+ | `--appearance <name>` | Try an appearance without editing `docs.json` |
207
+ | `--output <path>` | Where to write the PNG |
208
+ | `--no-open` | Don't open the image after rendering |
178
209
 
179
- | Flag | Description |
180
- | ----------------- | -------------------------------------------------------------------------------- |
181
- | `--filter <path>` | Only scrape URLs matching this path (e.g. `/docs` matches `/docs` and `/docs/*`) |
210
+ </details>
182
211
 
183
- #### `mint scrape page <url>`
212
+ <details>
213
+ <summary><b><code>mint analytics</code></b> &nbsp;Docs analytics in your terminal</summary>
214
+ <br />
184
215
 
185
- Scrape a single documentation page and convert it to an MDX file.
216
+ Requires `mint login` and a Pro or Enterprise plan.
186
217
 
187
- ```
188
- mint scrape page https://example.com/docs/introduction
218
+ ```sh
219
+ mint analytics stats --from 2026-01-01
220
+ mint analytics search --format graph
221
+ mint analytics feedback --type page --format json
222
+ mint analytics conversation list
189
223
  ```
190
224
 
191
- #### `mint scrape openapi <location>`
225
+ Every subcommand accepts `--subdomain`, `--from`, `--to`, and `--format <table|plain|json|graph>`.
192
226
 
193
- Generate MDX files from an OpenAPI spec. Accepts a local file path or a URL.
227
+ </details>
194
228
 
195
- ```
196
- mint scrape openapi ./openapi.yaml
197
- mint scrape openapi https://petstore3.swagger.io/api/v3/openapi.json
229
+ <details>
230
+ <summary><b><code>mint export</code></b> &nbsp;Air-gapped hosting</summary>
231
+ <br />
232
+
233
+ ```sh
234
+ mint export
235
+ mint export --output docs.zip --base-path /docs
198
236
  ```
199
237
 
200
- **Options**
238
+ | Flag | Description | Default |
239
+ | --------------------- | -------------------------------------- | ------------ |
240
+ | `--output <path>` | Output zip file | `export.zip` |
241
+ | `--base-path <path>` | Path prefix the export is served under | |
242
+ | `--groups <group...>` | Export as readers in these user groups | |
243
+ | `--disable-openapi` | Skip OpenAPI file generation | |
201
244
 
202
- | Flag | Description | Default |
203
- | ----------------- | ----------------------------------- | ------- |
204
- | `--outDir <path>` | Folder to write the generated files | — |
205
- | `--overwrite` | Overwrite existing files | `false` |
245
+ The zip includes a `serve.js` server and a `README.md` with the rules for hosting it yourself.
206
246
 
207
- #### `mint migrate-mdx`
247
+ </details>
208
248
 
209
- Migrate MDX OpenAPI endpoint pages to `x-mint` extensions and `docs.json`.
249
+ <details>
250
+ <summary><b><code>mint agent setup</code></b> &nbsp;Skills and MCP for coding agents</summary>
251
+ <br />
210
252
 
211
- #### `mint upgrade`
253
+ Installs [Mintlify skills](https://mintlify.com/docs/ai/skillmd) and configures the [Admin MCP](https://mintlify.com/docs/ai/mintlify-mcp) for Claude Code, Codex, or Cursor. Requires Node.js 22.20 or later.
212
254
 
213
- Upgrade `mint.json` to `docs.json`. Creates a `docs.json` from your existing `mint.json`.
255
+ ```sh
256
+ mint agent setup
257
+ mint agent setup --agent claude-code codex cursor
258
+ mint agent setup --agent codex --global
259
+ ```
214
260
 
215
- #### `mint workflow`
261
+ Setup applies to the current project by default; `--global` configures your user account. After setup, finish the OAuth sign-in inside each agent.
216
262
 
217
- Add a workflow to your documentation repository.
263
+ </details>
218
264
 
219
- ### Export
265
+ <br />
220
266
 
221
- #### `mint export`
267
+ ## Run checks in CI
222
268
 
223
- Export a static site as a zip file for air-gapped deployment.
269
+ ```yaml
270
+ name: Docs
271
+ on: pull_request
224
272
 
273
+ jobs:
274
+ check:
275
+ runs-on: ubuntu-latest
276
+ steps:
277
+ - uses: actions/checkout@v5
278
+ - uses: actions/setup-node@v5
279
+ with:
280
+ node-version: 22
281
+ - run: npx mint validate
282
+ - run: npx mint broken-links --check-anchors
225
283
  ```
226
- mint export
227
- mint export --output docs.zip
228
- ```
229
-
230
- **Options**
231
-
232
- | Flag | Description | Default |
233
- | --------------------- | ------------------------------- | ------------ |
234
- | `--output <path>` | Output zip file path | `export.zip` |
235
- | `--groups <group...>` | Mock user groups for export | — |
236
- | `--disable-openapi` | Disable OpenAPI file generation | — |
237
284
 
238
- The zip includes a `serve.js` server and a `README.md` with the rules for hosting the export on your own server: serve `<path>/index.html` for pages, answer requests with an `RSC: 1` header or `_rsc` query parameter with `<path>/index.txt` as `text/x-component` so client-side navigation works, and cache `_next/static` and `_mintlify/export-assets` as immutable.
285
+ <br />
239
286
 
240
- ### CLI management
287
+ ## Troubleshooting
241
288
 
242
- #### `mint update`
289
+ If `mint dev` isn't working, try these in order:
243
290
 
244
- Update the CLI to the latest version.
291
+ 1. Run it from the folder that contains your `docs.json`.
292
+ 2. Run `mint update` to get the latest CLI.
293
+ 3. Check that you're on Node.js 20.17 or later, and not Node 25.
294
+ 4. Delete the contents of the `~/.mintlify` folder and run `mint dev` again.
245
295
 
246
- #### `mint version`
296
+ Still stuck? Ask in [GitHub Discussions](https://github.com/orgs/mintlify/discussions).
247
297
 
248
- Display the current version of the CLI and client. Also available as `mint v`.
298
+ <br />
249
299
 
250
- ### Get Started
251
-
252
- [Create an account](https://mintlify.com/start) to start using Mintlify for your documentation.
300
+ <div align="center">
301
+ <a href="https://mintlify.com">
302
+ <img src="https://mintlify-assets.b-cdn.net/logo.svg" alt="Mintlify" width="24" height="24" />
303
+ </a>
304
+ <p>
305
+ <sub>
306
+ Built with &#10084;&#65038; by <a href="https://mintlify.com">Mintlify</a>
307
+ &nbsp;&middot;&nbsp;
308
+ <a href="https://mintlify.com/start">Create a free account</a>
309
+ &nbsp;&middot;&nbsp;
310
+ Licensed under <a href="https://www.elastic.co/licensing/elastic-license">Elastic License 2.0</a>
311
+ </sub>
312
+ </p>
313
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mint",
3
- "version": "4.3.84",
3
+ "version": "4.3.85",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -26,10 +26,10 @@
26
26
  "clean:all": "rimraf node_modules"
27
27
  },
28
28
  "dependencies": {
29
- "@mintlify/cli": "4.1.84"
29
+ "@mintlify/cli": "4.1.85"
30
30
  },
31
31
  "devDependencies": {
32
32
  "rimraf": "5.0.1"
33
33
  },
34
- "gitHead": "bb18598a66ab4080f7cda513d302de4ba80501af"
34
+ "gitHead": "f65baab732132078b63d2c33e1dda194828b08fd"
35
35
  }