CLI extracted from the huggingface_hub library to interact with the Hugging Face Hub
Actively maintained. Last release 4 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install hf
The official Python client for the Huggingface Hub.
CLI Documentation: https://huggingface.co/docs/huggingface_hub/guides/cli
Source Code: https://github.com/huggingface/huggingface_hub
[!TIP] This package provides a clean CLI interface via
uvx hf. It is not meant to be used as a package in scripts. Usehuggingface_hubinstead.
Usage
Install and use the CLI with uv:
uvx hf version
uvx hf auth whoami
uvx hf download MiniMaxAI/MiniMax-M2
Note
The legacy hf package (which provided a Mapping interface to HuggingFace) has been moved to hfdol.