Ollama on Windows — Complete CMD Guide

#ollama#ollama-model-manager#cmd
Ollama on Windows — Complete CMD Guide

Ollama can run natively on Windows, so WSL is not required. After installation, the

Code
ollama
command is available from CMD or PowerShell, and the local API normally runs at
Code
http://localhost:11434
. (Ollama)


1. Check if Ollama is installed

Open CMD:

cmd
ollama --version

If Ollama is installed, you should see something similar to:

text
ollama version ...

You can also check whether Windows can find the executable:

cmd
where ollama

Example:

text
C:\Users\YourName\AppData\Local\Programs\Ollama\ollama.exe

If you get:

text
'ollama' is not recognized as an internal or external command

Ollama is either not installed or its PATH is not available in the current terminal.


2. Check whether Ollama is already running

Run:

cmd
ollama ps

You can also test the API:

cmd
curl http://localhost:11434/api/tags

If Ollama is running, you should get JSON containing your installed models.

Ollama's Windows application normally runs in the background after installation. (Ollama)


3. Start Ollama manually from CMD

If Ollama isn't running, use:

cmd
ollama serve

You may see something like:

text
Listening on 127.0.0.1:11434

Important: keep this CMD window open while using the manually started server.

Ollama officially provides

Code
ollama serve
for starting the server without the desktop application. (Ollama)

Better workflow

Open CMD Window 1:

cmd
ollama serve

Then open CMD Window 2 and use:

cmd
ollama ps

or:

cmd
ollama ls

4. Check all installed models

Use:

cmd
ollama ls

You may see:

text
NAME              ID              SIZE      MODIFIED
gemma3:latest     abc123...       3.3 GB    ...
qwen3:8b          xyz456...       5.2 GB    ...

Older guides may show:

cmd
ollama list

but the current CLI documentation uses:

cmd
ollama ls

(Ollama)


5. Check currently running models

Use:

cmd
ollama ps

Example:

text
NAME          ID        SIZE      PROCESSOR    UNTIL
qwen3:8b      abc...    5.2 GB    100% GPU     ...

This is different from

Code
ollama ls
.

Code
ollama ls

Shows models installed on your computer.

Code
ollama ps

Shows models currently loaded/running.

(Ollama)


6. Get information about a model

For example:

cmd
ollama show qwen3:8b

Or:

cmd
ollama show gemma3

This can be useful for checking the model's configuration and information.


7. Download/install a new model

Use:

cmd
ollama pull MODEL_NAME

For example:

cmd
ollama pull gemma3

Or:

cmd
ollama pull qwen3:8b

Ollama downloads the model to your local machine. (Ollama)

After downloading, verify:

cmd
ollama ls

8. Run a model

After installing a model:

cmd
ollama run gemma3

For example:

cmd
ollama run qwen3:8b

You'll enter an interactive chat:

text
>>> Hello

Then Ollama responds locally.

The current CLI uses

Code
ollama run MODEL_NAME
. (Ollama)


9. Run a model with a prompt directly

You don't have to enter interactive mode.

Example:

cmd
ollama run gemma3 "Explain Docker in simple words"

Or:

cmd
ollama run qwen3:8b "Write a Python hello world program"

10. Stop a running model

First check:

cmd
ollama ps

Then:

cmd
ollama stop MODEL_NAME

Example:

cmd
ollama stop qwen3:8b

The official CLI provides

Code
ollama stop
for stopping a loaded model. (Ollama)


11. Remove/delete a model

First check the exact model name:

cmd
ollama ls

Then:

cmd
ollama rm MODEL_NAME

Example:

cmd
ollama rm qwen3:8b

Then verify:

cmd
ollama ls

The model should no longer appear.

Ollama's current CLI documents

Code
ollama rm
for removing a model. (Ollama)


12. Replace an old model with a new one

For example, suppose you currently have:

text
gemma3
qwen3:8b
llama3.2

First inspect:

cmd
ollama ls

Remove something you don't need:

cmd
ollama rm llama3.2

Install your new model:

cmd
ollama pull qwen3.5

Then run it:

cmd
ollama run qwen3.5

13. Update an existing model

You can simply pull it again:

cmd
ollama pull MODEL_NAME

Example:

cmd
ollama pull gemma3

Ollama can download the newer/different layers rather than unnecessarily downloading everything again. (Ollama Documentation)


14. See all available Ollama commands

Run:

cmd
ollama

This opens Ollama's interactive CLI menu in current versions. (Ollama)

Or use:

cmd
ollama --help

For a specific command:

cmd
ollama serve --help
cmd
ollama run --help
cmd
ollama pull --help

15. Check the Ollama API

Ollama normally exposes:

text
http://localhost:11434

Test it:

cmd
curl http://localhost:11434

You can also check installed models through the API:

cmd
curl http://localhost:11434/api/tags

If the server is working, you'll receive JSON.


16. Completely remove a model

If you want to remove a model and its downloaded data:

cmd
ollama rm MODEL_NAME

Example:

cmd
ollama rm gemma3

Then:

cmd
ollama ls

If it isn't listed anymore, the model has been removed.


17. Completely uninstall Ollama from Windows

If you want to remove Ollama itself, don't just delete

Code
ollama.exe
.

Go to:

Windows Settings → Apps → Installed apps → Ollama → Uninstall

The official Windows installer registers an uninstaller in Windows. (Ollama)

Ollama's Windows files include locations such as:

text
%LOCALAPPDATA%\Ollama
text
%LOCALAPPDATA%\Programs\Ollama

and models/configuration are normally under:

text
%HOMEPATH%\.ollama

(Ollama)


18. Reinstall Ollama

The easiest method is the official Windows installer:

Download Ollama for Windows

After installation, open a new CMD window:

cmd
ollama --version

Then:

cmd
ollama ls

Then install a model:

cmd
ollama pull gemma3

And run it:

cmd
ollama run gemma3

19. One complete CMD workflow

If you're setting up Ollama from scratch, this is the basic sequence:

cmd
ollama --version
cmd
ollama ls
cmd
ollama ps

If the server isn't running:

cmd
ollama serve

Open another CMD:

cmd
ollama ls

Install a model:

cmd
ollama pull gemma3

Check it:

cmd
ollama ls

Run it:

cmd
ollama run gemma3

After you're finished:

cmd
ollama ps

Stop the model:

cmd
ollama stop gemma3

If you don't want the model anymore:

cmd
ollama rm gemma3

20. Quick command cheat sheet

|Purpose|Command| |---|---| |Check installation|

Code
ollama --version
| |Find executable|
Code
where ollama
| |Start server|
Code
ollama serve
| |List installed models|
Code
ollama ls
| |List running models|
Code
ollama ps
| |Download model|
Code
ollama pull MODEL
| |Run model|
Code
ollama run MODEL
| |Stop model|
Code
ollama stop MODEL
| |Delete model|
Code
ollama rm MODEL
| |Model information|
Code
ollama show MODEL
| |Help|
Code
ollama --help
| |Test API|
Code
curl http://localhost:11434
| |List models via API|
Code
curl http://localhost:11434/api/tags
|

These commands correspond to the current Ollama CLI reference. (Ollama)


Recommended workflow

If your goal is simply "check what I have → remove old models → install a new model", use:

cmd
ollama --version
cmd
ollama ls
cmd
ollama ps

Then remove unwanted models:

cmd
ollama rm MODEL_NAME

Install the new one:

cmd
ollama pull NEW_MODEL

Verify:

cmd
ollama ls

Run:

cmd
ollama run NEW_MODEL

And when finished:

cmd
ollama stop NEW_MODEL

Note: On Windows, Ollama normally runs as a background application, so you usually don't need to manually run

Code
ollama serve
unless you're intentionally starting the server yourself or the background application isn't running. (Ollama)