hf-cli - Manage Hugging Face Hub with the hf CLI
Use the hf command to manage authentication, Hub repositories, models, datasets, spaces, buckets, cache, discussions, collections, jobs, and Inference Endpoints.
Tags
Updated: 2026-10-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Authenticate with Hugging Face
- Download Hub repository files
- Upload files to repositories
- Manage models and datasets
- Manage Spaces and buckets
- Manage local cache
- Query dataset parquet files
- Manage collections and discussions
- Deploy Inference Endpoints
- Inspect CLI environment and version
- Install and manage extensions
- Sync local files with buckets
Inputs
- Hub repository IDs
- Dataset IDs
- Bucket IDs
- Local file paths
- Authentication tokens
- Endpoint configuration
- Collection identifiers
- Discussion numbers
- SQL queries
- CLI command options
Outputs
- Command output
- Downloaded local files
- Uploaded Hub files
- Updated repositories
- Updated cache entries
- Updated buckets
- Authentication state changes
- Endpoint state changes
- Created or updated discussions
- Created or updated collections
Requirements
- hf CLI installed
- Hugging Face access token for token authentication
- Access to the relevant Hugging Face resources
