# Is there a way to login with mender-cli using google login or my hosted tenant token

**URL:** <https://hub.mender.io/t/is-there-a-way-to-login-with-mender-cli-using-google-login-or-my-hosted-tenant-token/3936>\
**Category:** General Discussions\
**Created:** [July 28, 2021, 2:44pm UTC](https://hub.mender.io/t/is-there-a-way-to-login-with-mender-cli-using-google-login-or-my-hosted-tenant-token/3936 "2021-07-28T14:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uishon](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/uishon/32/1326_2.png) [@uishon](https://hub.mender.io/u/uishon)\
**Post date:** [July 28, 2021, 2:44pm UTC](https://hub.mender.io/t/is-there-a-way-to-login-with-mender-cli-using-google-login-or-my-hosted-tenant-token/3936/1 "2021-07-28T14:44:04Z")

</div>

I’m logging in to your hosted service with my Google user - hard coding my user/password won’t work. So is there an alternative? Can I use my tenant token or something similar instead?

---

<div class="post-metadata">

**Author:** ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)\
**Post date:** [August 2, 2021, 7:51am UTC](https://hub.mender.io/t/is-there-a-way-to-login-with-mender-cli-using-google-login-or-my-hosted-tenant-token/3936/2 "2021-08-02T07:51:30Z")

</div>

Hello @uishon, you cannot use your Google oauth2 user to log in using mender-clli. You need to create a password-based user, and use the combination of email and password to log in. You can use the “+” sign after your username to create a unique user still linked to your gmail account.

E.g. `youremailaddress+mendercli@gmail.com`
