hugging-face-cli

Execute Hugging Face Hub tasks via the hf CLI for authentication, downloads, uploads, and repo management.

4|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/oabdelmaksoud/Openclaw-skills-Compilations --skill hugging-face-cli-oabdelmaksoud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/oabdelmaksoud/Openclaw-skills-Compilations/tree/main/hugging-face-cli
Command: npx skills add https://github.com/oabdelmaksoud/Openclaw-skills-Compilations --skill hugging-face-cli-oabdelmaksoud

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Simplifies and accelerates Hugging Face Hub tasks by providing a comprehensive command-line interface to authenticate, download models and datasets, upload artifacts, manage repositories, and operate cache and compute resources from scripts or shells.

Core Features & Use Cases

  • Authenticate and interact with the Hub using the hf CLI for login, token management, and user verification.
  • Download, upload, and manage repos, models, datasets, spaces, and endpoints directly from the terminal.
  • Automate publishing, syncing, and CI/CD workflows against Hugging Face Hub in software projects.

Quick Start

Login to the Hugging Face Hub and start managing repos from the command line.

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

You can download models and datasets from the Hugging Face Hub using the hf CLI to execute file transfers directly from your terminal, streamlining retrieval for data science pipelines and software development workflows.

Can I automate Hugging Face Hub uploads and repo management in a CI/CD pipeline?

Yes, you can automate Hugging Face Hub uploads, publishing, and repo management within CI/CD pipelines using the hf CLI. It enables scriptable authentication and artifact syncing directly during automated software workflows.

What is the best way to authenticate with the Hugging Face Hub from a shell script?

The best way to authenticate with the Hugging Face Hub from a shell script is using the hf CLI login workflow. It handles token management and user verification to secure your terminal-based repo operations.

Does the hf CLI support managing Hugging Face Spaces and compute endpoints?

Yes, the hf CLI supports managing Hugging Face Spaces and endpoints. You can provision spaces and operate compute resources directly from the command line alongside standard model and dataset repo tasks.

How do I manage the Hugging Face cache directory from the terminal?

You manage the Hugging Face cache by executing cache operations via the hf CLI. This allows you to operate and clear cached models or datasets directly from the command line to free up storage.