huggingface-hub

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

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/Dq666dinger/my-hermes --skill huggingface-hub-dq666dinger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/Dq666dinger/my-hermes/tree/main/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/Dq666dinger/my-hermes --skill huggingface-hub-dq666dinger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide provides a concise reference for using the Hugging Face CLI (hf) to manage repositories, models, datasets, and Spaces from the terminal, replacing the older huggingface-cli with hf.

Core Features & Use Cases

  • Model & Dataset Management: search, info, download, and upload models and datasets on the Hugging Face Hub.
  • Authentication & Repos: authenticate, manage tokens, create/delete repositories, and organize or move items.
  • Use Case: quickly locate a model, download it for experimentation, or publish a trained model to your Hub.

Quick Start

Install hf and run hf --help to explore available commands.

Frequently Asked Questions about huggingface-hub

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

FAQPage Schema
How do I download models and datasets from the Hugging Face Hub via CLI?

To download models and datasets from the Hugging Face Hub, use the hf CLI to run download commands. It requires network access and authentication tokens to fetch resources for offline data science workflows.

What's the best way to manage Hugging Face Hub repositories from the terminal?

The best way to manage Hugging Face Hub repositories from the terminal is using the hf CLI. It allows you to create, delete, and organize items, replacing the older huggingface-cli tool for direct terminal repository management.

Do I need authentication tokens to upload models to the Hugging Face Hub?

Yes, you need authentication tokens to upload models to the Hugging Face Hub. The hf CLI requires user login with valid tokens to authenticate sessions before publishing trained models or managing datasets.

Can I search for specific models and Spaces on the Hugging Face Hub using command line?

You can search for specific models and Spaces on the Hugging Face Hub using the hf CLI. It provides dedicated search commands to quickly locate resources directly from your command line interface.

Does the hf CLI work without network access for reproducible experiments?

The hf CLI requires network access to initially download models and datasets. Once downloaded, you can use these local resources for offline or reproducible experiments without further network connectivity.