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

hf-cli

Skill by sickn33

Guides an AI assistant through the hf command-line tool for the Hugging Face Hub, covering downloads, uploads, authentication, buckets and collections. Aimed at developers who manage Hub repositories from a terminal.

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

Install hf-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/hf-cli ~/.claude/skills/hf-cli

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

Step-by-step: install hf-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives the assistant guidance for the hf command-line tool from Hugging Face. It covers commands for copying, downloading, uploading and syncing files, plus managing authentication, buckets, the local cache, collections, datasets, discussions and pull requests, and Inference Endpoints. The source states that hf replaces the deprecated huggingface-cli command, and that auth commands now sit under hf auth.

The skill sets rules for risky operations. Before a write, it says to check the account, repository type, target revision and visibility. Sync with --delete, deletions, moves and overwrites need target-specific authorization and a reviewed dry-run where supported. Paid jobs and endpoints need agreed hardware, duration and budget. Extensions, remote UV URLs, model cards and downloaded repositories are treated as untrusted. It is for developers and agents working with Hub repositories from a terminal.

Written from the project's SKILL.md and checked against it.

What it can do

  • hf cpCopy files between local paths, repositories, and buckets.
  • hf downloadDownload files from the Hub, with include, exclude and dry-run options.
  • hf uploadUpload a file or a folder to the Hub in a single commit.
  • hf syncSync files between a local directory and a bucket, with dry-run planning.
  • hf authList, log in, log out, switch, and check the account for stored tokens.
  • hf bucketsCreate, inspect, list, move, remove, and change visibility of buckets.
  • hf cacheList, prune, remove, and verify checksums for locally cached repositories.
  • hf collectionsCreate, update, list, and manage items in Hub collections.
  • hf discussionsList, create, comment on, merge, and close Hub discussions and pull requests.
  • hf endpointsManage Inference Endpoints, including deploying from the Model Catalog.

What you need

  • The hf command-line tool installed and checked with hf version
  • A Hugging Face account
  • A Hugging Face access token for auth commands

Try asking

  • Use hf to check which Hugging Face account I am logged in as.
  • Dry-run a download of a model repo with hf download before fetching it.
  • List open pull requests on my dataset repo using hf discussions list.

Good to know

  • The hf upload-large-folder command is deprecated; use hf upload instead.
  • The catalog is labeled huggingface_hub v1.32.0, which does not confirm the installed version or compatibility.
  • Uploads and public visibility publish data, so the skill asks for checks before writes.
  • Mounts perform authenticated network reads and can incur resource use.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hf-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md34 KB

Alternatives to hf-cli

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

hf-cli: common questions

Does this skill install the hf CLI?

No. The source says the skill does not install the CLI or establish availability, and it tells the user to check command -v hf and hf version first.

What replaces huggingface-cli?

The source says the hf command replaces the deprecated huggingface-cli command.

Are destructive sync or delete commands covered?

Yes. The source says sync with --delete, repository or volume deletion, moves and overwrites need target-specific authorization and a reviewed dry-run or plan where supported.

How do I install hf-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hf-cli free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hf-cli safe to use?

It scores 88 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 hf-cli?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

hf-cli Install

Add to stack

Loading.