Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 88
  • 42k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hugging-face-cli in Claude Code

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

A

No 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 →

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.

hugging-face-cli Install

Add to stack

Loading.