Favicon of Hugging Face CLI

Hugging Face CLI

A command-line Hub client that downloads models and datasets to a local cache, manages repositories, and accesses hosted inference.

Screenshot of Hugging Face CLI website

Hugging Face CLI is a terminal tool for developers finding models and datasets for local AI projects or publishing their own work. It connects to the Hugging Face Hub, where those resources are hosted.

  • Search and download: Find models, datasets, and Spaces, then download individual files or entire repositories into a local cache.
  • Publish and collaborate: Upload files, manage repositories, share Model Cards, and discuss changes through pull requests and comments.
  • Hosted execution: Run inference on deployed models and submit Jobs to Hugging Face infrastructure; these capabilities execute remotely.
  • Coding agent support: Commands adapt their output for coding agents such as Claude Code, Codex, and Cursor.

The client runs on your machine, but Hub operations need an internet connection. Downloads stay in the local cache, while uploads go to the Hub. Tokens authenticate access to the hosted platform.

The CLI is open source under Apache 2.0 and shares a package with the huggingface_hub Python library. Developers can use either interface to access the Hub, whose repositories support file versioning for models and datasets, including large files.

Similar to Hugging Face CLI