# Can't login to Huggingface CLI

**URL:** <https://discuss.huggingface.co/t/cant-login-to-huggingface-cli/139741>\
**Category:** Beginners\
**Created:** [February 8, 2025, 6:18pm UTC](https://discuss.huggingface.co/t/cant-login-to-huggingface-cli/139741 "2025-02-08T18:18:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [February 9, 2025, 4:12am UTC](https://discuss.huggingface.co/t/cant-login-to-huggingface-cli/139741/4 "2025-02-09T04:12:56Z")

</div>

It seems that there are also cases where the cause is something else.

> [@Invalid token passed?](https://discuss.huggingface.co/t/invalid-token-passed/22711?page=2):
>
> Token: Traceback (most recent call last): File “C:\Users\paint\anaconda3\Scripts\huggingface-cli-script.py”, line 9, in sys.exit(main()) File “C:\Users\paint\anaconda3\lib\site-packages\huggingface\_hub\commands\huggingface\_cli.py”, line 41, in main service.run() File “C:\Users\paint\anaconda3\lib\site-packages\huggingface\_hub\commands\user.py”, line 176, in run \_login(self.\_api, token=token) File “C:\Users\paint\anaconda3\lib\site-packages\huggingface\_hub\commands\user.py”, line 343, i…

---

_[View the full topic](https://discuss.huggingface.co/t/cant-login-to-huggingface-cli/139741)._
