hugging-face-cli
Skill by sickn33
Guides an AI assistant through the Hugging Face Hub CLI (hf) to download, upload and manage models, datasets, Spaces, buckets, repos, papers and jobs. Aimed at developers and ML practitioners who work on the Hub from the terminal.
Install hugging-face-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/hugging-face-cli ~/.claude/skills/hugging-face-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/hugging-face-cli ~/.gemini/antigravity-cli/skills/hugging-face-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant the command reference for the Hugging Face Hub CLI, called hf. It covers downloading and uploading files, syncing local folders with buckets, and managing models, datasets, Spaces, repos, papers and jobs on the Hub. The source also lists commands for authentication, local cache management, collections, discussions and pull requests, and Inference Endpoints.
The hf command replaces the deprecated huggingface-cli. Commands are grouped by area, such as hf auth, hf buckets, hf cache and hf datasets, and many accept a --format option. The skill is written for developers and ML practitioners who manage Hugging Face Hub content from the command line. The source asks users to check hf version and each command's help first, pin revisions, and review uploads and costs before running changes.
Written from the project's SKILL.md and checked against it.
What it can do
- hf downloadDownloads files from a Hub repo, with filters for revision, include and exclude.
- hf uploadUploads a file or folder to the Hub in a single commit.
- hf upload-large-folderUploads a large folder to the Hub with resumable uploads.
- hf syncSyncs files between a local directory and a bucket, with a plan and apply step.
- hf authLogs in, switches and lists access tokens, and checks the signed-in account.
- hf cacheLists, verifies, removes and prunes cached repositories and revisions.
- hf collectionsCreates, updates, lists and edits items in Hub collections.
- hf discussionsLists, creates, comments on, merges and closes discussions and pull requests.
- hf endpointsDeploys, lists and deletes Hugging Face Inference Endpoints.
- hf datasets sqlRuns a raw SQL query with DuckDB against dataset parquet URLs.
What you need
- The hf command-line tool installed
- A Hugging Face account
- A Hugging Face access token for authenticated commands
Try asking
- Download only the safetensors files from a model repo at a pinned revision.
- Preview what hf sync would change in my bucket before applying it.
- List open pull requests on a dataset repo and summarize their titles.
Good to know
- The source says jobs, endpoints and storage can cost money, and scheduled jobs recur.
- Uploads may publish sensitive data, so file lists and privacy settings should be checked first.
- The command list describes one upstream version (huggingface_hub v1.21.0), so check hf --help on your install.
- The source says not to run hf auth token where output is logged or shared in chat.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/hugging-face-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md29 KB
Alternatives to hugging-face-cli
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
hugging-face-cli: common questions
Does this replace huggingface-cli?
Yes. The source says the hf command replaces the deprecated huggingface-cli command.
Can this skill delete or overwrite data on the Hub?
Some commands can, such as hf sync with --delete, hf buckets delete and hf cache rm. The source says to preview deletion and sync plans and keep recoverable backups.
How should I check my login?
The source recommends hf auth whoami to see which account is signed in, instead of printing the token with hf auth token.
How do I install hugging-face-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is hugging-face-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is hugging-face-cli safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to hugging-face-cli?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
