Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
docs: troubleshooting update for jan CLI on Windows (#7736)
Louisf0a7e2731be3
diff --git a/docs/src/pages/docs/desktop/cli.mdx b/docs/src/pages/docs/desktop/cli.mdxindex 582cf22db..6775fc82c 100644--- a/docs/src/pages/docs/desktop/cli.mdx+++ b/docs/src/pages/docs/desktop/cli.mdx@@ -238,3 +238,9 @@ jan serve jan-code-4b --detach```bashjan models list```++---++## Troubleshooting++For common issues — including Windows-specific problems like `jan` opening the desktop app instead of the CLI — see the [Troubleshooting guide](/docs/desktop/troubleshooting#jan-cli).diff --git a/docs/src/pages/docs/desktop/troubleshooting.mdx b/docs/src/pages/docs/desktop/troubleshooting.mdxindex 3a3edbea0..6260a5f19 100644--- a/docs/src/pages/docs/desktop/troubleshooting.mdx+++ b/docs/src/pages/docs/desktop/troubleshooting.mdx@@ -393,6 +393,23 @@ The "Unexpected token" error usually relates to OpenAI API authentication or reg- Reduce GPU layers if using GPU acceleration- Verify adequate power supply (desktop systems)+## Jan CLI++### Windows: running `jan` opens the Jan application window++If typing `jan` in a terminal opens the Jan desktop app instead of the CLI, your system is resolving the `jan` command to the app launcher rather than the CLI binary.++To fix this, add the CLI binary directory to your `Path` environment variable:++1. Open **System Properties** → **Advanced** → **Environment Variables**+2. Under **System variables** (or **User variables**), select **Path** and click **Edit**+3. Click **New** and add:+ ```+ C:\Users\<username>\AppData\Local\Programs\Jan\resources\bin+ ```+ Replace `<username>` with your Windows username.+4. Click **OK** to save, then open a new terminal window and try `jan-cli` instead.+## Need Further Support?If these solutions don't work: