Setup & Installation
What This Skill Does
The `hf` CLI manages Hugging Face Hub repositories, models, datasets, and Spaces from the terminal. It handles downloads, uploads, cache, inference endpoints, jobs, and webhooks. It replaces the deprecated `huggingface-cli` command.
It covers the full Hub lifecycle in one binary, so you can download, upload, manage endpoints, run jobs, and handle auth without switching between the web UI, Python scripts, and separate tools.
When to use it
- Downloading a specific model revision to a local directory for offline use
- Uploading a large fine-tuned model with resumable multi-worker transfers
- Querying dataset parquet files with raw SQL via DuckDB without writing any code
- Deploying and scaling Inference Endpoints from the command line
- Syncing a local training output directory to a Hub repository bucket