Skip to main content
Streamline your local AI model workflow with the Ollama CLI. If you have experience with Docker, many of these commands will feel instantly familiar.
Most Ollama commands mirror Docker syntax for running, listing, and managing images—making it easy to get started if you’ve used Docker before.

Quick Reference


ollama run

Start a model session. If the specified model isn’t on your machine, Ollama will:
  1. Download its manifest and layers
  2. Verify the SHA-256 digests
  3. Save the manifest locally
  4. Launch an interactive chat interface

ollama stop

When you run a model in the background (e.g., via & on Unix), stop it gracefully with:
This frees up GPU/CPU resources immediately.

ollama list

List all models stored on your local host, along with their IDs, sizes, and last modification times. Use this to identify large or outdated models:

ollama rm

Remove a model from your system to reclaim disk space. You can always re-pull it later.

ollama pull

If you want to prefetch a model without starting it immediately, use:
After pulling, a subsequent ollama run MODEL_NAME will skip downloads.

ollama show

Inspect model metadata—such as license details and quantization format—without running it:
You can also view model details on the Ollama website or from within a running session via the /show command.

ollama ps

Similar to docker ps, this command lists all active model processes, their resource consumption, and remaining runtime:
Keep an eye on running models. Stopping unused ones prevents unnecessary GPU/CPU usage and conserves system memory.

These core commands will help you manage Ollama models effectively. Happy modeling!

Watch Video