Accès aux identifiants
Reads Hugging Face tokens, cache files, repository credentials, and environment variables.
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de hf pour les workflows d'agents IA.
sécurité des agents
hf controls Hugging Face model, dataset, and Space workflows.
Reads Hugging Face tokens, cache files, repository credentials, and environment variables.
Can upload, delete, and change models, datasets, and Spaces.
Publishes ML artifacts, datasets, and app spaces.
Gate upload, delete, login, repo, and token commands.
Allow public model inspection; require approval for uploads, deletes, private repo access, and token use.
installation
brew install hflocal Homebrew formula metadata
aperçu
Client library for huggingface.co hub
historique
`hf` is the command-line interface distributed with Hugging Face's Hub client tooling. It gives terminal users and scripts direct access to authentication, downloads, uploads, repository management, cache management, Jobs, Spaces, datasets, models, buckets, and related Hub operations.
The command comes from the `huggingface_hub` project, Hugging Face's official Python client for the Hub. The library grew with the Hub itself: first as a Python API and `huggingface-cli` utility for interacting with models, datasets, and repositories, then as a broader developer tool for HTTP uploads, cache management, inference clients, Jobs, and agent workflows.
In July 2025 Hugging Face announced the rename from `huggingface-cli` to `hf`. The stated reason was both ergonomics and command organization: the old executable name was long, and the command surface had grown enough that the project adopted a clearer resource-action pattern such as `hf auth login`, `hf download`, `hf upload`, and `hf repo`.
The v1.0 Hugging Face Hub announcement described this CLI evolution as part of a five-year effort to make `huggingface_hub` the foundation layer for open machine learning. In that framing, the CLI moved from a simple command-line helper into a comprehensive ML operations interface, while legacy patterns such as the Git-based `Repository` class and older token helpers were removed in favor of newer HTTP-first APIs.
The CLI followed Hugging Face's rise as a central exchange for open ML artifacts. It is documented as part of `huggingface_hub`, installable through the core Python package, a standalone installer, `uvx hf`, and Homebrew. The Homebrew formula gives non-Python-first users a conventional package-manager route while still delivering the Hub CLI.
The executable list in the input records both `hf` and `huggingface-cli`, reflecting the transition period where existing automation may still call the legacy command name. Hugging Face's own blog post positioned the shorter command as the path for future CLI organization.
`hf auth login` stores credentials for Hub operations; the environment-variable documentation says the token path defaults to `$HF_HOME/token`, which is normally `~/.cache/huggingface/token`. Other common commands download and upload files, create and manage repositories, inspect or remove local cache entries, run Jobs, work with Spaces, and interact with models, datasets, collections, endpoints, buckets, and webhooks.
For package users, `hf` is the terminal complement to the Python API. It is used in CI pipelines, model publishing scripts, cache cleanup, large-folder uploads, private-repository downloads, and agent/tooling workflows that need a stable command-line interface to the Hub.
`hf` is significant because it packages a cloud ML platform into a single Unix-style command with predictable subcommands. It is also a snapshot of the Python packaging-to-system-packaging boundary: the same tool can arrive through pip, a standalone installer, uvx, or Homebrew, and its credential/cache conventions must behave consistently across those routes.
The rename from `huggingface-cli` to `hf` is package-nerd notable because it created the usual compatibility question around executable names, aliases, formula names, shell completion, and scripts written before the CLI redesign.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour hf. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Credential-bearing paths to review before unattended agent runs.
~/.cache/huggingface/tokenexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
hf | cli | exécutable global | |
huggingface-cli | cli | exécutable global | |
tiny-agents | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://huggingface.co/docs/huggingface_hub/guides/cli
métadonnées d'installation
| Clé du paquet | brew:hf |
|---|---|
| Version | 1.24.0 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/hf |
| Page d'accueil | https://huggingface.co/docs/huggingface_hub/guides/cli |
| Dépôt | https://github.com/huggingface/huggingface_hub |
| Docs amont | https://huggingface.co/docs/huggingface_hub/guides/cli |
| Licence | Apache-2.0 |
| Archive source | https://files.pythonhosted.org/packages/df/9b/d3bb4e7d792835daf34dd7091bbc7d7b4e0437d9388f1ea7239cce49f478/huggingface_hub-1.24.0.tar.gz |
| Dernière mise à jour | 2026-07-18T12:20:02Z |
| Pulse | updated |
| Dépendances | certifi, git-lfs, libyaml, python@3.14 |
| Dépendances de compilation | pkgconf, rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hf |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
piste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.