now-cli login giving me unauthorized for confirmed credentials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2020 04:49 AM
Following all steps on https://developer.servicenow.com/dev.do#!/guides/orlando/now-experience/cli/getting-started, I have now-cli working, but I cannot login to any instance using the admin credentials I know work just fine:
```
$ node --version
v12.16.1
$ now-cli --version
Now CLI @17.0.3
$ now-cli login --host https://xxxx.service-now.com --method basic --username admin --password yyyy
✖ Connection to 'https://xxxx.service-now.com' failed. Credentials not saved.
Response code 401 (Unauthorized)
login [host] [method] [username] [password]
Login to a glide instance.
```
Is any config required on the instance level to get now-cli logins work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2021 07:46 AM
For me, I open developer site, click on User Thumb on top right, in the dropdown menu, click Activate instance, then select Manage instance password to get correct Username/Password/Host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2023 08:07 AM
Enter the command snc --help if it returns the message response code 401 (unauthorized).
Reconnect to the instance with the command snc configure profile set this will solve your problem.
