Skip to main content

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.

Most Jamdesk CLI problems have straightforward fixes. This page covers the issues that come up most often, along with the exact commands to resolve them. If something isn’t listed here, the diagnostic commands at the bottom of this page will help you dig deeper.

Common Issues

This error means the CLI cannot locate a docs.json file in the current directory. Jamdesk expects you to run commands from the root of your docs project — the folder that contains docs.json.Fix: run from the right directory
cd /path/to/your-docs
jamdesk dev
Fix: start a new project from scratchIf you don’t have a docs.json yet, create a new project with:
jamdesk init
If jamdesk dev exits immediately or fails to load, work through these steps in order:1. Check your environment
jamdesk doctor
This inspects your Node.js version, npm, and local configuration, and reports anything that looks wrong.2. Clear the cache
jamdesk clean
Removes cached files from ~/.jamdesk. A stale or corrupted cache is a common cause of startup failures.3. Run with verbose output
jamdesk dev --verbose
Prints detailed logs so you can see exactly where the server is failing.
Turbopack cache corruption typically occurs when the dev server is killed mid-build — for example, by a forced terminal close or a system sleep. When the cache is corrupted, the server may crash on startup or fail to compile pages.Fix: clear the cache and restart
jamdesk dev --clean
This clears the Turbopack cache before starting the server. You don’t need to run any other commands first — --clean handles everything in one step.
The first time you run jamdesk dev on a new machine or after a fresh install, the CLI installs its dependencies into ~/.jamdesk/node_modules. This is a one-time setup and can take a minute or two depending on your connection speed.Subsequent runs skip this step entirely and start up quickly. If every run feels slow, check whether your ~/.jamdesk directory is being excluded from disk caching by security software or a containerized environment.
If port 3000 is occupied by another process, the dev server won’t start on the default port. You have two options:Option 1: specify a different port
jamdesk dev --port 3001
Option 2: let Jamdesk find an open portThe dev server auto-increments the port number if the default is taken — just run jamdesk dev without specifying a port and the CLI will report which port it selected.To set a permanent default port, add "defaultPort" to your ~/.jamdeskrc file:
{
  "defaultPort": 3001
}
MDX treats < as the start of a JSX tag. Bare < characters in prose — such as in comparisons like <50% or <= threshold — will cause a parse error.Fix: escape the character or rewrite the phraseUse the HTML entity &lt; in place of <:
Performance improved by &lt;50% in early tests.
Or rewrite the phrase to avoid the symbol entirely:
Performance improved by less than 50% in early tests.
Find all MDX errors at once
jamdesk validate
This reports every MDX syntax error across your project, with file paths and line numbers, so you can fix them all before deploying.

Diagnostic Commands

When the issue isn’t immediately obvious, these two commands give you the clearest picture of what’s going wrong. jamdesk doctor — inspects your local environment and reports problems with your Node.js version, npm, CLI installation, and project configuration.
jamdesk doctor
jamdesk dev --verbose — runs the dev server with full logging enabled. Every step of startup, compilation, and hot-reload is printed to the terminal.
jamdesk dev --verbose

Getting More Help

If these steps don’t resolve your issue, the following resources are available:

Build docs developers (and LLMs) love