hugging-face-cli

Execute Hugging Face Hub operations including downloads, uploads, repo creation, cache management, and compute jobs via CLI.

Updated Dec 10, 2024
One-click install
npx skills add https://github.com/melikhanmutlu/web_ar --skill hugging-face-cli-melikhanmutlu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/melikhanmutlu/web_ar/tree/main/skills-extra/hugging-face-cli
Command: npx skills add https://github.com/melikhanmutlu/web_ar --skill hugging-face-cli-melikhanmutlu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Directly control Hugging Face Hub operations from the command line, simplifying model/dataset/spaces management, repository maintenance, and compute tasks without switching contexts.

Core Features & Use Cases

  • Execute hf commands to download models, datasets, and spaces, upload files to Hub repositories, create repos, manage local cache, and run compute jobs on HF infrastructure.
  • Authenticate and manage sessions with hf auth login, tokens, and environment context.
  • Use in automation scripts or CI workflows to streamline model deployment, data preparation, and space maintenance.

Quick Start

Install the hf CLI, authenticate with hf auth login, and start downloading or uploading to the Hugging Face Hub.

Frequently Asked Questions about hugging-face-cli

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

FAQPage Schema
How do I download models and datasets from the Hugging Face Hub using the command line?

To download models and datasets from the Hugging Face Hub, use the hf download command in your CLI. This skill executes Hub operations directly from the terminal, allowing you to pull files into your local environment without switching contexts.

Can I upload files to a Hugging Face repository from the CLI?

Yes, you can upload files to a Hugging Face repository using the hf upload command. This skill enables direct repository management from the command line, simplifying file transfers and repository maintenance for local development.

What is the process for Hugging Face authentication in a terminal environment?

Hugging Face authentication requires executing the hf auth login command to manage user sessions and tokens. This skill handles the authentication workflow, establishing the necessary environment context for subsequent Hub operations.

Do I need the hf CLI installed to manage Hugging Face spaces and compute jobs?

Yes, you must have the hf CLI installed and authenticated to manage spaces and compute jobs. This skill requires the CLI environment to execute Hugging Face Hub commands for running compute infrastructure and space maintenance.

What's the best way to automate Hugging Face Hub tasks in a CI workflow?

The best way to automate Hugging Face Hub tasks in CI workflows is by scripting hf commands for authentication, downloading, and uploading. This skill streamlines model deployment and data preparation by executing operations directly from the command line.

When should I not use the command line for Hugging Face repository management?

You should not use CLI repository management if you lack knowledge of hf commands or local compute resources for cache handling. This skill requires familiarity with terminal environments and Hugging Face Hub operations to function correctly.