contextgraph schema copy

Copies model metadata.

Use the contextgraph schema copy command to copy Context Graph model metadata, and optionally its queries and themes.

Usage

contextgraph schema copy --m model --nm newmodel --cq copyqueries --ct copythemes
RequiredArgumentDescription
Yes--m modelSpecifies the name of the model whose schema you want to copy.
Yes--nm newmodelSpecifies the name of the new model.
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 the schema from a model called PersonalLending from the default backup folder and names the copy PersonalLending_New. It also copies any themes associated with the old model but does not copy any queries associated with the old model.

contextgraph schema copy --m PersonalLending --nm PersonalLending_New --cm true --cq false --ct true