[PR #10425] cmd: added sorting and json formatting to list and ps commands #13239

Open
opened 2026-04-13 00:21:48 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10425

State: open
Merged: No


addressing #1876

ollama list --json will output the list in json format, using unix timestamps and raw byte count instead of human readable format

ollama list --sortby [order] accepts name (alphabetical), size, time

same changes apply to ollama ps, except it accepts name, size, processor and until for --sortby

also added new test for this

**Original Pull Request:** https://github.com/ollama/ollama/pull/10425 **State:** open **Merged:** No --- addressing [#1876](https://github.com/ollama/ollama/issues/1876) `ollama list --json` will output the list in json format, using unix timestamps and raw byte count instead of human readable format `ollama list --sortby [order]` accepts `name` (alphabetical), `size`, `time` same changes apply to `ollama ps`, except it accepts `name`, `size`, `processor` and `until` for `--sortby` also added new test for this
GiteaMirror added the pull-request label 2026-04-13 00:21:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13239