hf-cli
What it does
hf-cli is a tool that helps you manage files and information on the Hugging Face Hub, a place where people share AI models, data, and other resources. You can use it to copy, download, upload, and organize these files.
When to use it
- βWhen you need to download an AI model to use in your project.
- βWhen you want to upload your own data or models to the Hugging Face Hub.
- βWhen you need to organize or check files already on the Hugging Face Hub.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hf-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow do I download the 'bert-base-uncased' language model from the Hugging Face Hub?β
5 new skills a week. 1 minute to read.
How it works
hf-cli works like a command-line 'assistant'. You type a command like 'hf download' followed by the name of what you want to download, and it handles the rest.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
Install: curl -LsSf https://hf.co/cli/install.sh | bash -s. <!-- security-allowlist: curl-pipe-bash -->
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.32.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 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 thehfCLI to the latest version.[--format [auto|human|agent|json|quiet]]hf upload REPO_IDβ Upload a file or a folder to the Hub. Recommended for single-commit uploads.[--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --format [auto|human|agent|json|quiet]]hf upload-large-folder REPO_ID LOCAL_PATHβ [Deprecated] Upload a large folder to the Hub. Usehf uploadinstead.[--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars --format [auto|human|agent|json|quiet]]hf versionβ Print information about the hf version.[--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]]hf auth logoutβ Logout from a specific token.[--token-name TEXT --format [auto|human|agent|json|quiet]]hf auth switchβ Switch between access tokens.[--token-name TEXT --add-to-git-credential --format [auto|human|agent|json|quiet]]hf auth tokenβ Print the current access token to stdout.[--format [auto|human|agent|json|quiet]]hf auth whoamiβ Find out which huggingface.co account you are logged in as.[--format [auto|human|agent|json|quiet]]
hf buckets β Commands to interact with buckets.
hf buckets cp SRCβ Copy files between local paths, repositories, and buckets.[--format [auto|human|agent|json|quiet]]hf buckets create BUCKET_IDβ Create a new bucket.[--private --region [us|eu] --exist-ok --format [auto|human|agent|json|quiet]]hf buckets delete BUCKET_IDβ Delete a bucket.[--yes --missing-ok --format [auto|human|agent|json|quiet]]hf buckets info BUCKET_IDβ Get info about a bucket.[--format [auto|human|agent|json|quiet]]hf buckets listβ List buckets or files in a bucket.[--human-readable --tree --recursive --search TEXT --format [auto|human|agent|json|quiet]]hf buckets move FROM_ID TO_IDβ Move (rename) a bucket to a new name or namespace.[--format [auto|human|agent|json|quiet]]hf buckets remove ARGUMENTβ Remove files from a bucket.[--recursive --yes --dry-run --include TEXT --exclude TEXT --format [auto|human|agent|json|quiet]]hf buckets settings BUCKET_IDβ Update bucket settings (visibility).[--private --public --format [auto|human|agent|json|quiet]]hf buckets 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 cache β Manage local cache directory.
β¦
FAQ
What is the Hugging Face Hub?
It's an online repository where researchers and developers share machine learning models, datasets, and applications.
What does 'command line' mean?
It's a way to interact with your computer by typing commands instead of using a mouse and graphical menus.
What is an 'AI model'?
It's a computer program trained on a lot of data to perform specific tasks, like understanding text or generating images.
Details
Original description by the author
Curated upstream guidance for Hf Cli; use when the workflow matches the user goal.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4805
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.