Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

now-cli login giving me unauthorized for confirmed credentials

cedricvl
Kilo Contributor

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?

 
16 REPLIES 16

capu
Kilo Explorer

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

 

Ryan Guilherme
Tera Contributor

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.
Solve Error.png