hugging-face-cli

Manage Hugging Face Hub repositories, models, and datasets via the hf CLI.

4|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/Bennoo/classification_experience --skill hugging-face-cli-bennoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/Bennoo/classification_experience/tree/main/.claude/skills/hugging-face-cli
Command: npx skills add https://github.com/Bennoo/classification_experience --skill hugging-face-cli-bennoo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides direct terminal access to the Hugging Face Hub, enabling users to download models, upload data, manage repositories, and orchestrate compute tasks without a GUI.

Core Features & Use Cases

  • CLI-driven Hub interactions: Download models, datasets, and spaces; upload files to repos; create and tag repos; manage cache and authentication.
  • Automation-friendly workflows: Script and automate reproducible model publishing, dataset uploads, and batch downloads for ML pipelines.
  • Real-world use: A data scientist can set up a CI job to download the latest model, run evaluation, and push results back to a HF repo in one step.

Quick Start

Install the hf CLI: pip install huggingface_hub Log in to your account: hf auth login Example workflow: hf download microsoft/phi-2 --repo-type model

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 from the Hugging Face Hub using the command line?

You can download Hugging Face Hub models via the command line by installing the hf CLI with pip and running a command like 'hf download microsoft/phi-2 --repo-type model' to fetch files directly to your local environment.

Can I automate uploading datasets to Hugging Face repositories in a CI pipeline?

You can automate uploading datasets to Hugging Face repositories by scripting hf CLI commands within your CI pipeline, enabling reproducible dataset uploads and batch downloads for ML workflows.

What do I need to set up before using the hf CLI for Hub operations?

To use the hf CLI for Hub operations, you need to install the huggingface_hub Python package via pip and authenticate your account using 'hf auth login' to enable downloading models and managing repositories.

Does the hugging-face-cli Skill support managing cache and authentication for ML pipelines?

The Skill supports managing Hugging Face Hub cache and authentication, allowing developers and data scientists to handle terminal-based workflows across datasets, models, and compute tasks efficiently.

What is the best way to manage Hugging Face Hub repositories without a GUI?

Managing Hugging Face Hub repositories without a GUI is best done using the hf CLI to create, tag, and upload files to repos directly from the terminal, streamlining automation-friendly ML pipelines.

Related Skills