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.Run a custom TypeScript script against the instance.
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.
| Name | Required | Description |
|---|---|---|
| script.ts | Yes | Path to the TypeScript script. The script receives client as a global. |
sn custom scripts/fix-categories.ts