Call the ServiceNow REST API from the CLI — jsn

Use JSN as a practical raw REST escape hatch when a higher-level ServiceNow command does not exist.

How do I call the ServiceNow REST API from a terminal? Use JSN as a practical raw REST escape hatch when a higher-level ServiceNow command does not exist. JSN gives you a direct terminal workflow instead of requiring the ServiceNow web interface for every inspection or change.
CommandWhat it does
jsn rest --table incident --query 'sysparm_limit=3'Make a raw REST API request
jsn rest --table
jsn rest --table incident --query 'sysparm_limit=3' --json

GET api/now/table/incident
Returned incident: INC0000060
Short description: Unable to connect to email
State: 7
Priority: 3

Get started

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

npm install -g @jacebenson/jsn
jsn setup
jsn rest --table incident --query 'sysparm_limit=3'
Full setup guide & skill docs →

← All features