Skip to main content
Solved

Utility to take dump of CDF project / Convert graphQL model to yaml files for CDF toolkit


Hello Team,

Is there any utility to convert GraphQL model in CDF to yaml files which can be used in CDF toolkit for deployment.

Currently, even after taking dump using SDK, we need to change the format of YAML as per the supported syntax. 

Thanks,

Snehal,

Best answer by Anders Albert

You can download model using Toolkit with the `cdf dump datamodel` command. That will give you the YAML format that is compatible with Toolkit.

View original
Did this topic help you find an answer to your question?

7 replies

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • Answer
  • January 20, 2025

You can download model using Toolkit with the `cdf dump datamodel` command. That will give you the YAML format that is compatible with Toolkit.


APSHANKAR Sagar
Committed

Is there a way to copy also the data present in the views of the model while we do this? I tried, successfully to download the model as a bunch of yamls but I also need to reproduce the data, preferably after making some changes in the content.


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • 96 replies
  • January 20, 2025

No sorry, not at this stage. You would have to write your own script to do that, for example, using the python SDK.


  • Author
  • Seasoned
  • 13 replies
  • January 24, 2025

Thanks, this works


  • Author
  • Seasoned
  • 13 replies
  • January 24, 2025

Also, I see this is available for Datamodel, asset and timeseries.  Any plan to make it available for other resources like groups, transformations, workflows etc


  • Architect
  • 14 replies
  • January 24, 2025

Yes, we plan to enable it for (nearly) all resource types. 


  • Author
  • Seasoned
  • 13 replies
  • January 24, 2025

Thanks, it will help alot.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings