CmdID

CmdID / Commands

hf

Interact with Hugging Face Hub. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Interact with Hugging Face Hub. Log in, manage local cache, download, or upload files.

Log in to Hugging Face Hub

hf auth loginIdentify

Display the name of the logged in user

hf auth whoamiIdentify

Log out

hf auth logoutIdentify

Print information about the environment

hf envIdentify

Download 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 ...Identify

Upload 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_directoryIdentify

Scan cache to see downloaded repositories and their disk usage

hf cache lsIdentify