The `hf` command is the modern command-line interface for interacting with the Hugging Face Hub, providing tools to manage repositories, models, datasets, and Spaces.
> **IMPORTANT:** The `hf` command replaces the now deprecated `huggingface-cli` command.
***Jobs:** Run compute tasks on HF infrastructure. Includes `hf jobs uv` for running Python scripts with inline dependencies and `stats` for resource monitoring.
***Spaces:** Manage interactive apps. Includes `dev-mode` and `hot-reload` for Python files without full restarts.
### Storage & Automation
***Buckets:** Full S3-like bucket management (`create`, `cp`, `mv`, `rm`, `sync`).
***Cache:** Manage local storage with `list`, `prune` (remove detached revisions), and `verify` (checksum checks).
***Webhooks:** Automate workflows by managing Hub webhooks (`create`, `watch`, `enable`/`disable`).
***Collections:** Organize Hub items into collections (`add-item`, `update`, `list`).
---
## Advanced Usage & Tips
### Global Flags
*`--format json`: Produces machine-readable output for automation.
*`-q` / `--quiet`: Limits output to IDs only.
### Extensions & Skills
***Extensions:** Extend CLI functionality via GitHub repositories using `hf extensions install REPO_ID`.
***Skills:** Manage AI assistant skills with `hf skills add`.