hf-cli

Automate Hugging Face Hub resource management via the official hf CLI.

10|2|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/sumpalabs/petrodb --skill hf-cli-sumpalabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-cli
Source: https://github.com/sumpalabs/petrodb/tree/main/.agents/skills/hf-cli
Command: npx skills add https://github.com/sumpalabs/petrodb --skill hf-cli-sumpalabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually navigating the Hugging Face Hub web interface for common machine learning operations like downloading datasets, uploading models, and managing repositories is time-consuming and prone to user error, especially for repetitive or batch tasks.

Core Features & Use Cases

  • Comprehensive Hub Management: Interact with all Hub resource types including models, datasets, spaces, buckets, repositories, and inference endpoints directly from the command line.
  • Authentication & Workflow Automation: Manage access tokens, local cache, file sync between local storage and HF buckets, schedule training jobs, and handle discussions and pull requests without leaving the terminal.
  • Use Case Example: For instance, you can use this skill to download a public petrophysical dataset for analysis, upload a fine-tuned model to a private repository, and schedule a training job on HF infrastructure in a single workflow.

Quick Start

Use the hf-cli skill to download the public sumpalabs/petrodb dataset to your local working directory for immediate analysis.

Frequently Asked Questions about hf-cli

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

FAQPage Schema
How do I automate Hugging Face dataset downloading and model uploading?

Automating Hugging Face dataset downloading and model uploading is possible via the hf CLI, which handles file transfers, cache management, and repository operations without manual web interface navigation.

Can I manage Hugging Face inference endpoints and job scheduling from the command line?

Yes, you can manage Hugging Face inference endpoints and job scheduling directly from the command line using the hf CLI to deploy endpoints and schedule training jobs on Hub infrastructure.

Do I need to install and authenticate the hf CLI tool separately to manage Hub repositories?

Yes, you need the hf CLI tool installed and authenticated to execute commands for managing Hub repositories, handling access tokens, and synchronizing files between local storage and HF buckets.

What is the best way to handle Hugging Face Hub authentication and local cache for machine learning workflows?

The best way to handle Hugging Face Hub authentication and local cache is through the hf CLI, which manages access tokens, local cache, and file sync between local storage and HF buckets within automated workflows.

Does the hf CLI support managing pull requests and discussions on Hugging Face repositories?

Yes, the hf CLI supports managing pull requests and discussions on Hugging Face repositories, allowing you to handle these interactions directly from the terminal without leaving your development environment.

Can I use the hf CLI to interact with all Hugging Face Hub resource types including spaces and buckets?

Yes, you can use the hf CLI to interact with all Hugging Face Hub resource types including models, datasets, spaces, buckets, repositories, and inference endpoints directly from the command line.