mediar-ai/skillhubz/huggingface-cli

Claude Code and agent skill by mediar-ai/skillhubz

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install mediar-ai/skillhubz/huggingface-cli

SKILL.md

The same SKILL.md was published earlier as mediar-ai/skillhubz/huggingface-cli.

HuggingFace CLI

Execute Hugging Face Hub operations using the hf CLI for downloading models/datasets, uploading files, managing repositories, cache, and cloud compute.

Prerequisites

  • HuggingFace CLI installed: pip install huggingface_hub
  • HF account and token for authenticated operations
  • hf auth login completed

Instructions

  1. Authentication

``bash hf auth login # Interactive login hf auth login --token $HF_TOKEN # Non-interactive hf auth whoami # Check current user ``

  1. Download models and datasets

``bash hf download <repo_id> # Full repo to cache hf download <repo_id> --local-dir ./models # To local directory hf download <repo_id> --include "*.safetensors" # Filter by pattern hf download <repo_id> --repo-type dataset # Dataset ``

  1. Upload files

``bash hf upload <repo_id> . . # Current dir to root hf upload <repo_id> ./models /weights # Folder to path hf upload <repo_id> . . --repo-type dataset # Dataset hf upload <repo_id> . . --create-pr # Create PR ``

  1. Repository management

``bash hf repo create <name> # Create model repo hf repo create <name> --repo-type dataset # Create dataset hf repo create <name> --private # Private repo hf repo delete <repo_id> # Delete repo hf repo tag create <repo_id> v1.0 # Create tag ``

  1. Cache management

``bash hf cache ls # List cached repos hf cache rm model/gpt2 # Remove cached repo hf cache prune # Remove detached revisions ``

  1. Browse Hub

``bash hf models ls # List trending models hf models ls --search "llama" --limit 20 # Search models hf datasets ls # List datasets hf spaces ls # List spaces ``

  1. Cloud compute (Jobs)

``bash hf jobs run python:3.12 python script.py # Run on CPU hf jobs run --flavor a10g-small <image> <cmd> # Run on GPU hf jobs ps # List jobs hf jobs logs <job_id> # View logs ``

Error Handling

  • If authentication fails, run hf auth login again
  • For permission errors, check token scope
  • For large uploads, use hf upload-large-folder

Notes

  • Key options: --repo-type (model/dataset/space), --revision, --quiet
  • GPU flavors: cpu-basic, t4-small, a10g-small, a100-large, h100
  • Use --quiet for scripts to get only paths/URLs

Source: huggingface/skills

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7
Repository forks
4
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mediar-ai/skillhubz/huggingface-cli/badge)](https://verified-skill.com/skills/mediar-ai/skillhubz/huggingface-cli)

Something wrong with this skill or its page? Tell us.