HuggingFace CLI on this page is the hf-cli skill from the official huggingface/skills repository. It gives a coding agent a complete, current reference for the hf command line tool, so the agent can search models, move files, manage repos and Spaces, and launch compute on the Hugging Face Hub without guessing flags. Hugging Face calls it the recommended first skill to install; the other skills in the repo build on it.
The skill file is generated from the locally installed CLI (the copy checked on 2026-09-23 was built from huggingface_hub v1.32.0), and hf skills add --force regenerates it after an upgrade. It states plainly that hf replaces the deprecated huggingface-cli command and that login now lives under hf auth.
Key Features
- Transfers:
hf download,hf upload,hf cpandhf sync, with--include/--excludefilters and a--dry-runoption. - Repos and collaboration:
hf repos create,hf discussions(open, diff, comment on and merge Hub pull requests) andhf collections. - Discovery:
hf models list,hf datasets list,hf spaces search,hf papers searchandhf papers read(a paper as markdown). - Data:
hf datasets parquetlists shard URLs andhf datasets sqlruns DuckDB SQL against them. - Compute:
hf jobs run,hf jobs uv run,hf endpoints deployfor Inference Endpoints, and the experimentalhf sandboxVMs. - Storage and cache:
hf buckets,hf cache list,hf cache pruneandhf cache verify. - Agent output: most commands accept
--format agentor--format json, which is easier for an agent to parse than tables.
Use Cases
- Letting an agent fetch a model or dataset into a project without you looking up flags.
- Reviewing and merging a Hub pull request from the terminal.
- Querying a dataset with SQL before deciding whether to download it.
Pricing
The skill and the CLI are free and open source (the repository is Apache-2.0). Commands that start paid compute, such as Jobs, sandboxes and Inference Endpoints, bill your Hugging Face account.
Getting Started
- Install the CLI:
curl -LsSf https://hf.co/cli/install.sh | bash -s, thenhf auth login(or setHF_TOKEN). - In Claude Code:
/plugin marketplace add huggingface/skills, then/plugin install hf-cli@huggingface/skills. - The same skill ships in the Cursor Marketplace and the Codex Plugins Directory; Gemini CLI can install the repo as an extension.
- Add workflow skills later with
hf skills add <skill-name>.
Limitation: the skill is long (about 3,800 words), so it costs context on every activation, and it can lag a newer CLI until you regenerate it. Destructive commands such as hf buckets delete still deserve a human check.
FAQ
Is huggingface-cli still supported?
It is deprecated. The skill and the CLI docs both point to hf.
Do I need the other Hugging Face skills?
No. Start with this one and add trainers or evaluators only when you need their workflows.
Alternatives
- HuggingFace Datasets: narrower skill for the Dataset Viewer API.
- HuggingFace Tool Builder: writes reusable scripts on top of the Hub API.
- Hugging Face: the platform entry itself.
Conclusion
Install hf-cli first if your agent touches the Hub. It replaces guesswork about flags with the real command list. See more in the skills hub and the hugging-face tag.
Comments
No comments yet. Be the first to comment!
Related Tools
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.

Claude Code account precautions: before you spend $200, do these six things
Gmail plus Apple private sign-in, Cliproxy residential routing for CC and emulators, IP/DNS checks, gradual upgrades, and history-preserving sign-out. Includes a profile and script.
How to pick an AI coding CLI for your repo
Match Claude Code, Codex CLI, OpenCode, Pi, omp, DeepSeek Harness, and Grok Build to the work you actually run. Docs rechecked 2026-10-06.