huggingface-hub

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

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/AlexiosBluffMara/mercury --skill huggingface-hub-alexiosbluffmara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/AlexiosBluffMara/mercury/tree/main/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/AlexiosBluffMara/mercury --skill huggingface-hub-alexiosbluffmara

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a concise reference for the Hugging Face Hub CLI (hf) to search, download, upload, and manage models, datasets, Spaces, and endpoints from the command line.

Core Features & Use Cases

  • Search, download, and upload models and datasets to and from the Hub.
  • Manage repositories, query datasets with SQL, and deploy inference endpoints or Spaces.
  • Use Case: A developer publishes a new model and exposes a demo Space to share with collaborators.

Quick Start

Install the hf CLI and begin managing Hub artifacts from your terminal.

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 resources from the command line?

You can manage Hugging Face Hub resources from the command line by using the hf CLI to automate searching, downloading, uploading, and deploying models, datasets, and Spaces from your terminal.

What is the best way to query Hugging Face datasets with SQL?

Querying Hugging Face datasets with SQL is a feature supported by the hf CLI, allowing developers to directly interrogate dataset repositories without leaving the terminal environment.

How do I deploy a model and expose a demo Space on Hugging Face Hub?

To deploy a model and expose a demo Space on the Hugging Face Hub, use the hf CLI to publish your model repository and then create and deploy an associated Space for collaborator access.

Do I need an access token to upload models to the Hugging Face Hub via CLI?

Yes, uploading models to the Hugging Face Hub via CLI requires token-based authentication to ensure secure repository operations and proper access control for your data science team.

Can I create and manage Hugging Face repositories using the terminal?

Yes, you can create and manage Hugging Face repositories using the terminal through the hf CLI, which supports creating repos, deploying inference endpoints, and handling Spaces artifacts.

Does the Hugging Face Hub CLI support deploying inference endpoints?

Yes, the Hugging Face Hub CLI supports deploying inference endpoints, allowing developers to programmatically create and manage model serving endpoints directly from the command line.