hf-cli

Automate Hugging Face Hub administration via hf CLI subcommands.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/sankadash/incident-response --skill hf-cli-sankadash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-cli
Source: https://github.com/sankadash/incident-response/tree/main/.agents/skills/hf-cli
Command: npx skills add https://github.com/sankadash/incident-response --skill hf-cli-sankadash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manage Hugging Face Hub resources from the command line, enabling fast setup, authentication, and resource operations without a GUI.

Core Features & Use Cases

  • Authentication: manage tokens and access to HF Hub resources.
  • Resource management: download, upload, and sync repos, models, datasets, spaces, and buckets.
  • Use case: automate model updates, dataset migrations, and deployment workflows across HF Hub.

Quick Start

Install the hf CLI and start authenticating, then perform common tasks like downloading a repo or uploading a model.

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 resources from the command line?

Using the hf CLI, you can manage Hugging Face Hub resources from the command line by executing subcommands for authentication, repository management, and endpoint tasks across models, datasets, and spaces.

What is the best way to automate Hugging Face model updates and dataset migrations?

The best way to automate Hugging Face model updates and dataset migrations is using the hf CLI to script uploads, downloads, and synchronization tasks directly within your deployment workflows.

How do I authenticate to Hugging Face Hub using the command line?

To authenticate to Hugging Face Hub using the command line, use the hf CLI auth subcommand to manage your tokens and establish access to your Hub resources.

Does the hf CLI support managing Hugging Face Spaces and endpoints?

Yes, the hf CLI supports managing Hugging Face Spaces and endpoints, providing dedicated subcommands to handle administration tasks for these resources alongside models and datasets.

Can I download and upload Hugging Face repos using the command line?

Yes, you can download and upload Hugging Face repos using the hf CLI, which provides specific commands for automating repository synchronization and resource transfers directly from your terminal.