hugging-face-cli

Execute Hugging Face Hub operations via the hf CLI for models, datasets, and repositories.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/bcastelino/agent-skills-kit --skill hugging-face-cli-bcastelino
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/bcastelino/agent-skills-kit/tree/main/skills/hugging-face-cli
Command: npx skills add https://github.com/bcastelino/agent-skills-kit --skill hugging-face-cli-bcastelino

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides direct command-line access to the Hugging Face Hub, simplifying operations like downloading models, uploading files, and managing repositories.

Core Features & Use Cases

  • Model & Dataset Management: Download models, datasets, and spaces from the Hugging Face Hub.
  • Repository Operations: Create, upload to, and manage Hugging Face repositories.
  • Cache Control: Manage local cache for downloaded artifacts.
  • Cloud Compute: Run jobs on Hugging Face's infrastructure.
  • Use Case: You need to download a specific version of a large language model for local fine-tuning or upload your newly trained model weights to the Hub.

Quick Start

Use the hugging-face-cli skill to download the model 'meta-llama/Llama-3.2-1B-Instruct' to the current 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 model from the Hugging Face Hub using the command line?

Download a specific model from the Hugging Face Hub using the command line by executing the `hf` CLI to fetch models, datasets, and spaces directly to your local directory for immediate use.

Can I create and manage Hugging Face repositories via CLI?

Yes, you can create and manage Hugging Face repositories via CLI. The `hf` CLI supports repository creation, file uploads, and general repository management operations directly from your terminal.

What is the best way to upload newly trained model weights to the Hugging Face Hub?

The best way to upload newly trained model weights to the Hugging Face Hub is using the `hf` CLI, which handles file uploads and repository management to securely publish your trained artifacts.

How do I manage the local cache for downloaded Hugging Face models and datasets?

Manage the local cache for downloaded Hugging Face models and datasets using the `hf` CLI, which provides commands to control and clear local cache for downloaded artifacts.

Does the Hugging Face CLI support running compute jobs on their infrastructure?

Yes, the Hugging Face CLI supports running compute jobs on their infrastructure. The `hf` CLI enables you to run jobs and manage inference endpoints directly from the command line.