huggingface-hub

Manage Hugging Face Hub repositories, models, datasets, and Spaces via hf commands.

12|2|Updated Feb 2, 2020
One-click install
npx skills add https://github.com/servitola/dotfiles --skill huggingface-hub-servitola
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/servitola/dotfiles/tree/main/claude-code/skills/huggingface-hub
Command: npx skills add https://github.com/servitola/dotfiles --skill huggingface-hub-servitola

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accessing and managing Hugging Face Hub assets—models, datasets, repos, and Spaces—via the command line can be cumbersome and error-prone. This Skill centralizes workflow into the hf CLI, enabling consistent, scriptable interactions across projects.

Core Features & Use Cases

  • hf commands for searching, downloading, uploading, and syncing models, datasets, and Spaces on the Hub.
  • Manage repositories, authentication, and hub resources from a single, repeatable workflow.
  • Use Case: Quickly fetch a model's metadata and download files for offline experimentation, or publish a new model to the Hub with a single command.

Quick Start

Install the hf CLI, authenticate with your token, and begin running common operations like search, download, and upload against your Hub.

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

The hf CLI allows you to manage Hugging Face Hub repositories, models, datasets, and Spaces directly from the command line. It centralizes searching, downloading, uploading, and syncing hub resources into a scriptable workflow.

What's the best way to download Hugging Face models for offline experimentation?

The best way to download Hugging Face models for offline use is via the hf CLI, which fetches model metadata and files through specialized hub commands. You can quickly pull assets locally to run experiments without continuous internet access.

Can I upload and publish a new model to the Hugging Face Hub using the CLI?

Yes, you can upload and publish a new model to the Hugging Face Hub with a single hf CLI command. After authenticating with your token, the CLI handles repository creation and file syncing directly from your terminal.

How do I authenticate with my Hugging Face token before running CLI operations?

You authenticate with your Hugging Face token by logging in through the hf CLI during the initial setup. This securely stores your credentials, enabling subsequent commands like search, download, and upload against your Hub repositories.

Does the Hugging Face CLI support managing Spaces and datasets across different teams?

Yes, the Hugging Face CLI supports managing Spaces and datasets across different teams. It implements specialized hub interactions to organize, search, and sync these resources consistently across various projects and team workflows.