hf-cli

Manage repositories, models, and Spaces on the Hugging Face Hub via the hf CLI.

Updated Dec 17, 2024
One-click install
npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill hf-cli-laf-us
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hf-cli
Source: https://github.com/LAF-US/IDAHO-VAULT/tree/main/.codex/plugins/cache/openai-curated/hugging-face/314574a046f21938025ae443f9c6dbbd0c2c9b7a/skills/cli
Command: npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill hf-cli-laf-us

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Hugging Face Hub CLI simplifies managing repositories, models, datasets, and Spaces from a single command line, reducing manual steps and context switching.

Core Features & Use Cases

  • CLI-based management: download, upload, list, and synchronize assets on the Hugging Face Hub.
  • Authentication and access control: manage login tokens with hf login and hf whoami.
  • Use Case: easily clone a model repo, push a new dataset, or deploy a Space from the command line.

Quick Start

Install the hf CLI and run a simple command like hf --help to view the available commands and usage instructions.

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?▼

To manage Hugging Face Hub repositories from the command line, use the hf CLI to automate downloading, uploading, listing, and synchronizing assets across your accounts without manual web interface steps.

Do I need an authentication token to upload models to the Hugging Face Hub?▼

Yes, uploading models to the Hugging Face Hub requires an authentication token. You must install the hf CLI and use commands like hf login to authenticate your account before performing any upload actions.

Can I download datasets and deploy Spaces using the Hugging Face CLI?▼

Yes, you can download datasets and deploy Spaces using the Hugging Face CLI. The hf CLI supports repository, model, dataset, and Space management directly from your terminal.

What is the best way to clone a model repo or push a new dataset to Hugging Face?▼

The best way to clone a model repo or push a new dataset to Hugging Face is using the hf CLI. It provides a single command line interface to easily synchronize assets and reduce context switching.

How do I check my current Hugging Face Hub authentication status in the terminal?▼

To check your current Hugging Face Hub authentication status in the terminal, run the hf whoami command. This verifies your active login token and confirms your account access before you list or upload assets.