hugging-face-cli

Manage Hugging Face Hub resources via the hf CLI.

10.9k|724|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/huggingface/skills --skill hugging-face-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/huggingface/skills/tree/main/skills/hugging-face-cli
Command: npx skills add https://github.com/huggingface/skills --skill hugging-face-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables users to manage Hugging Face Hub resources from the command line using the hf CLI.

Core Features & Use Cases

  • Manage model repositories (download, upload, tag, create) using hf CLI
  • Browse datasets, spaces, models, and runs with quick CLI commands
  • Authenticate, transfer files, and run cloud compute jobs from the terminal
  • Use case: Automate a workflow to fetch a model, push updates, and manage repos in a single script.

Quick Start

hf auth login hf download <repo_id> hf spaces ls

Frequently Asked Questions about hugging-face-cli

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

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

You can download and upload models from the Hugging Face Hub using the hf CLI by authenticating with hf auth login, then using hf download and hf upload commands to transfer repository files directly through your terminal.

Can I automate Hugging Face Hub repository creation and tagging in a single script?

Yes, you can automate Hugging Face Hub repository creation and tagging in a single script using the hf CLI to sequentially fetch models, push updates, and manage repository metadata without manual web interface interaction.

What do I need to manage Hugging Face Hub resources from the command line?

To manage Hugging Face Hub resources from the command line, you need the hf CLI installed on your system and an authenticated Hugging Face account to execute commands for models, datasets, and spaces.

How do I browse Hugging Face datasets and spaces from the terminal?

You can browse Hugging Face datasets and spaces from the terminal by executing quick CLI commands like hf spaces ls, which lists available spaces and allows you to navigate Hub resources without leaving the command line environment.

Does the Hugging Face CLI support running cloud compute jobs?

The Hugging Face CLI supports running cloud compute jobs from the terminal, enabling you to authenticate and execute compute tasks on Hub resources directly without switching to a separate cloud platform interface.