AI SummaryProvides the Hugging Face Hub CLI (`hf`) tool for downloading, uploading, and managing models, datasets, and Spaces directly from Claude Code. Essential for developers integrating Hugging Face resources into AI workflows.
Install
# Add to your project root as SKILL.md curl -o SKILL.md "https://raw.githubusercontent.com/huggingface/skills/main/skills/hf-cli/SKILL.md"
Description
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command.
Commands
• hf download REPO_ID — Download files from the Hub. • hf env — Print information about the environment. • hf sync — Sync files between local directory and a bucket. • hf upload REPO_ID — Upload a file or a folder to the Hub. Recommended for single-commit uploads. • hf upload-large-folder REPO_ID LOCAL_PATH — Upload a large folder to the Hub. Recommended for resumable uploads. • hf version — Print information about the hf version.
`hf auth` — Manage authentication (login, logout, etc.).
• hf auth list — List all stored access tokens. • hf auth login — Login using a token from huggingface.co/settings/tokens. • hf auth logout — Logout from a specific token. • hf auth switch — Switch between access tokens. • hf auth whoami — Find out which huggingface.co account you are logged in as.
`hf buckets` — Commands to interact with buckets.
• hf buckets cp SRC — Copy a single file to or from a bucket. • hf buckets create BUCKET_ID — Create a new bucket. • hf buckets delete BUCKET_ID — Delete a bucket. • hf buckets info BUCKET_ID — Get info about a bucket. • hf buckets list — List buckets or files in a bucket. • hf buckets move FROM_ID TO_ID — Move (rename) a bucket to a new name or namespace. • hf buckets remove ARGUMENT — Remove files from a bucket. • hf buckets sync — Sync files between local directory and a bucket.
`hf cache` — Manage local cache directory.
• hf cache ls — List cached repositories or revisions. • hf cache prune — Remove detached revisions from the cache. • hf cache rm TARGETS — Remove cached repositories or revisions. • hf cache verify REPO_ID — Verify checksums for a single repo revision from cache or a local directory.
Quality Score
Good
84/100
Trust & Transparency
Open Source — Apache-2.0
Source code publicly auditable
Verified Open Source
Hosted on GitHub — publicly auditable
Actively Maintained
Last commit Today
8.3k stars — Strong Community
490 forks