[v1.7.0] pip-installable CLI extensions and multiple QoL improvements
This release brings major improvements to the hf CLI with extension discoverability, unified list commands, and multiple QoL improvements in the CLI.
🎉 The Homebrew formula of the Hugging Face CLI has been renamed to hf. Existing users just need to run brew update - Homebrew handles the rename automatically. New users can install with brew install hf.
The hf CLI extensions system gets a major upgrade in this release. Extensions can now be full Python packages (with a pyproject.toml) installed in isolated virtual environments, in addition to the existing shell script approach. This means extension authors can use Python dependencies without conflicting with the user's system. The install command auto-detects whether a GitHub repo is a script or a Python package and handles both transparently.
A new hf extensions search command lets users discover available extensions directly from the terminal by querying GitHub repositories tagged with the hf-extension topic. Results are sorted by stars and show whether each extension is already installed locally. Additionally, a comprehensive guide on how to build, publish, and make extensions discoverable has been added to the documentation.
# Install a Python-based extension
hf extensions install alvarobartt/hf-mem
# Discover available extensions
hf extensions search
NAME REPO STARS DESCRIPTION INSTALLED
------ ----------------------- ----- ----------------------------------- ---------
claude hanouticelina/hf-claude 2 Extension for `hf` CLI to launch... yes
agents hanouticelina/hf-agents HF extension to run local coding...
hf extensions search command by @julien-c in #3905📚 Documentation: Create a CLI extension
hf auth login CLI updateA new --force flag lets you explicitly go through the full login flow again when needed, for example to switch tokens.
# Already logged in — returns immediately
hf auth login
# Force re-login to switch tokens
hf auth login --force
--force flag by @hanouticelina in #3920📚 Documentation: CLI guide
hf-xet has been bumped to v1.4.2 with some optimizations:
The hf-xet bump also comes with a fix for deadlocks / stall on large file downloads.
See hf-xet release notes for more details.
list | ls alias by @julien-c in #3901hf papers ls by @julien-c in #3903--json shorthand for --format json by @Wauplin in #3919used_storage field to ModelInfo, DatasetInfo, and SpaceInfo by @julien-c in #3911hf by @julien-c in #3902Fetched April 7, 2026