Ollama Tool CLI 🦙
A modern CLI tool for managing Ollama models—back up, restore, update, and list your models with ease.
Installation
Using uv
uv add ollama-tool-cli
From source
git clone https://github.com/arian24b/ollamatools.git
cd ollamatools
uv sync
Requirements
- Python 3.10 or higher
- Ollama installed and running
Usage
Basic Commands
# Show help
ollama-tool-cli
# List all installed models
ollama-tool-cli list
# Update all models
ollama-tool-cli update
# Update a specific model
ollama-tool-cli update llama3.2
# Backup all models to default location (~/Downloads/ollama_models_backup)
ollama-tool-cli backup
# Backup to custom path
ollama-tool-cli backup --path /path/to/backup
# Backup a specific model
ollama-tool-cli backup --model llama3.2
# Backup with parallel jobs
ollama-tool-cli backup --jobs 4
# Run backup in background
ollama-tool-cli backup --background
# Restore from backup
ollama-tool-cli restore /path/to/backup.zip
# Restore all backups in a directory
ollama-tool-cli restore /path/to/backup_dir
# Show installation information and version
ollama-tool-cli info
# Show log paths
ollama-tool-cli logs
# Follow logs
ollama-tool-cli logs --follow
Command Details
list
Display all installed Ollama models with their versions.
update [model]
Update one model or all models. If no model name is provided, all installed models are updated.
--jobs, -j: Number of parallel jobs--background, -b: Run command in background
backup [--path PATH] [--model MODEL]
Back up Ollama models to zip files. By default, all models are backed up to ~/Downloads/ollama_models_backup.
--path, -p: Custom backup directory path--model, -m: Backup only a specific model--jobs, -j: Number of parallel jobs--background, -b: Run command in background
restore <path>
Restore Ollama models from a backup zip file or from a directory containing backup zip files.
--jobs, -j: Number of parallel jobs--background, -b: Run command in background
info
Show detailed installation information, including the Ollama version, models path, platform, and number of installed models.
logs
Show log file locations or follow logs.
--follow, -f: Follow the log output
Background logs
Background commands write to an OS-specific log directory with size-based rotation:
- macOS:
~/Library/Logs/ollama-tool-cli/ - Linux:
${XDG_STATE_HOME:-~/.local/state}/ollama-tool-cli/logs/ - Windows:
%LOCALAPPDATA%\ollama-tool-cli\Logs\
Development
Setup development environment
uv sync
Build the package
uv build
License
MIT License — see the LICENSE file for details.
Contributing
Contributions are welcome! Feel free to submit a pull request.
Related Projects
Explore other CLI tools by Arian Omrani:
- LinkCovery - Modern bookmark management CLI tool
- PEM - Python Execution Manager - Schedule and execute Python scripts
- ThroneTools - Cross-platform installer and management CLI for Throne
Metadata
Release files for ollama-tool-cli 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ollama_tool_cli-1.3.5.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ollama_tool_cli-1.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / ollama_tool_cli-1.3.5.tar.gz
| Download URL | ollama_tool_cli-1.3.5.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fb910d953f4b2807165fa45177232b6c4b688951ca0308f12ce16755bcacfff
|
|
BLAKE2b-256 checksum How to use checksums |
1a1d7381b0e20d694da80ddf6a3254e127cdca5210317a108088e3fbb8c0523a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logRelease files / ollama_tool_cli-1.3.5-py3-none-any.whl
| Download URL | ollama_tool_cli-1.3.5-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e271f419970995a1b218a453c74dbed1eb8f00d69941c6083414c9a04ac76b8c
|
|
BLAKE2b-256 checksum How to use checksums |
13f37e706d0bd38c84c9b1834cecd99b8608520fcec80e001fe4f158f3065991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency log