hf
Interact with Hugging Face Hub. tldr-pages
On several platforms
Several platforms
Interact with Hugging Face Hub. Log in, manage local cache, download, or upload files.
Log in to Hugging Face Hub
hf auth loginIdentifyDisplay the name of the logged in user
hf auth whoamiIdentifyLog out
hf auth logoutIdentifyPrint information about the environment
hf envIdentifyDownload files from a repository and print out the path (omit filenames to download entire repository)
hf download --repo-type repo_type repo_id filename1 filename2 ...IdentifyUpload an entire folder or a file to Hugging Face
hf upload --repo-type repo_type repo_id path/to/local_file_or_directory path/to/repo_file_or_directoryIdentifyScan cache to see downloaded repositories and their disk usage
hf cache lsIdentify