Monday, 31 March 2025

ollama help: get information about any Ollama command

The ollama help command is your go-to tool for getting information about any Ollama command. If you're new to Ollama or unsure about how to use a specific command, ollama help provides a simple and structured guide to assist you.

$ollama help
Large language model runner

Usage:
  ollama [flags]
  ollama [command]

Available Commands:
  serve       Start ollama
  create      Create a model from a Modelfile
  show        Show information for a model
  run         Run a model
  stop        Stop a running model
  pull        Pull a model from a registry
  push        Push a model to a registry
  list        List models
  ps          List running models
  cp          Copy a model
  rm          Remove a model
  help        Help about any command

Flags:
  -h, --help      help for ollama
  -v, --version   Show version information

Use "ollama [command] --help" for more information about a command.

Get Help on Specific Commands:

To get more detailed help on a specific command, you can run:

ollama [command] --help

 For example, if you're curious about the run command, you'd run:


ollama run --help

 

This will provide additional information about how to use the run command, its options, and usage examples.

 

With the ollama help command, navigating Ollama and discovering all the available functionalities becomes simple and intuitive!

$ollama run --help
Run a model

Usage:
  ollama run MODEL [PROMPT] [flags]

Flags:
      --format string      Response format (e.g. json)
  -h, --help               help for run
      --insecure           Use an insecure registry
      --keepalive string   Duration to keep a model loaded (e.g. 5m)
      --nowordwrap         Don't wrap words to the next line automatically
      --verbose            Show timings for response

Environment Variables:
      OLLAMA_HOST                IP Address for the ollama server (default 127.0.0.1:11434)
      OLLAMA_NOHISTORY           Do not preserve readline history

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment