Install: curl -LsSf https://hf.co/cli/install.sh | bash -s.
The Hugging Face Hub CLI tool hf is available. IMPORTANT: The hf command replaces the deprecated huggingface-cli command.
Use hf --help to view available functions. Note that auth commands are now all under hf auth e.g. hf auth whoami.
Generated with huggingface_hub v2.4.0. Run hf skills add --force to regenerate.
Commands
hf cp SRCâ Copy files between local paths, repositories, and buckets.[--format [auto|human|agent|json|quiet]]hf download REPO_IDâ Download files from the Hub.[--type [model|dataset|space|kernel] --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --max-workers INTEGER --format [auto|human|agent|json|quiet]]hf envâ Print information about the environment.[--format [auto|human|agent|json|quiet]]hf syncâ Sync files between local directory and a bucket.[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]hf updateâ Update thehfCLI to the latest version.[--format [auto|human|agent|json|quiet]]hf upload REPO_IDâ Upload a file or a folder to the Hub.[--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --format [auto|human|agent|json|quiet]]hf versionâ Print information about the hf version.[--format [auto|human|agent|json|quiet]]
hf auth â Manage authentication (login, logout, etc.).
Installs: 3.9K | GitHub stars: 11.4K | First seen: Mar 6, 2026


