Agent Skill · Hugging Face

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingface-cli`.

Provider: Hugging Face Path in repo: skills/hf-cli/SKILL.md

Skill body

Install: curl -LsSf https://hf.co/cli/install.sh | bash -s.

The Hugging Face Hub CLI tool hf is available. IMPORTANT: The hf command replaces the deprecated huggingface-cli command.

Use hf --help to view available functions. Note that auth commands are now all under hf auth e.g. hf auth whoami.

Generated with huggingface_hub v1.17.0. Run hf skills add --force to regenerate.

Commands

hf auth — Manage authentication (login, logout, etc.).

hf buckets — Commands to interact with buckets.

hf cache — Manage local cache directory.

hf collections — Interact with collections on the Hub.

hf datasets — Interact with datasets on the Hub.

hf discussions — Manage discussions and pull requests on the Hub.

hf endpoints — Manage Hugging Face Inference Endpoints.

hf extensions — Manage hf CLI extensions.

hf jobs — Run and manage Jobs on the Hub.

hf models — Interact with models on the Hub.

hf papers — Interact with papers on the Hub.

hf repos — Manage repos on the Hub.

hf skills — Manage skills for AI assistants.

hf spaces — Interact with spaces on the Hub.

hf webhooks — Manage webhooks on the Hub.

Common options

Mounting repos as local filesystems

To mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use hf-mount. Files are fetched on demand. GitHub: https://github.com/huggingface/hf-mount

Install: curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh | sh

Some command examples:

Tips