docs/cli.mdx
ollama run gemma3
ollama launch
Configure and launch external applications to use Ollama models. This provides an interactive way to set up and start integrations with supported apps.
Launch an integration interactively:
ollama launch
Launch a specific integration:
ollama launch claude
Launch with a specific model:
ollama launch claude --model qwen3.5
Configure without launching:
ollama launch droid --config
For multiline input, you can wrap text with """:
>>> """Hello,
... world!
... """
I'm a basic program that prints the famous "Hello, world!" message to the console.
ollama run gemma3 "What's in this image? /Users/jmorgan/Desktop/smile.png"
ollama run embeddinggemma "Hello world"
Output is a JSON array:
echo "Hello world" | ollama run nomic-embed-text
ollama pull gemma3
ollama rm gemma3
ollama ls
ollama signin
ollama signout
First, create a Modelfile
FROM gemma3
SYSTEM """You are a happy cat."""
Then run ollama create:
ollama create -f Modelfile
ollama ps
ollama stop gemma3
ollama serve
To view a list of environment variables that can be set run ollama serve --help