# Mender-cli login failure

**URL:** https://hub.mender.io/t/mender-cli-login-failure/3067
**Category:** General Discussions
**Created:** [January 13, 2021, 1:15pm UTC](https://hub.mender.io/t/mender-cli-login-failure/3067 "2021-01-13T13:15:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![salma](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@salma](https://hub.mender.io/u/salma)
#### Post date: [January 13, 2021, 1:15pm UTC](https://hub.mender.io/t/mender-cli-login-failure/3067/1 "2021-01-13T13:15:19Z")

</div>

Hi!

when I try to login to mender using the mender-cli It fails (No request for password was asked)

```
   $ mender-cli login --server https://hosted.mender.io --username $USERNAME          
   No configuration file found
   FAILURE: No password set

```

I need to explicitly add the password like this

```
$ mender-cli login --server https://hosted.mender.io --username $MENDER_IO_USERNAME --password $PASSWORD
  No configuration file found
  login successful

```

Is this behavior normal since in the doc it doesn’t mention the need to add --password in the command line?
