Hugging Face
Hugging Face CLI for downloading models, managing datasets, and deploying ML pipelines from the terminal.
35 commands
Browse by Topic
Install Hugging Face CLI
Install the Hugging Face Hub CLI and Python client via pip
Login to Hugging Face
Authenticate with Hugging Face using an access token
Install Transformers library
Install the Hugging Face Transformers library for ML models
Login to Hub
Authenticate with Hugging Face Hub interactively.
Login with token
Non-interactive login using access token.
Check login status
Display current authenticated user.
Logout
Remove stored authentication credentials.
Set token via env
Set access token as environment variable.
Download model
Download a model to the local cache.
Download to directory
Download model to a specific local directory.
Download specific files
Download only files matching a pattern.
Exclude files
Skip files matching patterns during download.
Download dataset
Download a dataset from the Hub.
Download specific revision
Download a specific version or branch.
Resume download
Continue an interrupted download.
Download single file
Download only a specific file from a repo.
Upload folder
Upload a local folder to a Hub repository.
Upload single file
Upload a single file to a repository.
Upload with commit message
Upload with a descriptive commit message.
Upload dataset
Upload files to a dataset repository.
Create private repo
Upload to a new private repository via PR.
Upload to subdirectory
Upload files to a specific path in the repo.
Scan cache
Show all cached models and their sizes.
Delete cache entries
Interactively delete cached models.
Delete specific revisions
Remove specific cached revisions by hash.
Set cache directory
Configure custom cache location.
Disable cache
Force offline mode using only cached files.
Show cache path
Display the current cache directory path.
Get repo info
Display repository metadata and statistics.
Create repo
Create a new model repository on the Hub.
Create dataset repo
Create a new private dataset repository.
List files in repo
List all files in a repository.
Search models
Search for models by name or filter.
Get model tags
Retrieve model tags and metadata.
Check disk usage
Show repository storage usage.
Discussion
Loading comments...