hub schema export
Exports a model.
Use the hub schema export command to export a Context Graph model and its metadata, and optionally its monitors, queries, and themes. If you do not specify a path to where you would like the model exported, the system export the model to the current working directory using the name you specify.
Usage
hub schema export --m model --f file --cm copymonitors --cq copyqueries --ct copythemesRequired | Argument | Description |
---|---|---|
Yes | --m model | Specifies the name of the model you want to export. |
Yes | --p path | (Deprecated) Specifies the path where you want to save the export folder. This path is relative to where you have installed the Spectrum Technology Platform server. |
No | --f file | Specifies the path where you want to save the export folder. This path is relative to where you have installed the Spectrum Technology Platform Administration Utility. |
No | --cm copymonitors | Specifies whether to export any existing monitors, where
copymonitors is one of the following:
|
No | --cq copyqueries | Specifies whether to export any saved queries, where
copyqueries is one of the following:
|
No | --ct copythemes | Specifies whether to export any themes with the schema.
|
Example
This example exports the schema for a model called Fraud_2015 to the GraphModels directory on the C drive. It does not export any monitors but does export any queries or themes associated with the model.
hub schema export --m Fraud_2015 --f C:\GraphModels --cm false --cq true -ct true