The interactive setup wizard: instance, OAuth or basic, read-only mode and per-profile toggles.
| Command | What it does |
|---|---|
jsn setup | Interactive wizard: add/switch/remove/modify instances |
jsn auth modify <name> | Toggle read-only, skip confirmations, include counts, domain |
$ 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$ 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): $ jsn setup
Instance: https://dev12345.service-now.com
Profile name (default): $ jsn setup
Authentication method (OAuth/Basic) [OAuth]:
OAuth is recommended — token-based, auto-refreshed.
Basic sends username/password on every request.$ jsn setup
? Read-only profile (blocks mutation commands)? (y/N)$ jsn setup
✔ Read-only profile (blocks mutation commands)? No
? Skip confirmations (deletes run without prompting)? (y/N)$ jsn setup
✔ Skip confirmations (deletes run without prompting)? No
? Include result totals on list commands? (Y/n)$ jsn setup
✔ Include result totals on list commands? Yes
Login now? [Y/n]: Install, point it at your instance, then run this feature.
$ npm install -g @jacebenson/jsn $ jsn setup $ jsn setupFull setup guide & skill docs →