One-click install
npx skills add https://github.com/cpich3g/ai-cost-optimiser --skill hugging-face-cli-cpich3g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-cli
Source: https://github.com/cpich3g/ai-cost-optimiser/tree/main/.github/skills/hugging-face-cli
Command: npx skills add https://github.com/cpich3g/ai-cost-optimiser --skill hugging-face-cli-cpich3g

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

hf CLI unifies and automates Hugging Face Hub workflows, enabling you to manage models, datasets, and spaces from the command line, reducing manual setup and navigation.

Core Features & Use Cases

  • Authentication: Handle login, token management, and access control for Hub resources.
  • Download & Upload: Seamlessly download models/datasets/spaces and upload files or folders to Hub repositories.
  • Repo Management & Compute: Create repos, configure privacy, manage cache, and orchestrate cloud compute tasks.

Quick Start

Log in with hf auth login, then download a model with hf download <repo> to cache.

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 a model from Hugging Face Hub via the command line?

Use the hf download command to fetch models from Hugging Face Hub and store them directly in your local cache. You must run hf auth login first to authenticate before executing any download operations.

What is the best way to manage Hugging Face repository creation and privacy settings?

Hugging Face repository creation and privacy configuration are handled centrally through the hf repo create command. This unifies space and dataset management, reducing manual web navigation for individual or team workflows.

Do I need credentials to upload datasets to Hugging Face spaces?

Yes, uploading datasets to Hugging Face requires valid credentials obtained via hf auth login. Network access and prior authentication are mandatory prerequisites to execute the hf upload command for files or folders.

How does Hugging Face cache management work for downloaded models?

Hugging Face cache management organizes downloaded models locally using the hf cache command. This prevents redundant downloads and optimizes storage allocation across multiple projects sharing the same Hub resources.

Can I orchestrate cloud compute tasks using the Hugging Face CLI?

The Hugging Face CLI supports orchestrating cloud compute tasks alongside standard repo management. After configuring authentication, users can execute compute operations directly from the command line without manual portal interaction.

Why does my Hugging Face CLI upload fail with an authentication error?

Hugging Face CLI uploads fail when access tokens are invalid or missing. Re-authenticate using hf auth login to refresh token management and access control before retrying the upload or download operations.