hub schema copy
Copies model metadata.
Use the hub schema copy command to copy Context Graph model metadata, and optionally its monitors, queries, and themes.
Usage
hub schema copy --m model --nm newmodel --cm copymonitors --cq copyqueries --ct copythemesRequired | Argument | Description |
---|---|---|
Yes | --m model | Specifies the name of the model whose schema you want to copy. |
Yes | --nm newmodel | Specifies the name of the new model. |
No | --cm copymonitors | Specifies whether to copy any existing monitors from the old model into the new
model, where copymonitors is one of the following:
|
No | --cq copyqueries | Specifies whether to copy any saved queries from the old model into the new model,
where copyqueries is one of the following:
|
No | --ct copythemes | Specifies whether to copy any themes from the old model into the new model, where copythemes is one of the following:
|
Example
This example copies the schema from a model called PersonalLending from the default backup folder and names the copy PersonalLending_New. It also copies any monitors and themes associated with the old model but does not copy any queries associated with the old model.
hub schema copy --m PersonalLending --nm PersonalLending_New --cm true --cq false --ct true