LM Studio CLI (lms) is a command-line tool designed to help developers manage and interact with LM Studio directly from the terminal. Built with lmstudio.js, it provides a streamlined interface for controlling local language models and API server operations. The CLI ships with LM Studio 0.2.22 and newer, making it easy to manage models without additional complex setup. With simple subcommands, users can check system status, start or stop the local server, and monitor logs in real time. It also enables users to load, unload, and list models for efficient inferencing workflows. Designed for developers working with LLMs, lms simplifies project creation and model management through a powerful yet intuitive command-line experience.
Features
- Check LM Studio status directly from the terminal using lms status.
- Start and stop the local API server with lms server start and lms server stop.
- List downloaded and loaded models, including JSON output for machine-readable integration.
- Load models with optional maximum GPU acceleration and unload individual or all models easily.
- Create new projects using the LM Studio SDK with the lms create command.
- Stream real-time logs from LM Studio using lms log stream for monitoring and debugging.