huggingface-hub

Manage Hugging Face Hub models, datasets, and Spaces via the hf CLI.

1|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/ChangZhou-xj/zxj_skill --skill huggingface-hub-changzhou-xj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/ChangZhou-xj/zxj_skill/tree/main/mlops/huggingface-hub
Command: npx skills add https://github.com/ChangZhou-xj/zxj_skill --skill huggingface-hub-changzhou-xj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hugging Face's hf CLI enables terminal-based management of models, datasets, and Spaces on the Hub, simplifying search, download, upload, and organization tasks.

Core Features & Use Cases

  • Manage repositories, models, datasets, and Spaces from a single CLI
  • Authenticate, list, and switch tokens, and handle versioning and branching
  • Discover and interact with hub content (models, datasets, Papers, spaces) through concise commands

Quick Start

Install the hf CLI and start using hf commands to manage models and datasets on the Hub.

Frequently Asked Questions about huggingface-hub

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

FAQPage Schema
How do I manage Hugging Face Hub models and datasets from the command line?

You can manage Hugging Face Hub models and datasets from the command line using the hf CLI to search, download, upload, and organize repositories directly from your terminal.

Can I create and delete Hugging Face Spaces using terminal commands?

Yes, you can create, delete, duplicate, and move Hugging Face Spaces using concise terminal commands provided by the hf CLI for repository operations.

How do I authenticate to the Hugging Face Hub via CLI?

You authenticate to the Hugging Face Hub via CLI by listing, switching, and managing tokens directly through the hf CLI for secure repository access.

What's the best way to handle versioning and branching for Hugging Face models?

The best way to handle versioning and branching for Hugging Face models is using the hf CLI to create branches and tags within your repositories.

Does the hf CLI support searching for datasets and papers on the Hugging Face Hub?

Yes, the hf CLI supports searching for datasets, papers, and models on the Hugging Face Hub, allowing you to discover and interact with hub content through concise commands.