CLI
hf (huggingface_hub CLI)
The official Python client and `hf` command-line tool for interacting with the Hugging Face Hub (auth, downloading/uploading models, datasets, and Spaces).
- Type
- CLI
- Updated
- 2026-08-26
Install
via Positronick CLI
$positronick cli install hf-huggingface-hub-cli --run
Official
$pip install huggingface_hub
The official Apache-2.0 Python client for the Hugging Face Hub, with the bundled hf command-line tool. It downloads single files or whole repos via hf_hub_download and snapshot_download, uploads files or folders, creates and manages repos, searches models, datasets, and Spaces, and runs inference on hosted models. Authenticate with hf auth login; reach for it whenever you need to programmatically version, share, or pull ML artifacts, or integrate your own library with the Hub.