mirror of
https://github.com/lmstudio-ai/lms.git
synced 2026-09-30 21:34:14 +03:00
LM Studio CLI
https://lms.dev
`lms runtime get` and `lms runtime update` printed "Finalizing download..." while the server extracted and set up the runtime, which can take minutes for large runtimes such as vLLM. Print "Installing runtime... (this might take a while)" and "Runtime installed." instead. Model downloads keep the existing messages. |
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| src | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .nvmrc | ||
| .prettierrc.json | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
lms - Command Line Tool for LM Studio
Built with lmstudio.js
Installation
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 the bootstrapping was successful, run the following in a 👉 new terminal window 👈:
lms
Usage
You can use lms --help to see a list of all available subcommands.
For details about each subcommand, run lms <subcommand> --help.
Here are some frequently used commands:
lms status- To check the status of LM Studio.lms server start- To start the local API server.lms server stop- To stop the local API server.lms ls- To list all downloaded models.lms ls --json- To list all downloaded models in machine-readable JSON format.
lms ps- To list all loaded models available for inferencing.lms ps --json- To list all loaded models available for inferencing in machine-readable JSON format.
lms load- To load a modellms load <model path> -y- To load a model with maximum GPU acceleration without confirmation
lms unload <model identifier>- To unload a modellms unload --all- To unload all models
lms create- To create a new project with LM Studio SDKlms log stream- To stream logs from LM Studio
Contributing
The CLI is part of the lmstudio.js monorepo and cannot be built standalone.
Building and Testing the CLI
# 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:
node publish/cli/dist/index.js --help
node publish/cli/dist/index.js status
See CONTRIBUTING.md for more information.