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 copythemes
RequiredArgumentDescription
Yes--m modelSpecifies 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 fileSpecifies 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 copymonitorsSpecifies whether to export any existing monitors, where copymonitors is one of the following:
true
Exports monitors. This is the default setting.
false
Does not export monitors.
No--cq copyqueriesSpecifies whether to export any saved queries, where copyqueries is one of the following:
true
Exports queries. This is the default setting.
false
Does not export queries.
No--ct copythemesSpecifies whether to export any themes with the schema.
true
Exports themes. This is the default setting.
false
Does not export themes.

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