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

  • Score 89
  • 51k 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/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-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 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

A

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

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.

hugging-face-cli Install

Add to stack

Loading.