The Ollama CLI
Harry
· 13 Sep 2026
· 2 views
Everyday Commands
ollama list # installed models
ollama pull llama3.2
ollama rm llama3.2 # delete a model
ollama cp llama3.2 mycopyRunning and Inspecting
ollama run llama3.2
ollama show llama3.2 # parameters, size, layer info
ollama ps # models loaded right now
ollama stop llama3.2 # unload from memoryollama show reveals the context length a model expects, total size and quantization, useful before tuning.
Inside the Chat REPL
The interactive prompt accepts slash commands:
/show info # details of the running model
/set temperature 0.7
/set num_ctx 4096
/exitHelp
ollama --help
ollama run --helpKey Points
- list, pull, rm and cp manage the local library.
- show and ps inspect models and memory.
- stop frees RAM used by a loaded model.
- /set tunes temperature and context in-chat.