huggingface-hub

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Hugging Face Hub CLI enables developers to interact with the Hugging Face Hub from the command line, simplifying search, download, upload, and management of models, datasets, Spaces, and endpoints.

Core Features & Use Cases

  • Search, download, and upload models and datasets
  • Manage repositories, Spaces, and endpoints
  • Query datasets with SQL and automate Hub workflows
  • Handle authentication and token-based access for secure operations

Quick Start

Install the Hugging Face CLI and start by running hf --help to explore commands.

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 repositories via the command line?

You can manage Hugging Face Hub repositories via the command line by using the hf CLI to automate search, download, and upload operations for models, datasets, and Spaces. This approach requires installing the hf CLI, authenticating with tokens, and having network access to the Hub.

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

Yes, you can run SQL queries on Hugging Face datasets using the CLI. The skill automates interaction with the Hub to support querying datasets with SQL, allowing developers and data scientists to efficiently extract data without manual downloads.

What do I need to deploy Hugging Face inference endpoints from the terminal?

To deploy Hugging Face inference endpoints from the terminal, you need the hf CLI installed, proper authentication via access tokens, and network access to the Hub. This setup allows you to automate endpoint management directly from the command line.

How do I handle authentication for Hugging Face Hub CLI operations?

You handle authentication for Hugging Face Hub CLI operations by utilizing token-based access within the hf CLI. This secure method ensures that automated workflows for managing models, datasets, and Spaces maintain proper access control.

Is there a way to automate uploading models and datasets to Hugging Face Spaces?

Yes, you can automate uploading models and datasets to Hugging Face Spaces by leveraging the hf CLI. This command line tool streamlines the management of repositories and Hub resources, replacing manual web uploads with automated workflows.