Automic VaultAutomic Vault

brew

hf mit Homebrew installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für hf in AI-Agent-Workflows.

Agent-Sicherheit

Antwort zur Agent-Sicherheit

hf controls Hugging Face model, dataset, and Space workflows.

Credential-Zugriff

Reads Hugging Face tokens, cache files, repository credentials, and environment variables.

Änderungen an Remote-Zustand

Can upload, delete, and change models, datasets, and Spaces.

Publish-/Artefakt-Risiko

Publishes ML artifacts, datasets, and app spaces.

Empfohlene Kontrolle

Gate upload, delete, login, repo, and token commands.

Hinweise für Agent-Nutzung

Allow public model inspection; require approval for uploads, deletes, private repo access, and token use.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install hf

local Homebrew formula metadata

Überblick

Paketzusammenfassung

Client library for huggingface.co hub

Befehle und Aliase

  • hf
  • huggingface-cli
  • tiny-agents

Verlauf

Projektgeschichte und Nutzung

`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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

`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.

Warum Paket-Nerds sich dafür interessieren

`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.

Zeitleiste

  • 2020s: `huggingface_hub` developed as Hugging Face's Python client for Hub models, datasets, Spaces, and repository operations.
  • 2025-07-25: Hugging Face announced that the CLI had been renamed from `huggingface-cli` to `hf`.
  • 2025: The CLI used a resource-action command pattern for auth, download, upload, repo, cache, and Jobs workflows.
  • 2025: Hugging Face described the Hub client v1.0 as the result of five years of building the foundation of open machine learning.
  • Package-manager era: Homebrew packages the CLI as `hf`, while the input still records the legacy `huggingface-cli` executable for compatibility.

Related projects

  • `hf` is related to `huggingface_hub`, the Hugging Face Hub, HfApi, HfFileSystem, Hugging Face Jobs, Spaces, Storage Buckets, Inference Endpoints, Tiny Agents, and the legacy `huggingface-cli` command.

Sicherheitslage

Noch keine Protected-Tool-Abdeckung gefunden

Für hf wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 4 Laufzeitabhängigkeiten.
  • Build-Metadaten listen 2 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

local files

Configuration and credential file locations

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 files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.cache/huggingface/token

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
hfcliglobales Executable
huggingface-clicliglobales Executable
tiny-agentscliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-25
Manager-Version1.24.0
Manager aktualisiert2026-07-18
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://huggingface.co/docs/huggingface_hub/guides/cli

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:hf
Version1.24.0
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/hf
Homepagehttps://huggingface.co/docs/huggingface_hub/guides/cli
Repositoryhttps://github.com/huggingface/huggingface_hub
Upstream-Dokumentationhttps://huggingface.co/docs/huggingface_hub/guides/cli
LizenzApache-2.0
Quellarchivhttps://files.pythonhosted.org/packages/df/9b/d3bb4e7d792835daf34dd7091bbc7d7b4e0437d9388f1ea7239cce49f478/huggingface_hub-1.24.0.tar.gz
Zuletzt aktualisiert2026-07-18T12:20:02Z
Pulseupdated
Abhängigkeitencertifi, git-lfs, libyaml, python@3.14
Build-Abhängigkeitenpkgconf, rust
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehf
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Combined YAML source

View the package source record on GitHub.

combined/hf.yml

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment