lms is the CLI shipped with LM Studio for managing models, the local API server, logs, and agentic LM Link settings. It wraps lmstudio.js and targets LM Studio 0.2.22+.
Overview
The lms command talks to a running LM Studio, llmster, or Bionic installation to inspect status, start or stop the local API server, list downloaded models, load and unload checkpoints, and stream logs.
Subcommands expose JSON output for scripting, filter decision models, and bootstrap SDK projects. Agentic LM Link options let other devices interact with the desktop runtime when explicitly enabled, with warnings about local file and command access.
If the binary is missing from PATH after install, npx lmstudio install-cli can register it. Development builds live inside the lmstudio.js monorepo rather than as a standalone package.
Key features
- Local server start and stop
- Model list and load commands
- JSON scriptable output
- Log streaming
- LM Link agentic controls
- SDK project creation
Use cases
- Scripting local LLM loads
- Automating LM Studio servers
- Checking model inventory
- Terminal-driven inference setups
- CI hooks for local models