LM Studio CLI (lms) provides a command-line interface for interacting with LM Studio, a desktop application for discovering, downloading, and running local large language models. It targets developers and power users who prefer terminal-based workflows for managing and serving LLMs.
How It Works
The CLI leverages lmstudio.js
to communicate with the LM Studio application's backend. This allows users to control model loading, unloading, server status, and log streaming directly from their terminal, offering a programmatic way to manage local LLM inference.
Quick Start & Requirements
npx lmstudio install-cli
.lms --help
in a new terminal window.Highlighted Details
lms ls
, lms ls --detailed
, lms ls --json
).lms ps
, lms load
, lms unload
).lms server start
, lms server stop
).lms log stream
).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The CLI's functionality is dependent on the LM Studio desktop application being installed and running. Specific version compatibility for the CLI with the application is not detailed.
1 day ago
1 day