Skip to content
Development
Skill

/huggingface-hub

Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

From plugin
zorro-agent
1078 skills

Claude Code

$ npx -y skills add braxtonROSE4/zorro-agent --skill huggingface-hub --agent claude-code

SKILL.md

huggingface-hub.SKILL.md
name: huggingface-hub
description: Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.
version: 1.0.0
author: Hugging Face
license: MIT
tags: [huggingface, hf, models, datasets, hub, mlops]

Hugging Face CLI (`hf`) Reference Guide

The `hf` command is the modern command-line interface for interacting with the Hugging Face Hub, providing tools to manage repositories, models, datasets, and Spaces.

> **IMPORTANT:** The `hf` command replaces the now deprecated `huggingface-cli` command.

Quick Start

  • **Installation:** `curl -LsSf https://hf.co/cli/install.sh | bash -s`
  • **Help:** Use `hf --help` to view all available functions and real-world examples.
  • **Authentication:** Recommended via `HF_TOKEN` environment variable or the `--token` flag.

---

Core Commands

General Operations

  • `hf download REPO_ID`: Download files from the Hub.
  • `hf upload REPO_ID`: Upload files/folders (recommended for single-commit).
  • `hf upload-large-folder REPO_ID LOCAL_PATH`: Recommended for resumable uploads of large directories.
  • `hf sync`: Sync files between a local directory and a bucket.
  • `hf env` / `hf version`: View environment and version details.

Authentication (`hf auth`)

  • `login` / `logout`: Manage sessions using tokens from [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
  • `list` / `switch`: Manage and toggle between multiple stored access tokens.
  • `whoami`: Identify the currently logged-in account.

Repository Management (`hf repos`)

  • `create` / `delete`: Create or permanently remove repositories.
  • `duplicate`: Clone a model, dataset, or Space to a new ID.
  • `move`: Transfer a repository between namespaces.
  • `branch` / `tag`: Manage Git-like references.
  • `delete-files`: Remove specific files using patterns.

---

Specialized Hub Interactions

Datasets & Models

  • **Datasets:** `hf datasets list`, `info`, and `parquet` (list parquet URLs).
  • **SQL Queries:** `hf datasets sql SQL` — Execute raw SQL via DuckDB against dataset parquet URLs.
  • **Models:** `hf models list` and `info`.
  • **Papers:** `hf papers list` — View daily papers.

Discussions & Pull Requests (`hf discussions`)

  • Manage the lifecycle of Hub contributions: `list`, `create`, `info`, `comment`, `close`, `reopen`, and `rename`.
  • `diff`: View changes in a PR.
  • `merge`: Finalize pull requests.

Infrastructure & Compute

  • **Endpoints:** Deploy and manage Inference Endpoints (`deploy`, `pause`, `resume`, `scale-to-zero`, `catalog`).
  • **Jobs:** Run compute tasks on HF infrastructure. Includes `hf jobs uv` for running Python scripts with inline dependencies and `stats` for resource monitoring.
  • **Spaces:** Manage interactive apps. Includes `dev-mode` and `hot-reload` for Python files without full restarts.

Storage & Automation

  • **Buckets:** Full S3-like bucket management (`create`, `cp`, `mv`, `rm`, `sync`).
  • **Cache:** Manage local storage with `list`, `prune` (remove detached revisions), and `verify` (checksum checks).
  • **Webhooks:** Automate workflows by managing Hub webhooks (`create`, `watch`, `enable`/`disable`).
  • **Collections:** Organize Hub items into collections (`add-item`, `update`, `list`).

---

Advanced Usage & Tips

Global Flags

  • `--format json`: Produces machine-readable output for automation.
  • `-q` / `--quiet`: Limits output to IDs only.

Extensions & Skills

  • **Extensions:** Extend CLI functionality via GitHub repositories using `hf extensions install REPO_ID`.
  • **Skills:** Manage AI assistant skills with `hf skills add`.
Read more
@braxtonrose4
Ships withzorro-agent

A self-evolving CLI agent. Most agents treat memory as an afterthought — a flat text file that grows until it's useless.

Stars on GitHub

Momentum

stars in total
10
Star history of braxtonROSE4/zorro-agent on GitHub, a chart by star-history.com

Other skills on zorro-agent.

claude-code

claude-code

Delegate coding tasks to Claude Code (Anthropic's CLI agent). Use for building features, refactoring, PR reviews, and iterative…

codex

codex

Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing.…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about huggingface-hub.

Which coding agents can use huggingface-hub?
huggingface-hub installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.