Skip to main content
In this guide, we’ll walk through the most common Ollama CLI commands with practical examples. Whether you’re spinning up a model server, inspecting metadata, or managing local models, these commands form the foundation of any AI application workflow.

Table of Contents

  1. List All Commands
  2. Run a Model Interactively
  3. Stop a Running Model
  4. View Local Models
  5. Remove a Model
  6. Download Models Without Running
  7. Show Model Details
  8. Monitor Active Models
  9. Links and References

1. List All Commands

To discover every available Ollama subcommand, simply run:
You’ll see output similar to:
Append --help to any command to view detailed usage information, for example:

2. Run a Model Interactively

Launch an interactive chat session with a model (e.g., llama3.2):
Once running, type your queries:
To exit the chat, enter:

3. Stop a Running Model

Models continue running in the background even after you exit the chat interface. To completely terminate:
Leaving unused models running can consume memory and GPU resources. Always stop models you’re no longer using.

4. View Local Models

List all models downloaded on your machine:

5. Remove a Model

Free up disk space by deleting a model:
Confirm removal:

6. Download Models Without Running

Use ollama pull to fetch a model without immediately launching it. For example, to pull Mistral 7B:
The image shows a webpage for the Mistral AI 7B model, detailing its version, parameters, and license information. The page includes options for searching models and accessing tools.
You’ll see progress bars like:
Press Ctrl+C at any point to abort the download.

7. Show Model Details

Inspect model metadata, architecture, and licensing:
Understanding the license ensures you comply with usage restrictions.

8. Monitor Active Models

Similar to Docker’s ps, this command lists all currently running models:
After launching a model in one terminal:
Open another terminal and run:
To stop the model:
Verify no active models remain:

Watch Video

Practice Lab