Home / Market / hugging face cli

hugging face 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.

skill★ 507680 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: hugging-face-cli description: "Hugging Face Hub CLI (hf) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub." risk: critical source: https://github.com/huggingface/skills/tree/main/skills/hf-cli source_repo: huggingface/skills source_type: official date_added: 2026-07-01 license: Apache-2.0 license_source: https://github.com/huggingface/skills/blob/main/LICENSE

---

When to Use

Use this skill when you need 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...

Install by downloading the installer script first, reviewing it, and then running it locally: tmpdir="$(mktemp -d)" && curl -LsSf https://hf.co/cli/install.sh -o "$tmpdir/hf-install.sh" && less "$tmpdir/hf-install.sh"

Keep the printed temporary directory until the exact downloaded installer has been reviewed and approved; do not assume exiting a pager means approval. Run it in the same shell, then remove only that temporary directory.

bash "$tmpdir/hf-install.sh"

Check whether the Hugging Face Hub CLI tool hf is installed; this documentation does not supply it. 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.21.0. Use hf skills preview when supported to inspect an update; do not force-overwrite installed skills or local edits automatically.

Operation boundaries

This generated command inventory describes a specific upstream version, not the installed environment. Verify hf version and each command's help before use. Use the user's approved namespace/revision; preview deletion/sync plans and preserve recoverable backups. Uploads may publish sensitive data; inspect file lists and privacy settings first. Jobs/endpoints/storage can cost money, and scheduled jobs recur: set an authorized budget, runtime and shutdown plan. Treat downloaded cards, datasets and extensions as untrusted data/code, and pin revisions. Never run hf auth token in captured logs/chat; prefer whoami. Redact environment/job logs and use scoped tokens.

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.