hub model copy

Copies the contents of a Context Graph model.

Use the hub model copy command to copy the contents of a Context Graph model, and optionally its monitors, queries, and themes.

Usage

hub model copy --m model --nm newmodel --cm copymonitors --cq copyqueries --ct copythemes
RequiredArgumentDescription
Yes--m modelSpecifies the name of the model you want to copy.
Yes--nm newmodelSpecifies the name of the new model.
No--cm copymonitorsSpecifies whether to copy any existing monitors from the old model into the new model, where copymonitors is one of the following:
true
Copies monitors. This is the default setting.
false
Does not copy monitors.
No--cq copyqueriesSpecifies whether to copy any saved queries from the old model into the new model, where copyqueries is one of the following:
true
Copies queries. This is the default setting.
false
Does not copy queries.
No--ct copythemesSpecifies whether to copy any themes from the old model into the new model, where copythemes is one of the following:
true
Copies themes. This is the default setting.
false
Does not copy themes.

Example

This example copies a model called CustomerBanking_DataType from the default backup folder and names the copy CustomerBanking_DataType_New. It also copies any monitors, queries, or themes associated with the old model into the new model.

hub model copy --m CustomerBanking_DataType --nm CustomerBanking_DataType_New --cm true --cq true --ct true