Localized reading guide
hf-cliPurpose, usage and source
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.
Source retrieved:
- Source repository
- huggingface/skills
- SKILL.md
skills/hf-cli/SKILL.md- Repository stars
- 11,241
- Repository updated
- 2026-10-30
- Categories
- Data
- Last collected
License: Apache-2.0
Workflow excerpts are reading aids, not executable instructions from Codez. No third-party Skill was run to produce this page.
The purpose and workflow passages below are upstream material, organized and translated for reading. They are distinct from the separately labeled Codez editorial analysis.
What this Skill does
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.
How the upstream workflow works
Overview
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 v2.4.0. Run hf skills add --force to regenerate.
Commands
hf cp SRC — Copy files between local paths, repositories, and buckets. [--format [auto|human|agent|json|quiet]] hf download REPO_ID — Download files from the Hub. [--type [model|dataset|space|kernel] --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --max-workers INTEGER --format [auto|human|agent|json|quiet]]
hf auth — Manage authentication (login, logout, etc.).
hf auth list — List all stored access tokens. [--format [auto|human|agent|json|quiet]] hf auth login — Login from your browser, or using a token from huggingface.co/settings/tokens. [--add-to-git-credential --force --format [auto|human|agent|json|quiet]]
Requirements and setup
No short requirements passage was selected from this file. This does not mean the Skill has no dependencies. Check the repository setup instructions and referenced files.
Limits and quality checks
No separate limits passage was selected from this file. This does not mean the Skill is safe for every input or environment. Review the complete source and validate your own result.
Codez source review · CLI not run
The reviewed file says it was generated with huggingface_hub v2.4.0. For hf webhooks create and hf webhooks update, --domain lists repo or discussion (singular); the previously cited file used discussions. This source comparison does not identify your installed CLI version. Before copying arguments, check hf --help and the relevant command help in your own environment. Codez did not run the CLI or connect a Hugging Face account.
Start with a safe trial
- Check the supported host and the repository installation instructions. Keep the Skill directory and its referenced scripts, assets and documentation together; SKILL.md alone may omit dependencies.
- Give the agent your real input, desired output and acceptance criteria. Invocation syntax and available tools depend on the host; this site does not assume a universal install command.
- Try the source workflow in a disposable project or on a copy. Review operations that change files, remote services or billable resources before allowing them.
- Validate the output against the source quality checks and your own requirements. A successful trigger or a high repository Star count does not establish a correct result.
Read further in the source
- Overview
- 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 sandbox— Run and manage experimental sandboxes on Hugging Face Jobs.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
- Tips
Related Skills
Translation and scope
This reading guide selects passages from the pinned upstream SKILL.md. Translation is assisted. It is not a complete manual or a claim of tested compatibility. Read the original and its referenced files before use.
This introduction refers to the pinned version below; current repository activity and collection time are shown separately.
- Pinned source
- Read the original ↗
- Source retrieved
- Source commit
25910b3d0ba31a2ba102f901cdc9e008c278a69c- Source SHA-256
a60115f0ca8fa0468e2e7878730925fc4dbf2fffdbed15391d14429a9830c4c1