Jamdesk CLI includes a set of utility commands for keeping your environment healthy and your tooling up to date. These commands are smaller in scope than the core dev and deploy workflows, but they’re often the first thing to reach for when something isn’t working as expected — whether that’s a corrupted cache, a stale CLI version, or an OpenAPI spec that needs validation before it goes live.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jamdesk/jamdesk-cli/llms.txt
Use this file to discover all available pages before exploring further.
jamdesk doctor
jamdesk doctor inspects your local environment and reports anything that could prevent the CLI or dev server from working correctly. Run it as a first step whenever you encounter unexpected behavior.
The command checks:
- Node.js version — confirms you’re running v20.0.0 or higher, as required by the CLI
- Cache state — detects a corrupted or oversized
~/.jamdeskcache that might be causing slow builds - docs.json presence — verifies that a valid
docs.jsonexists in the current directory
jamdesk clean
jamdesk clean deletes the ~/.jamdesk cache directory, which stores downloaded dependencies and Turbopack build artifacts. This is the recommended fix when the dev server is slow to start or appears stuck due to a corrupted Turbopack state.
Turbopack cache corruption can happen when the dev server is killed mid-build. After running jamdesk clean, the next jamdesk dev invocation will reinstall dependencies to ~/.jamdesk/node_modules — this first run will be slower than usual, but subsequent runs will be fast again.
jamdesk update
jamdesk update upgrades the Jamdesk CLI to the latest published version. Use the --check flag if you want to see whether an update is available without actually installing it — useful in CI environments where you want to log the check without changing the installed tooling.
| Flag | Description |
|---|---|
--check | Report whether a newer version is available; do not install |
jamdesk openapi-check
jamdesk openapi-check validates a single OpenAPI spec file and reports a summary of its contents. It’s a quick way to confirm that a spec is well-formed before referencing it in docs.json or using it to generate API reference pages.
The command reports the number of endpoints, schemas, and tags found in the spec. If the file uses the older Swagger 2.0 format rather than OpenAPI 3.x, the command will emit a warning — Jamdesk supports Swagger 2.0, but upgrading to OpenAPI 3.x is recommended.
To validate all OpenAPI specs referenced in your
docs.json at once — along with your MDX syntax and navigation config — use jamdesk validate instead.