huggingface-hub

Search, download, and upload models, datasets, and Spaces via the hf CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/travelinman1013/leroys-agent --skill huggingface-hub-travelinman1013
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/travelinman1013/leroys-agent/tree/main/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/travelinman1013/leroys-agent --skill huggingface-hub-travelinman1013

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hugging Face Hub operations (search, download, upload) are commonly performed via the web UI, which can be slow and error-prone; this guide consolidates essential CLI commands.

Core Features & Use Cases

  • Search, download, and upload models, datasets, and Spaces using the hf CLI.
  • Manage repositories, authentication, and versioning across local, CI, and cloud environments.
  • Automate workflows and reproducible experiments by scripting common Hugging Face Hub tasks.

Quick Start

Install the hf CLI and start by running hf --help to explore commands and authentication options.

Frequently Asked Questions about huggingface-hub

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Hugging Face Hub uploads and downloads?

Automate Hugging Face Hub operations by using the hf CLI to script search, download, and upload tasks for models, datasets, and Spaces. This replaces slow manual web UI interactions and enables reproducible experiments across local and CI pipelines.

Can I use the hf CLI to manage repository versioning in cloud environments?

Yes, the hf CLI manages repository authentication, permissions, and versioning across local machines, CI pipelines, and cloud environments. It provides streamlined commands to handle Hugging Face Hub repositories directly from your terminal.

What do I need to authenticate and manage Hugging Face repositories from the command line?

To manage Hugging Face repositories via the CLI, you need the hf CLI installed, a valid Hugging Face account, and an access token. Run hf --help to explore authentication options and start configuring your environment.

Is using the hf CLI better than the Hugging Face web UI for dataset curation?

Using the hf CLI is better for dataset curation when you need to automate workflows, as the web UI is slower and more error-prone. The CLI allows you to script repository management and ensure reproducible experiments.

How does scripting Hugging Face Hub tasks work for Space deployment?

Scripting Hugging Face Hub tasks for Space deployment works by executing hf CLI commands to search, download, and upload Spaces. This allows you to automate deployment workflows and manage versions across different computing environments.