hf-cli

Manage Hugging Face Hub resources via hf CLI commands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Hugging Face Hub CLI enables developers to download, upload, and manage models, datasets, spaces, buckets, and other Hub resources from the command line, simplifying authentication, caching, and automation workflows.

Core Features & Use Cases

  • Download and upload models and datasets from the Hub.
  • Manage spaces, repos, and buckets and perform common HF Hub tasks from scripts or interactive sessions.
  • Use in automation and CI to install, configure, and query HF Hub resources, handle authentication, and schedule jobs or workflows.

Quick Start

Install the hf CLI and run a simple command to verify installation.

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?

To manage Hugging Face Hub resources from the command line, use the hf CLI to perform downloads, uploads, and repository management. It relies on the Hugging Face Hub library and simplifies authentication and local caching across interactive sessions and CI workflows.

Can I use the Hugging Face CLI to automate model uploads and downloads in CI workflows?

Yes, you can use the Hugging Face CLI to automate model uploads and downloads in CI workflows. It enables you to install, configure, and query Hub resources, handle authentication, and schedule jobs or workflows for automated resource management.

Does the hf CLI require the Hugging Face Hub library to manage local caching?

Yes, the hf CLI requires the Hugging Face Hub library to manage local caching and execute commands. It is installed via the official installer script and uses this underlying library to handle authentication and resource transfers.

What is the best way to authenticate and manage Hugging Face buckets from a script?

The best way to authenticate and manage Hugging Face buckets from a script is using the hf CLI's auth and bucket commands. It enables developers to handle authentication credentials and perform bucket management directly within automation scripts.

What Hugging Face Hub resources can I download and upload using the CLI?

Using the CLI, you can download and upload models, datasets, spaces, buckets, and other Hub resources. It simplifies these common Hugging Face Hub tasks by handling the transfers directly from scripts or interactive development sessions.