huggingface-hub

Automates Hugging Face Hub repo, model, dataset, and Space management via CLI.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/quiznat/Hermes_Sapho --skill huggingface-hub-quiznat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/quiznat/Hermes_Sapho/tree/main/.hermes/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/quiznat/Hermes_Sapho --skill huggingface-hub-quiznat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hugging Face Hub CLI (hf) streamlines management of Hugging Face Hub resources from the command line, reducing manual overhead when working with models, datasets, Spaces, and endpoints.

Core Features & Use Cases

  • Search and download models and datasets from the Hub.
  • Upload new models, datasets, and Spaces, and manage repositories and spaces.
  • Query datasets with SQL to explore data and derive insights.
  • Deploy and manage Inference Endpoints and Spaces for quick experimentation.

Quick Start

Install the Hugging Face CLI, authenticate with a token, and begin managing hubs, models, datasets, and Spaces with the hf command.

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 by using the hf CLI to automate searching, downloading, and uploading resources directly. This streamlines repository management and reduces manual overhead.

Can I query Hugging Face datasets with SQL to explore data?

Yes, you can query Hugging Face datasets with SQL to explore data and derive insights. The CLI supports executing SQL queries directly against Hub datasets, allowing you to filter and analyze data without downloading entire repositories.

Do I need an authentication token to deploy models and Spaces to the Hub?

Yes, an authentication token is required to deploy models and Spaces to the Hub. You must authenticate with your token during CLI setup to gain the permissions needed for uploading resources and managing Inference Endpoints across personal projects and teams.

What's the best way to automate searching and downloading models from Hugging Face?

The best way to automate searching and downloading models from Hugging Face is via the Hub CLI. It provides dedicated commands to query repositories and pull models programmatically, reducing manual overhead when working across multiple projects.

Can I manage Inference Endpoints and Spaces using the Hugging Face CLI?

Yes, you can manage Inference Endpoints and Spaces using the Hugging Face CLI. It provides commands to deploy and manage these resources, enabling quick experimentation and deployment directly from your terminal environment.

Are there limitations when using the hf CLI for Hugging Face repository management?

The primary limitation is that the hf CLI requires the CLI tool to be installed and token authentication configured beforehand. It operates entirely via the command line, meaning tasks are limited to supported CLI commands for repos, models, datasets, and endpoints.