Deploy & validate
execute-script
Section titled “execute-script”Run Genie model and SQL files against the deployment, in the order the engine expects:
*.entity.xml → *.view.xml → *.rbac.xml → *.sql → *.navbar.xml. Changes take effect without
restarting the API. Requires the System role.
GenieClient execute-script <path> [-r] [--force] [-e <url>] [-a] [-c <company>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<path> (positional) |
path | yes | — | One script file, or a folder of them. Files with other extensions are ignored. |
-r, --recursive |
flag | no | on | Include files in sub-folders. Always on (see flags that default to on). |
--force |
flag | no | on | Run each script even when its version hash has not changed since the last run. Always on. |
Plus the common options.
GenieClient execute-script ./models # the whole models treeGenieClient execute-script ./models/views/Sites/Site.view.xml # one viewGenieClient execute-script ./models/workpilot.rbac.xml -e https://staging.example.comvalidate-sql
Section titled “validate-sql”Check the SQL written inside *.view.xml files without a server: parameter binding, cart
contracts, injection risks, and portability between SQL dialects. Useful before deploying and in CI.
GenieClient validate-sql <path> [-d <dialect>] [--require-tenant-scope] [--strict] [--report <format> --out <file>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<path> (positional) |
path | yes | — | A *.view.xml file, or a folder searched recursively for them. |
-d, --dialect |
choice: none, sqlserver, postgres, both |
no | none |
Which database(s) the SQL must run on. none skips portability checks; both requires SQL that works on SQL Server and PostgreSQL. |
--require-tenant-scope |
flag | no | off | Fail any query that does not reference @SessionCompanyId. Use for multi-tenant deployments where every query must be scoped to the current company. |
--strict |
flag | no | off | Exit with code 1 on warnings as well as errors. |
--report |
choice: junit, json |
no | none | Also write a machine-readable report in this format. |
--out |
path | no | — | File to write the --report to. |
GenieClient validate-sql ./models/viewsGenieClient validate-sql ./models/views --dialect sqlserver --require-tenant-scopeGenieClient validate-sql ./models/views/Sites/Site.view.xml --strictGenieClient validate-sql ./models/views --report junit --out sql-results.xmlvalidate-model
Section titled “validate-model”Check how the model files fit together, without a server: every navbar route points at an existing view slug, and every view and navbar item has matching RBAC permissions.
GenieClient validate-model <models> [--strict] [--report <format> --out <file>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<models> (positional) |
path | yes | — | The models root folder: the one holding views/, *.navbar.xml and *.rbac.xml. |
--strict |
flag | no | off | Exit with code 1 on warnings as well as errors. |
--report |
choice: junit, json |
no | none | Also write a machine-readable report in this format. |
--out |
path | no | — | File to write the --report to. |
GenieClient validate-model ./modelsGenieClient validate-model ./models --strict --report json --out model-results.jsonCopyright © 2026 Orbyn Technologies. All rights reserved.