sndev.io / docs

search-code

Search server-side scripts by content.

The search-code command searches the script field across server-side script tables (business rules, script includes, etc.) for a text pattern. Use --table to limit the search to one table.
sn search-code <pattern> [--table <table>]

Search server-side scripts by content.

Arguments

NameRequiredDescription
patternYesText or regex pattern to search for.

Flags

FlagDefaultDescription
--table <table>Limit search to a specific script table (e.g., `sys_script_include`).

Examples

sn search-code "gs.getUser()" --table sys_script
Found 3 matches in sys_script:
Before Insert — Incident (sys_id: abc123)
After Update — Change (sys_id: def456)
Before Delete — Problem (sys_id: ghi789)