hf-cli

Manage Hugging Face Hub repositories, datasets, models, and inference infrastructure via CLI.

1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/Tyler-R-Kendrick/slm-training --skill hf-cli-tyler-r-kendrick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf-cli
Source: https://github.com/Tyler-R-Kendrick/slm-training/tree/main/.agents/skills/hf-cli
Command: npx skills add https://github.com/Tyler-R-Kendrick/slm-training --skill hf-cli-tyler-r-kendrick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines interactions with the Hugging Face ecosystem, replacing manual web-based workflows with efficient, scriptable command-line operations for model, dataset, and infrastructure management.

Core Features & Use Cases

  • Repository Management: Seamlessly upload, download, and sync models, datasets, and spaces between local environments and the Hub.
  • Infrastructure Control: Provision and manage Inference Endpoints, Jobs, and Sandboxes directly from your terminal.
  • Use Case: Automate the deployment of a fine-tuned model to a dedicated Inference Endpoint or trigger a batch training job on Hugging Face infrastructure without leaving your development environment.

Quick Start

Use the hf-cli skill to list all models in your current repository and verify your authentication status.

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

Automate Hugging Face Hub deployment using a unified command-line interface to manage repositories, datasets, models, and inference infrastructure. This replaces manual web-based workflows with scriptable terminal operations for automated synchronization and administrative tasks.

Can I manage Hugging Face Inference Endpoints and training jobs via CLI?

Yes, you can provision and manage Hugging Face Inference Endpoints, Jobs, and Sandboxes directly from your terminal. This infrastructure control allows you to trigger batch training jobs and deploy fine-tuned models without leaving your development environment.

What is the best way to sync models and datasets with the Hugging Face Hub locally?

The best way to sync models and datasets with the Hugging Face Hub is through scriptable command-line operations. This approach facilitates seamless uploads, downloads, and synchronization of models, datasets, and spaces between local environments and the Hub.

Do I need the hf-cli tool to interact with Hugging Face Hub APIs from my terminal?

Yes, you need the hf-cli tool to execute authenticated requests and interact with Hub APIs. It serves as the unified command-line interface required to carry out administrative tasks and manage resources across the Hugging Face ecosystem.

How does command line automation compare to using the Hugging Face web interface for repository management?

Command line automation replaces manual web-based workflows with efficient, scriptable terminal operations for repository management. Unlike the web interface, it enables automated deployment, synchronization, and batch processing of models and datasets across the Hugging Face ecosystem.