schema command fetches field definitions for any ServiceNow table and caches them locally with a 14-day TTL. Cached schemas are used by execute to validate manifest inputs before sending requests to your instance.Query and cache table field schemas from your ServiceNow instance.
schema command fetches field definitions for any ServiceNow table and caches them locally with a 14-day TTL. Cached schemas are used by execute to validate manifest inputs before sending requests to your instance.sn schema [--refresh] <table-name> Query and cache table field schemas.
| Name | Required | Description |
|---|---|---|
| table-name | Yes | The ServiceNow table to query (e.g., incident, sys_script_include). |
| Flag | Default | Description |
|---|---|---|
| --refresh | — | Force re-fetch from instance, bypassing the 14-day cache. |
sn schema incidentsn schema --refresh sys_script_includeSN_INSTANCE in .env fetches fresh schemas automatically.