Definition transfer
GenieClient exports and imports the authorization RBAC, workflow and wizard definitions as XML — the export → verify → merge → import loop:
- Export each subsystem’s live definition to a folder:
rbac.xml,<Name>.workflow.xml,<Name>.wizard.xml. - Verify with
--against <models-dir>: RBAC uses a semantic diff (it ignores ordering and reports real resource/grant changes); workflows and wizards are compared as canonical XML against your source-of-truth files. - Merge by hand, then import back.
All six commands talk to a deployment and accept the
common options (-e, -a, -c, -v).
export-rbac
Section titled “export-rbac”Export roles, permissions and grants to <out>/rbac.xml.
GenieClient export-rbac [-o <dir>] [--against <path>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
-o, --out |
path | no | current folder | Folder to write rbac.xml to. |
--against |
path | no | — | Compare the export with your source-of-truth RBAC: either a models folder containing an *.rbac.xml, or the file itself. Differences are listed; the check fails if there are any. |
GenieClient export-rbac -o ./outGenieClient export-rbac -o ./out --against ./modelsGenieClient export-rbac --against ./models/workpilot.rbac.xml -e https://prod.example.comimport-rbac
Section titled “import-rbac”Import an rbac.xml. By default this is a full sync using the server’s
prune mode: roles and resources missing from the file are
deleted. The seeded System, Admin and AccessManager roles and roles still assigned to users
are never deleted.
GenieClient import-rbac <file> [--no-prune]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
<file> (positional) |
path | yes | — | The rbac.xml to import. |
--no-prune |
flag | no | off | Add and update only — never delete roles or permissions that are not in the file. |
GenieClient import-rbac ./out/rbac.xmlGenieClient import-rbac ./models/workpilot.rbac.xml --no-pruneexport-workflows
Section titled “export-workflows”Export workflow definitions, one <Name>.workflow.xml per workflow.
GenieClient export-workflows [-o <dir>] [-n <name>] [--against <dir>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
-o, --out |
path | no | current folder | Folder to write the files to. |
-n, --name |
text (workflow name) | no | all | Export only this workflow. |
--against |
path | no | — | Models folder to compare with; each export is diffed against the matching *.workflow.xml found there. |
GenieClient export-workflows -o ./outGenieClient export-workflows -o ./out -n Approval --against ./modelsimport-workflow
Section titled “import-workflow”Import one workflow file. Creates the definition if it does not exist, then saves the XML.
GenieClient import-workflow <file>| Parameter | Type | Required | Description |
|---|---|---|---|
<file> (positional) |
path | yes | The *.workflow.xml to import. |
GenieClient import-workflow ./models/workflows/Approval.workflow.xmlexport-wizards
Section titled “export-wizards”Export wizard definitions, one <Name>.wizard.xml per wizard.
GenieClient export-wizards [-o <dir>] [-n <name>] [--against <dir>]| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
-o, --out |
path | no | current folder | Folder to write the files to. |
-n, --name |
text (wizard name) | no | all | Export only this wizard. |
--against |
path | no | — | Models folder to compare with; each export is diffed against the matching *.wizard.xml found there. |
GenieClient export-wizards -o ./outGenieClient export-wizards -o ./out -n Onboarding --against ./modelsimport-wizard
Section titled “import-wizard”Import one wizard file. Reuses an existing wizard with the same name, otherwise creates one.
GenieClient import-wizard <file>| Parameter | Type | Required | Description |
|---|---|---|---|
<file> (positional) |
path | yes | The *.wizard.xml to import. |
GenieClient import-wizard ./models/wizards/Onboarding.wizard.xmlImporting cannot rename a wizard that already has submissions: the name fixes its response table,
so the save is rejected — see Storage and indexes.
Response-table changes an import implies (a new Indexed field, a new index) are applied in the
background, so give provisioning a moment before submitting through the imported wizard.
How it works
Section titled “How it works”RBAC has real file endpoints. Workflows and wizards have none, so GenieClient drives their JSON
designer APIs (workflow/definitions[/{id}/save], wizard/list, wizard/{key}, wizard/save) to
read each definition’s verbatim XML and write it back.
Copyright © 2026 Orbyn Technologies. All rights reserved.