Desktop model management is also available from a terminal. LM Studio bundles the lms CLI, and its help and model listings let you check that the command is available and can reach the running application.
The desktop app must have been launched at least once before lms is available. First-run setup offers Add 'lms' (LM Studio CLI) to your PATH; a terminal opened afterward can pick up that change without a separate CLI package.
A downloaded model occupies disk space, while a loaded model occupies memory. The two lists can differ, and an empty loaded-model list is a normal result when the app is open without a model in use.
Steps to verify the lms CLI in LM Studio:
- Run the bundled CLI's help command in a fresh terminal with LM Studio open. Example output:
$ lms --help Usage: lms [options] [command] Local models chat Start an interactive chat with a model get Search and download local models or Hub artifacts load Load a model unload Unload a model ls List the models available on disk ps List the models currently loaded in memory import Import a model file into LM Studio ##### snipped #####
The usage and command list show that your shell can run lms. A command not found error means the shell cannot locate it; the official CLI setup instructions cover availability after the app's first launch.
- List the models available on disk. Example output:
$ lms ls You have 1 models, taking up 84.11 MB of disk space. EMBEDDING PARAMS ARCH SIZE DEVICE text-embedding-nomic-embed-text-v1.5 Nomic BERT 84.11 MB Local
This list reflects the app's current models directory. Your entries and sizes will differ; a fresh installation may have only the automatically downloaded embedding model or no downloaded models.
- Check the running application's loaded-model list. Example output:
$ lms ps No models are currently loaded. To load a model, run: lms load <model path>A loaded model appears in the list when one is in memory. No models are currently loaded. is also a successful response from the application; a connection error is not. Help output followed by a model-list response confirms both CLI availability and communication with LM Studio.