huggingface-hub

Manages Hugging Face Hub models, datasets, and repositories via the hf CLI.

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/luckybbjason1/trading --skill huggingface-hub-luckybbjason1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: huggingface-hub
Source: https://github.com/luckybbjason1/trading/tree/main/.hermes/skills/mlops/huggingface-hub
Command: npx skills add https://github.com/luckybbjason1/trading --skill huggingface-hub-luckybbjason1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Interacting with the Hugging Face Hub through the web UI or raw API calls is slow and hard to automate. This Skill provides a complete reference for the modern hf CLI so you can search, download, upload, and manage models, datasets, Spaces, and compute jobs directly from the command line. ## Core Features & Use Cases - Repository Operations: Download and upload models and datasets, create or delete repos, manage branches, tags, and discussions/PRs. - Compute & Infrastructure: Deploy Inference Endpoints, run Jobs (including hf jobs uv for Python scripts), and manage Spaces with dev-mode and hot-reload. - Data & Automation: Query datasets with SQL via DuckDB, manage S3-like buckets, configure webhooks, and organize collections. - Use Case: You need to download a fine-tuned model, upload a large dataset folder with resumable uploads, and then deploy an inference endpoint — all scripted in one shell workflow using hf download, hf upload-large-folder, and hf endpoints deploy. ## Quick Start Ask the assistant to download a specific model from the Hugging Face Hub using the hf CLI, for example by requesting to download a repo such as meta-llama/Llama-3-8B to a local folder.

Frequently Asked Questions about huggingface-hub

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

FAQPage Schema
How do I download a model from Hugging Face Hub using the CLI?

Use the command hf download followed by the repository ID, such as hf download meta-llama/Llama-3-8B. Authenticate first with hf auth login or by setting the HF_TOKEN environment variable for gated repositories.

How to upload large folders to Hugging Face Hub?

Use hf upload-large-folder with the repository ID and local path for resumable uploads of large directories. For smaller single-commit uploads, hf upload is the recommended command.

What is the difference between hf and huggingface-cli?

The hf command is the modern CLI for the Hugging Face Hub and replaces the deprecated huggingface-cli command. All new workflows should use hf, which covers repositories, datasets, jobs, endpoints, and more.

Can I run SQL queries on Hugging Face datasets?

Yes, hf datasets sql lets you execute raw SQL via DuckDB against dataset parquet URLs. You can also list parquet URLs with hf datasets parquet before querying.

Does the hf CLI support multiple authentication tokens?

Yes, hf auth list and hf auth switch manage multiple stored access tokens, letting you toggle between accounts. Tokens are created at huggingface.co/settings/tokens.

How do I get machine-readable output from hf commands?

Pass the --format json global flag to produce machine-readable JSON output for automation. The -q or --quiet flag limits output to IDs only, which is useful in scripts.