# `mix hf.login`
[🔗](https://github.com/huggingface/huggingface_client/blob/v0.1.0/lib/mix/tasks/hf.login.ex#L1)

Saves a HuggingFace API token to `~/.cache/huggingface/token`.

    $ mix hf.login --token hf_xxx

## Options

  * `--token` / `-t` — your HuggingFace API token (prompts if omitted)

The token will be used by all `HuggingfaceClient` calls that don't
specify an explicit `access_token:` option.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
