Hugging Face · Command line (hf)

Authenticate with an environment variable

Set a token for scripts and CI instead of logging in interactively. Keep it out of source control.

export HF_TOKEN="your-access-token"

Official Hugging Face documentation

More command line (hf) commands

All command line (hf) commands · Hugging Face cheatsheet

Was this page helpful?