LM Studio’s lms command line ships with the app, so you can manage models without opening the GUI. lms get downloads a model from the model repository into LM Studio’s models folder, ready to load in the app or serve through the local server.
Download with lms get and confirm it
Open a terminal and run lms get <model-id>, using the model identifier as LM Studio shows it — for example a GGUF model path from Hugging Face. The download goes into the models folder LM Studio manages. Confirm it with lms ls, which lists the downloaded models, then load it in the app or start the server with it.
lms get lmstudio-community/gemma-2-9b-it-GGUF
lms ls
# then load it in the app, or:
lms load lmstudio-community/gemma-2-9b-it-GGUF
The model identifier matters: the server and the API use the identifier LM Studio reports, so copy it from lms ls or from GET /v1/models rather than typing it from memory. A download interrupted halfway must be re-run — check the file size against the expected size before loading a large model.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Download starts | lms get shows download progress | Check the model identifier spelling |
| Download finishes | The command exits without an error | Re-run it if the connection dropped |
| Listed | lms ls shows the model | Check the models folder location |
| Loads | The model loads in the app or server | Confirm the file is complete |
Expected result. We checked the LM Studio documentation referenced here, which describes the lms CLI and the model identifiers used by the local server. We did not download a model with lms on this machine.
Limits
This guide covers downloading with lms get only. The exact model identifiers change as the repository updates, so copy them from LM Studio itself. We did not test any download ourselves.
