liveBook · Manning

Lms CLI

As explained in Domain-Specific Small Language Models

LM Studio’s command-line tool used to manage local models and its local API server.

The lms CLI is LM Studio’s command-line tool for operating local models and the accompanying local, OpenAI-like API server. Installing the desktop application installs the CLI; it is also an open-source component that can be built from source. section 12.3

Use lms to:

lms server start

Use `lms server start` to expose the local API server for client applications. section 12.3

lms server stop

Use `lms server stop` to stop the local API server. section 12.3

How Domain-Specific Small Language Models covers it

How deep it goes
Covers installation, model lifecycle, server control, and raw I/O inspection without detailing command syntax beyond server start and stop.
Examples
Uses `lms server start` and `lms server stop` as concrete command examples.
What it assumes
Assumes LM Studio’s desktop application is installed and models have been downloaded locally.
What you can do after
Operate local models and expose or shut down LM Studio’s API server from the command line.
How it connects
Connects local models with REST APIs, client applications, GGUF models, and Apple MLX models.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Domain-Specific Small Language Models. The section links point to the parts of the book it draws on.