Read ServiceNow records, inspect platform metadata, search documentation, and make explicit changes from your terminal or AI agent.
Use the current Node.js LTS release and npm on macOS, Linux, or Windows. Older Node.js release lines are not supported.
npm install -g @jacebenson/jsn
jsn setupSetup connects a named profile to your instance. Its default preset allows writes, so enable read-only mode before exploring. See setup and authentication.
For unreleased changes, use npm install -g @jacebenson/jsn@dev; see channels and updates.
jsn records list --table incident --query "active=true" --limit 5 --json
jsn discover --table incident
jsn docs "GlideRecord" --limit 5
jsn --helpInstance reads use your selected profile; add --profile <name> to choose another. Documentation search needs no ServiceNow connection and uses the hosted service by default. Use jsn <command> --help for options or jsn --all-commands --help for the full reference.
Use the default terminal view for people, --csv or --tsv for flat rows, and --json when scripts need pagination, context, or errors. CSV/TSV do not fetch more pages or preserve both reference IDs and labels. Pagination notices go to stderr only when more results are explicitly known; silence does not prove completeness. JSON retains reference objects only if the command has not already flattened them. See output details.
Use jsn auth modify <profile> --read-only to block instance writes. ServiceNow roles and ACLs still decide what you can access. Help and discovery may show a compact command list for the connected account; this is not an access grant or an exhaustive capability check.
Writes are not universally dry-run operations or confirmation prompts. Inspect each command's help, target profile, scope, and update set before changing anything. Use --force only for an approved operation. See safety guidance.
Inspect the bundled skill with jsn skill show, then use jsn skill install to select your agent or jsn skill install --target hermes for Hermes. Reinstall after upgrading JSN; reinstalling replaces recorded copies, including local edits. See agent installation.
npm --prefix cli ci
npm test
npm run lint
node cli/bin/jsn.js --helpThe published package, tests, and bundled skill live in cli/. The Rails website and public documentation API live in site/. Use the documentation source index for maintained guides, contributor contracts and verification instructions. Rails publishes only the guides allowlisted in site/config/guides.json. The CLI and website share the documentation search engine.
Run package commands, including npm pack, from cli/, not the private root package. For contribution rules and design context, read AGENTS.md, domain contracts, and decisions. See release maintenance for the publishing workflow.
MIT.