hugging-face-cli
Skill by patchy631
Runs Hugging Face Hub operations through the hf CLI, covering downloads, uploads, repository management, cache cleanup, and cloud compute jobs. Built for users who work with models, datasets, and Spaces from the terminal.
Install hugging-face-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/patchy631/ai-engineering-hub /tmp/ai-engineering-hub && mkdir -p ~/.claude/skills && cp -r /tmp/ai-engineering-hub/hugging-face-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/patchy631/ai-engineering-hub /tmp/ai-engineering-hub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-engineering-hub/hugging-face-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 hf CLI commands for working with the Hugging Face Hub from a terminal. It covers logging in, downloading models, datasets, and Spaces to the cache or a local folder, and uploading files to Hub repositories. It also covers creating and deleting repos, branches, and tags, managing the local cache, and browsing models, datasets, and Spaces.
The skill includes a quick command reference, grouped command examples, and common patterns such as publishing a model or syncing a Space. It also covers running jobs on CPU or GPU hardware and deploying and managing Inference Endpoints. It suits users who need Hub operations from the command line.
Written from the project's SKILL.md and checked against it.
What it can do
- AuthenticationLog in, check the current user, list and switch stored tokens, and log out with hf auth commands.
- DownloadDownload full repos, specific files, filtered patterns, datasets, or specific revisions.
- UploadUpload folders or single files to a repo, with options for datasets, pull requests, and commit messages.
- Repository managementCreate, delete, move, and configure repos, plus manage branches and tags.
- Delete repo filesDelete folders or files matching a pattern from a Hub repository.
- Cache managementList, remove, prune, and verify cached repos and revisions.
- Browse the HubList and search models, datasets, and Spaces, and show details for each.
- JobsRun commands on CPU or GPU flavors, list jobs, view logs, and cancel jobs.
- Inference endpointsDeploy, describe, pause, resume, scale to zero, and delete inference endpoints.
What you need
- The hf CLI installed
- A Hugging Face account and token for authentication
Try asking
- Download the Llama 3.2 1B Instruct model to ./model using hf
- Create a private model repo and upload my ./output folder to it
- Run a python script on an a10g-small GPU job on Hugging Face
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: hugging-face-skills/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.md7 KB -
references/commands.md27 KB -
references/examples.md9 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
How do I log in with the hf CLI?
The skill uses hf auth login, which runs interactively or takes a token with --token. It can also read a token from the HF_TOKEN environment variable.
Can it run GPU jobs on Hugging Face infrastructure?
Yes. hf jobs run accepts a --flavor option, and the source lists GPU flavors such as a10g-small, a100-large, and h100.
Can it deploy inference endpoints?
Yes. The skill includes hf endpoints deploy, plus commands to describe, pause, resume, scale to zero, and delete an endpoint.
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 88 of 100. Grades: maintenance B, 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.
