Agent skill · Hugging Face Skills
/hf-cli Give your agent the complete Hugging Face Hub command line
hf-cli is a reference skill generated from the installed huggingface_hub version that lists every hf command and its options. It covers downloads and uploads, auth, cache, buckets, collections, datasets SQL, discussions and pull requests, Inference Endpoints, Jobs, sandboxes, Spaces and webhooks, and replaces the deprecated huggingface-cli tool.
Works with
- Claude Code
- Gemini CLI
Used forMachine learning and evals
When to use it
- You want the agent to download, upload or sync model, dataset or Space files.
- You need to run or schedule a job on Hugging Face hardware from the terminal.
- You manage Space secrets, variables, hardware or logs and want correct flags.
How it works
- 1Install and authenticate
The skill gives the one-line installer and points auth commands to hf auth, preferring an HF_TOKEN variable over passing --token.
- 2Find the command
The agent looks up the matching hf subcommand group, such as repos, buckets, jobs or spaces, with its arguments and flags.
- 3Pick an output format
Commands accept a format option, so the agent can ask for JSON or quiet ID-only output when it needs to parse results.
- 4Mount instead of copying
For large repos or buckets the skill suggests hf-mount, which exposes them as a local filesystem and fetches files on demand.
What it steers the agent away from
- Calling the deprecated huggingface-cli command.
- Guessing flags that the installed CLI version does not support.
- Downloading whole repositories when an on-demand mount would do.
Install this skill
It installs with the Hugging Face Skills pack.
Claude CodeThe plugin marketplace exposes only hf-cli; the rest are added one by one with the hf CLI.
/plugin marketplace add huggingface/skills
/plugin install hf-cli@huggingface/skills
hf skills add <skill-name>Gemini CLIInstalls the repository as a Gemini CLI extension; you can also run the install from a local checkout.
gemini extensions install https://github.com/huggingface/skills.git --consentCommands come from the author’s README; check it for changes before you run them.
Questions
How does it stay current with new CLI releases?
The file is produced from your local huggingface_hub install; running hf skills add --force regenerates it after you update the CLI.
Can it delete things?
Yes. The command list includes deleting repos, buckets, endpoints and cached files, so review destructive commands before approving them.
More guides from Hugging Face Skills
/hf-cloud-sagemaker-deployment-plannerPlan a SageMaker model deployment with few questionsPlans a SageMaker deployment by asking few questions, picking real-time, scale-to-zero or async, and checking instance quotas.Read the guide →/huggingface-spacesBuild and debug Hugging Face Spaces the agent can verifyCreates, pushes, debugs and verifies Hugging Face Spaces, choosing SDK and hardware such as ZeroGPU from your account's limits.Read the guide →/train-sentence-transformersTrain embedding and reranker models from tested templatesTrains embedding models, rerankers, SPLADE or ColBERT encoders from production templates, with a baseline score and a verdict line.Read the guide →/transformers-jsRun Hugging Face models in JavaScript with Transformers.jsRuns Hub models in JavaScript with Transformers.js pipelines in the browser, Node, Bun or Deno over WebGPU or WASM.Read the guide →
Also in this pack
/hf-cloud-aws-context-discoveryReads your active AWS profile, region and caller identity before any AWS work instead of assuming a default region.↗/hf-cloud-python-env-setupCreates an isolated Python 3.10 to 3.12 environment with current boto3 for SageMaker scripts, never the system Python.↗/hf-cloud-sagemaker-iam-preflightValidates or discovers a usable SageMaker execution role before deploying, creating a new one only when none fits.↗/hf-cloud-sagemaker-production-defaultsDeploys a SageMaker endpoint with autoscaling, CloudWatch alarms and cleanup tags switched on from the start.↗/hf-cloud-serving-image-selectionChooses the serving container for a SageMaker model, preferring Hugging Face vLLM or TEI images, and finds its current URI.↗/huggingface-datasetsReads Hub datasets through the Dataset Viewer API: splits, row paging, text search, filters, parquet links and column statistics.↗/huggingface-gradioBuilds Gradio apps with Interface or Blocks, wires event listeners and custom HTML components, and calls them from the CLI.↗/huggingface-lora-space-builderDesigns and publishes a private Gradio Space tailored to one LoRA, following the trigger words and settings on its model card.↗/huggingface-papersFetches Hugging Face paper pages as markdown and pulls metadata such as authors, linked models, datasets and GitHub repo.↗/huggingface-trackioAdds Trackio metric logging and diagnostic alerts to training code and reads the results back through its CLI.↗/huggingface-vision-trainerFine-tunes object detection, image classification and SAM or SAM2 segmentation models on Hugging Face Jobs GPUs or locally.↗/huggingface-zerogpuApplies ZeroGPU rules for @spaces.GPU code: duration and quota tuning, process isolation, concurrency and CUDA wheel limits.↗
Summary by trendhub. The skill itself lives in huggingface/skills/skills/hf-cli by Hugging Face (Apache-2.0); read the full, current text there.