hf-cli

Automate Hugging Face Hub interactions for authentication, assets, and repos.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/tripplen23/finetuning-sessions --skill hf-cli-tripplen23
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-cli
Source: https://github.com/tripplen23/finetuning-sessions/tree/main/.kiro/skills/hf-cli
Command: npx skills add https://github.com/tripplen23/finetuning-sessions --skill hf-cli-tripplen23

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates and simplifies interactions with the Hugging Face Hub by providing a powerful CLI (hf) to handle authentication, model/dataset/space management, and repository workflows across local and HF infrastructure.

Core Features & Use Cases

  • Comprehensive Hub management: download, upload, list, and organize models, datasets, spaces, buckets, and papers from the Hub.
  • Workflow automation: script-friendly commands for auth, env inspection, bucket operations, and cache management, enabling repeatable ML ops tasks.
  • Use Case: A data team wants to mirror a subset of HF repos for offline testing and automated updates during a sprint.

Quick Start

Install the hf CLI and begin managing Hub assets locally and on HF infrastructure.

Frequently Asked Questions about hf-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Hugging Face Hub repositories from the command line?

You can manage Hugging Face Hub repositories using the hf CLI to automate authentication, downloading, uploading, and syncing models, datasets, and spaces directly from your local environment.

What is the best way to automate Hugging Face model downloads for offline testing?

Automating Hugging Face model downloads for offline testing is best achieved using the hf CLI, which provides script-friendly commands to mirror repositories and manage local cache efficiently.

Can I use the hf CLI to handle authentication for ML ops workflows?

Yes, the hf CLI handles authentication for ML ops workflows by specifying commands and environment prerequisites to securely manage access to Hugging Face Hub assets.

Does the Hugging Face CLI support dataset and space management alongside models?

The Hugging Face CLI supports comprehensive asset management, allowing you to list, download, upload, and organize models, datasets, spaces, and papers across local and Hub infrastructure.

How do I sync local assets to Hugging Face buckets using the CLI?

You can sync local assets to Hugging Face buckets using the bucket operations provided by the hf CLI, enabling repeatable uploads and automated updates during software development or data science sprints.