mint 4.3.83 → 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.
- package/README.md +221 -160
- 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
|
-
<
|
|
5
|
+
<h1>mint</h1>
|
|
10
6
|
<p>
|
|
11
|
-
<
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
·
|
|
19
|
+
<a href="https://mintlify.com/docs/cli/commands"><b>Command reference</b></a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://app.mintlify.com"><b>Dashboard</b></a>
|
|
22
|
+
·
|
|
23
|
+
<a href="https://mintlify.com/docs/changelog"><b>Changelog</b></a>
|
|
32
24
|
</p>
|
|
33
25
|
</div>
|
|
34
26
|
|
|
35
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
### Local preview
|
|
37
|
+
**2. Create a docs site**
|
|
44
38
|
|
|
45
|
-
|
|
39
|
+
```sh
|
|
40
|
+
mint new my-docs
|
|
41
|
+
cd my-docs
|
|
42
|
+
```
|
|
46
43
|
|
|
47
|
-
|
|
44
|
+
**3. Preview it locally**
|
|
48
45
|
|
|
49
|
-
```
|
|
46
|
+
```sh
|
|
50
47
|
mint dev
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
Your site opens at [localhost:3000](http://localhost:3000) and reloads as you edit.
|
|
54
51
|
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
+
<br />
|
|
69
59
|
|
|
70
|
-
|
|
60
|
+
## Commands
|
|
71
61
|
|
|
72
|
-
|
|
62
|
+
### Write and preview
|
|
73
63
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
###
|
|
72
|
+
### Check
|
|
80
73
|
|
|
81
|
-
|
|
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
|
-
|
|
81
|
+
### Publish
|
|
84
82
|
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
88
|
+
### Insights and automation
|
|
90
89
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
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
|
-
|
|
95
|
+
### AI agents
|
|
97
96
|
|
|
98
|
-
|
|
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
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
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
|
-
|
|
114
|
+
Run `mint <command> --help` for every flag, or read the [full command reference](https://mintlify.com/docs/cli/commands).
|
|
113
115
|
|
|
114
|
-
|
|
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
|
-
|
|
120
|
+
<details>
|
|
121
|
+
<summary><b><code>mint dev</code></b> Local preview</summary>
|
|
122
|
+
<br />
|
|
122
123
|
|
|
123
|
-
|
|
124
|
+
Run from the folder that contains your `docs.json`.
|
|
124
125
|
|
|
125
|
-
```
|
|
126
|
-
mint
|
|
126
|
+
```sh
|
|
127
|
+
mint dev
|
|
128
|
+
mint dev --port 3333 --no-open
|
|
129
|
+
mint dev --groups admin beta
|
|
127
130
|
```
|
|
128
131
|
|
|
129
|
-
|
|
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
|
-
|
|
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
|
-
|
|
145
|
+
<details>
|
|
146
|
+
<summary><b><code>mint validate</code></b> One check for CI</summary>
|
|
147
|
+
<br />
|
|
137
148
|
|
|
138
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
mint
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
169
|
+
<details>
|
|
170
|
+
<summary><b><code>mint broken-links</code></b> Link checker</summary>
|
|
171
|
+
<br />
|
|
156
172
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
mint
|
|
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
|
-
|
|
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
|
-
|
|
166
|
-
| --------- | ---------------------------- |
|
|
167
|
-
| `--force` | Rename files and skip errors |
|
|
188
|
+
</details>
|
|
168
189
|
|
|
169
|
-
|
|
190
|
+
<details>
|
|
191
|
+
<summary><b><code>mint og</code></b> Social preview images</summary>
|
|
192
|
+
<br />
|
|
170
193
|
|
|
171
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
180
|
-
| ----------------- | -------------------------------------------------------------------------------- |
|
|
181
|
-
| `--filter <path>` | Only scrape URLs matching this path (e.g. `/docs` matches `/docs` and `/docs/*`) |
|
|
210
|
+
</details>
|
|
182
211
|
|
|
183
|
-
|
|
212
|
+
<details>
|
|
213
|
+
<summary><b><code>mint analytics</code></b> Docs analytics in your terminal</summary>
|
|
214
|
+
<br />
|
|
184
215
|
|
|
185
|
-
|
|
216
|
+
Requires `mint login` and a Pro or Enterprise plan.
|
|
186
217
|
|
|
187
|
-
```
|
|
188
|
-
mint
|
|
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
|
-
|
|
225
|
+
Every subcommand accepts `--subdomain`, `--from`, `--to`, and `--format <table|plain|json|graph>`.
|
|
192
226
|
|
|
193
|
-
|
|
227
|
+
</details>
|
|
194
228
|
|
|
195
|
-
|
|
196
|
-
mint
|
|
197
|
-
|
|
229
|
+
<details>
|
|
230
|
+
<summary><b><code>mint export</code></b> 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
247
|
+
</details>
|
|
208
248
|
|
|
209
|
-
|
|
249
|
+
<details>
|
|
250
|
+
<summary><b><code>mint agent setup</code></b> Skills and MCP for coding agents</summary>
|
|
251
|
+
<br />
|
|
210
252
|
|
|
211
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
263
|
+
</details>
|
|
218
264
|
|
|
219
|
-
|
|
265
|
+
<br />
|
|
220
266
|
|
|
221
|
-
|
|
267
|
+
## Run checks in CI
|
|
222
268
|
|
|
223
|
-
|
|
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
|
-
|
|
285
|
+
<br />
|
|
239
286
|
|
|
240
|
-
|
|
287
|
+
## Troubleshooting
|
|
241
288
|
|
|
242
|
-
|
|
289
|
+
If `mint dev` isn't working, try these in order:
|
|
243
290
|
|
|
244
|
-
|
|
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
|
-
|
|
296
|
+
Still stuck? Ask in [GitHub Discussions](https://github.com/orgs/mintlify/discussions).
|
|
247
297
|
|
|
248
|
-
|
|
298
|
+
<br />
|
|
249
299
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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 ❤︎ by <a href="https://mintlify.com">Mintlify</a>
|
|
307
|
+
·
|
|
308
|
+
<a href="https://mintlify.com/start">Create a free account</a>
|
|
309
|
+
·
|
|
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.
|
|
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.
|
|
29
|
+
"@mintlify/cli": "4.1.85"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"rimraf": "5.0.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "f65baab732132078b63d2c33e1dda194828b08fd"
|
|
35
35
|
}
|