hugging-face-cli

Execute Hugging Face Hub operations via the hf CLI for downloads, uploads, and repository management.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill hugging-face-cli-himanshu040604
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/Himanshu040604/codex-skills-setup/tree/main/assets/codex/skills/claude-import/skills/plugins/huggingface-skills%40claude-plugins-official/skills/hugging-face-cli
Command: npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill hugging-face-cli-himanshu040604

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines interactions with the Hugging Face Hub, allowing users to manage models, datasets, and spaces directly from their command line.

Core Features & Use Cases

  • Download/Upload: Easily download models, datasets, and spaces from or upload them to the Hub.
  • Repository Management: Create, delete, and manage repositories, branches, and tags.
  • Cache Operations: Efficiently manage the local Hugging Face cache.
  • Cloud Compute: Run jobs on Hugging Face's infrastructure.
  • Use Case: A data scientist needs to download a specific version of a model for fine-tuning, then upload their trained weights back to a private repository on the Hub.

Quick Start

Use the hugging-face-cli skill to download the 'gpt2' model to your local directory.

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 a specific version of a Hugging Face model from the Hub?

Download specific Hugging Face model versions by executing file transfer operations through the `hf` CLI, allowing you to fetch models, datasets, and spaces directly from the Hub to your local directory.

Can I upload trained weights to a private Hugging Face repository using the command line?

Yes, you can upload trained weights to a private Hugging Face repository by using the `hf` CLI to handle file transfers and manage repository access credentials.

What is the best way to manage the local Hugging Face cache?

Manage the local Hugging Face cache efficiently using dedicated cache operation commands in the `hf` CLI to clear or inspect stored model and dataset files.

How do I create and delete Hugging Face repositories from the terminal?

Create and delete Hugging Face repositories, branches, and tags directly from the terminal by executing repository management commands via the `hf` CLI.

Does the Hugging Face CLI support running cloud compute jobs?

Yes, the Hugging Face CLI supports running cloud compute jobs by executing commands that launch and manage jobs on Hugging Face infrastructure.

Do I need to configure authentication to interact with the Hugging Face Hub via CLI?

Yes, you need to configure authentication to interact with the Hugging Face Hub via CLI, ensuring secure access when downloading, uploading, and managing your repositories.