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`.
Install
With your agent
Install OMGSkills skill "huggingface/skills:hf-cli" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/huggingface/skills /tmp/skills && ln -s /tmp/skills/skills/hf-cli ~/.claude/skills/hf-cli
From README
Commands hf cp SRC — Copy files between local paths, repositories, and buckets. [--format [auto|human|agent|json|quiet]] hf download REPOID — 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 env — Print information about the environment. [--format [auto|human|agent|json|quiet]] hf sync — Sync files between local directory and a bucket. [--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]] hf update — Update the hf CLI to the latest version. [--format [auto|human|agent|json|quiet]] hf upload REPOID — Upload a file or a folder to the Hub.
More from this repo
hf-mcp
Use Hugging Face Hub via MCP server tools.
huggingface-best
Used when the user asks about finding the best, top, or recommended model for a task, wants to know what AI model to...
huggingface-community-evals
Used to run evaluations for Hugging Face Hub models using inspect-ai and lighteval on local hardware.
