ollama icon indicating copy to clipboard operation
ollama copied to clipboard

ollama list flags help

Open iplayfast opened this issue 5 months ago • 2 comments

There is no obvious way of seeing what flags are available for ollama list

ollama list --help
List models

Usage:
  ollama list [flags]

Aliases:
  list, ls

Flags:
  -h, --help   help for list

iplayfast avatar Jan 09 '24 20:01 iplayfast

There's actually only the -h flag for ollama list right now. Was there anything in particular that you were looking for?

pdevine avatar Jan 09 '24 23:01 pdevine

Yes there are several things that could be improved upon. Currently ollama list will display Name,ID,Size and modified in the current format with no variation. This is problematic.

  1. Name is case sensitive alphabetical using -I or --ignorecase for ignore case would make it case insensitive alphabetical
  2. currently the size of the model is in human readable format which uses things like 637 MB, 4.1 GB. If I want to send it through a sort program that is a problem. I propose using the -s or --size of bytes, otherwise the default is human readable.
  3. The modified column has things like 6 days ago, or 8 weeks ago which is good for humans, but not so good for other things. I propose -t or --time in the HH:MM:SS format and -ts or --seconds in the total number of seconds format
  4. There is no default sorting method. I propose -o or --order followed by the column number or negative column number for reverse sorting.
  5. Lastly -h or --help to show the command options.

iplayfast avatar Jan 10 '24 05:01 iplayfast