How to install LM Studio CLI in Linux Terminal

LM Studio CLI installation guide without a UI in a terminal instance.

  1. Open a new terminal to run LM Studio CLI, or use tmux

  2. Get LM Studioarrow-up-right or run below:

wget https://lmstudio.ai/download/latest/linux/x64?format=AppImage -O 'LM_Studio.AppImage'
chmod u+x ./LM_Studio.AppImage
  1. Run LM Studio via

You might see below:

If so, do the below instead:

  1. You then might see the below, especially if you are in a cloud instance with no desktop:

If so, install a "fake" desktop simulator within the terminal:

  1. Then use xvfb and launch LM Studio:

  1. Then get LM Studio's LMS / CLI in another terminal, or after CTRL+B+D for tmux

  1. Open a new terminal or tmux then run:

If you see -bash: lms: command not found please run lms in a new terminal window!

  1. Now download a model like Qwen3-Coder-Next like below (if you see the below stalling or not progressing, change the 2nd line to HF_HUB_DISABLE_XET=1 hf download unsloth/Qwen3-Coder-Next-GGUF or use export HF_HUB_DISABLE_XET=1

  1. We then import the model via:

Choose Don't categorize (will put the model under imported-models/uncategorized) (Option 3)

Last updated

Was this helpful?