Auth & setup — jsn

The interactive setup wizard: instance, OAuth or basic, read-only mode and per-profile toggles.

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