ServiceNow CLI authentication and setup — jsn

Configure JSN for a ServiceNow instance with OAuth or basic authentication, profiles, read-only mode, and safe mutation settings.

How do I connect a ServiceNow instance from the command line? Configure JSN for a ServiceNow instance with OAuth or basic authentication, profiles, read-only mode, and safe mutation settings. JSN gives you a direct terminal workflow instead of requiring the ServiceNow web interface for every inspection or change.
CommandWhat it does
jsn setupInteractive wizard: add/switch/remove/modify instances
jsn auth modify <name>Toggle read-only, skip confirmations, include counts, domain
jsn setup
jsn setup

# Use `jsn scopes` to change scope, `jsn updatesets set` to change updateset
PROFILE   USER      [SCOPE]           UPDATE SET
dev227772 System... [x_8821_test]     Default

? What would you like to do?
❯ Add a new instance
  Switch to a different instance
  Remove an instance
  Modify an instance

↑↓ navigate • ⏎ select
▼ next screen
jsn setup

✔ What would you like to do? Add a new instance
Welcome to JSN - ServiceNow CLI

ServiceNow instance URL (e.g., dev12345.service-now.com): 
▼ next screen
jsn setup

Instance: https://dev12345.service-now.com
Profile name (default): 
▼ next screen
jsn setup

Authentication method (OAuth/Basic) [OAuth]: 

OAuth is recommended — token-based, auto-refreshed.
Basic sends username/password on every request.
▼ next screen
jsn setup

? Read-only profile (blocks mutation commands)? (y/N)
▼ next screen
jsn setup

✔ Read-only profile (blocks mutation commands)? No
? Skip confirmations (deletes run without prompting)? (y/N)
▼ next screen
jsn setup

✔ Skip confirmations (deletes run without prompting)? No
? Include result totals on list commands? (Y/n)
▼ next screen
jsn setup

✔ Include result totals on list commands? Yes

Login now? [Y/n]: 

Get started

Install, point it at your instance, then run this feature.

npm install -g @jacebenson/jsn
jsn setup
jsn setup
Full setup guide & skill docs →

← All features