LM Studio CLI (lms) is a TypeScript-based CLI tool to manage LM Studio, including starting a local server, listing/downloaded models, and managing projects via a monorepo workflow. It ships with LM Studio 0.2.22+ and offers commands like status, server start/stop, ls, ps, load, unload, create, and log stream.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
LM Studio CLI, implemented as a command line tool named lms, built to work with LM Studio. It ships with LM Studio 0.2.22 and newer and is part of the lmstudio.js monorepo.
How it works
The tool exposes subcommands accessed via lms <subcommand> with help output available through lms --help. It supports operations to check status, manage the local API server, list/downloaded models, load/unload models, create projects with the LM Studio SDK, and stream logs. Usage examples show commands for starting/stopping the server, listing models, and loading models with optional flags for automation.
Getting started
Installation guidance:
lms ships with LM Studio 0.2.22 and newer.
If you have trouble running the command, try running npx lmstudio install-cli to add it to path.
To check if bootstrapping worked, run in a new terminal window:
lms
Usage basics:
lms --help for a list of subcommands, and lms <subcommand> --help for details.
Frequently used commands include:
lms statusto check LM Studio statuslms server startandlms server stopto manage the local API serverlms lsandlms ls --jsonto list downloaded models (human and machine-readable)lms psandlms ps --jsonto list loaded models available for inferencelms loadto load a model (withlms load <model path> -yto load with maximum GPU acceleration without confirmation)lms unload <model identifier>andlms unload --allto remove modelslms createto create a new project with LM Studio SDKlms log streamto stream logs
Recent releases
There are no releases listed for this latest release set.
Traction
Not provided in the README. See repository metadata for stars and forks:
- stars: 5147
- forks: 432
- open_issues: 325
Behind the repo
Not provided in the README. Repository is described as part of the lmstudio.js monorepo with commands to build and test via the monorepo workflow.
Caveats
License: MIT Created: 2024-04-15 Last push: 2026-07-14 Language: TypeScript Topics include llm, lmstudio, nodejs, typescript "BUILD/CONTRIBUTING" notes indicate the CLI is not standalone and requires cloning the monorepo, with build steps:
# Clone and build the entire monorepo
git clone https://github.com/lmstudio-ai/lmstudio-js.git --recursive
cd lmstudio-js
npm install
npm run build
# Test your CLI changes
node publish/cli/dist/index.js <subcommand>
Example invocations:
node publish/cli/dist/index.js --help
node publish/cli/dist/index.js status






