Nice PR @silvanocerza , thank you for your help!
I made some cosmetic changes but otherwise I think we are good to merge it as soon as the CI is green.
The documentation is not available anymore as the PR was closed or merged.
And it's merged! Thanks for this contribution @silvanocerza. Clean and quick! :)
thanks a lot @silvanocerza!
Login to write a write a comment.
As of now it's not possible to login in a non interactive shell using
huggingface-cli login
as it always prompt to input the token. This makes it hard to use the CLI for automation, for example in GitHub Actions.This PR adds
--token
and--add-to-git-credential
args tohuggingface-cli login
command.Example call: