The Hugging Face Hub CLI tool `hf` provides commands for interacting with the Hugging Face Hub, replacing the deprecated `huggingface-cli`. It is designed for developers who need a command line interface for downloading, uploading, and managing files in the Hub.
curl -LsSf https://hf.co/cli/install.sh | bash -s.The hf-cli skill integrates the Hugging Face Hub CLI directly into your AI agent, enabling full command-line access to Hub operations. Agents can download models and datasets, upload files, manage repositories and buckets, launch Spaces, and execute cloud compute jobs—all through the hf command. The skill is auto-generated from your locally installed CLI, ensuring it stays synchronized with the latest Hub features and commands. This is the recommended first skill to install when giving your agent access to Hugging Face infrastructure.
Install using the command: `$ npx skills add https://github.com/huggingface/skills --skill hf-cli`.
Download datasets from the Hugging Face Hub
Manage authentication with the `hf auth` command
Upload files or entire folders to the Hub
Sync local directories with Hub repositories
curl -LsSf https://hf.co/cli/install.sh | bash -s.git clone https://github.com/huggingface/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Check the GitHub repository or documentation for usage examples.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan