huggingface-cli Command Examples

Interact with Hugging Face Hub. Login, manage local cache, download or upload files. More information: https://huggingface.co/docs/huggingface_hub/guides/cli.

huggingface-cli login

huggingface-cli whoami

huggingface-cli logout

huggingface-cli env

huggingface-cli download --repo-type {{repo_type}} {{repo_id}} {{filename1 filename2 ...}}

huggingface-cli upload --repo-type {{repo_type}} {{repo_id}} {{path/to/local_file_or_directory}} {{path/to/repo_file_or_directory}}

huggingface-cli scan-cache

huggingface-cli delete-cache