huggingface-hub

Automate Hugging Face Hub model and dataset operations via the hf CLI.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/gqf2008/hermez-ai --skill huggingface-hub-gqf2008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/gqf2008/hermez-ai/tree/main/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/gqf2008/hermez-ai --skill huggingface-hub-gqf2008

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing Hugging Face Hub tasks often requires juggling many commands to discover, download, upload models and datasets, manage repos, and interact with Spaces. This Skill consolidates these tasks into a practical CLI guide that accelerates Hub operations.

Core Features & Use Cases

  • Search, download, and upload models, datasets, and Spaces using the hf CLI.
  • Manage repositories, branches, and permissions; query datasets with SQL; deploy inference endpoints.
  • Use Case: Quickly locate a model, fetch its files, and deploy a test endpoint for experimentation.

Quick Start

Run hf to list available models and datasets on the Hugging Face Hub.

Frequently Asked Questions about huggingface-hub

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

FAQPage Schema
How do I download and upload Hugging Face models using the command line?

You can download and upload Hugging Face models via the hf CLI by executing repository operations to fetch or push model files directly from your terminal.

Can I run SQL queries on Hugging Face datasets from the CLI?

Yes, you can run SQL queries on Hugging Face datasets from the CLI to extract and filter data without downloading the entire repository locally.

How do I deploy Hugging Face Spaces and inference endpoints from the terminal?

You deploy Hugging Face Spaces and inference endpoints from the terminal by using specific hf CLI commands to provision and launch your applications remotely.

What do I need to authenticate with the Hugging Face Hub for CLI operations?

Authenticating with the Hugging Face Hub for CLI operations requires a Hugging Face token, which you provide to the hf CLI to authorize repository management and uploads.

Does the Hugging Face CLI support repository management like creating and deleting branches?

The Hugging Face CLI supports full repository management, allowing you to create, delete, duplicate, and move repositories as well as manage branches and permissions.

What is the best way to search for models and datasets on the Hugging Face Hub?

The best way to search for models and datasets on the Hugging Face Hub is using the hf CLI to query and list available resources directly from your command line interface.