Documentation
Running LLMs Locally
User Interface
Advanced
Command Line Interface - lms
API
lms
— LM Studio's CLI
LM Studio ships with lms
, a command line tool for scripting and automating your local LLM workflows.
lms
is MIT Licensed and it is developed in this repository on GitHub: https://github.com/lmstudio-ai/lms
👉 You need to run LM Studio at least once before you can use lms
.
lms
lms
ships with LM Studio and can be found under /bin
in the LM Studio's working directory.
Use the following commands to add lms
to your system path.
lms
on macOS or LinuxRun the following command in your terminal:
lms
on WindowsRun the following command in PowerShell:
Open a new terminal window and run lms
.
This is the current output you will get:
lms
to automate and debug your workflowsThis will reflect the current LM Studio models directory, which you set in 📂 My Models tab in the app.
--gpu=1.0
means 'attempt to offload 100% of the computation to the GPU'.
This is useful if you want to keep the model identifier consistent.