sndev.io / docs

custom

Run a custom TypeScript script against the instance.

The custom command executes a TypeScript script with a pre-configured ServiceNowClient injected as client. Use it for one-off operations that don't fit an existing skill.
sn custom <script.ts>

Run a custom script against the instance.

Arguments

NameRequiredDescription
script.tsYesPath to the TypeScript script. The script receives client as a global.

Examples

sn custom scripts/fix-categories.ts
Running custom script: fix-categories.ts
Done (0.4s)