hugging-face-cli

Manage Hugging Face Hub assets with the hf CLI from the terminal.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/AnushkaTandon26/AI-ML-Projects --skill hugging-face-cli-anushkatandon26
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/AnushkaTandon26/AI-ML-Projects/tree/main/hugging-face-skills/skills/hugging-face-cli
Command: npx skills add https://github.com/AnushkaTandon26/AI-ML-Projects --skill hugging-face-cli-anushkatandon26

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Hugging Face Hub CLI (hf) enables developers and data scientists to perform model, dataset, and space management directly from the terminal, replacing repetitive UI interactions with fast, scriptable commands.

Core Features & Use Cases

  • Download models, datasets, and spaces to local storage or cache for offline processing.
  • Upload artifacts, create repositories, manage authentication, and perform cache operations from a single tool.
  • Automate Hub workflows (clone, push, tag, manage files) and run cloud compute tasks for scalable ML pipelines.

Quick Start

Try running hf models ls to explore available models.

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 models and datasets from the Hugging Face Hub via the command line?

The hf CLI lets you download models and datasets from the Hugging Face Hub directly to local storage or cache for offline processing. It replaces repetitive UI interactions with fast terminal commands.

Do I need a Hugging Face account to upload artifacts and manage spaces using the terminal?

Yes, a valid Hub account and the hf CLI installation are required to upload artifacts, create repositories, and manage spaces. The command line will prompt you for login if your authentication is missing.

Can I automate Hugging Face repository workflows like cloning and tagging from the terminal?

Yes, you can automate Hugging Face workflows by using the hf CLI to clone, push, tag, and manage files from the terminal. This replaces repetitive UI interactions with scriptable commands for scalable ML pipelines.

What is the best way to manage Hugging Face cache operations without using the web UI?

The best way to manage Hugging Face cache operations without the web UI is using the hf CLI. It performs cache operations, manages authentication, and handles asset downloads entirely from the terminal.

Does the hf CLI support running cloud compute tasks for machine learning pipelines?

Yes, the hf CLI supports running cloud compute tasks for scalable ML pipelines. You can execute cloud compute tasks directly from the terminal alongside managing models, datasets, and spaces.