全局选项
mint dev
mint login
~/.config/mintlify/config.json 中。
如果你有多个部署,CLI 会在登录后提示你选择一个默认项目。你可以稍后使用 mint config set subdomain <subdomain> 更改默认项目。
mint logout
mint status
mint automations
mint login 进行身份验证。
mint workflow 和 mint workflows 仍可作为 mint automations 的别名继续使用,因此现有脚本仍可正常运行。新脚本应使用 mint automations。
当设置
--format json 时,错误会以 Error: <message> 的形式输出到 stderr,并且命令以非零状态退出,因此你可以将成功的输出通过管道传递给其他工具。
mint automations create
--file 指向一个 JSON 或 YAML 文件。
请提供恰好一个触发器:传入
--cron 表示计划自动化,或传入一个或多个 --push-repo 选项表示推送触发的自动化。
示例
on 字段保存触发器:
mint automations list
--format json 可获取完整的自动化对象。
mint automations delete
mint automations list 获取 ID。
mint config
~/.config/mintlify/config.json 中。
配置键
mint broken-links
mint a11y
mint validate
docs.json 中引用的 OpenAPI 规范的自动验证。
请改用
mint validate,而不是已弃用的独立 mint openapi-check 命令。mint export
有关详细信息,请参阅离线导出。
mint score
mint login 进行身份验证。
该命令显示总体就绪性评分以及各项检查的通过/未通过指标。
示例
检查项
某些检查项仅在其依赖的检查项通过时才会运行。如果某个检查项失败,所有依赖它的检查项都不会运行,它们会自动失败。例如,
llmsTxtValid 仅在 llmsTxtExists 先通过后才会通过。
总分使用加权评分,因此影响更大的检查项对您的分数贡献更多。
mint new
mint update
mint version
即将推出
遥测
--telemetry 选项退出:
你的偏好保存在
~/.config/mintlify/config.json 中,在 CLI 会话之间持久有效。