Programmatically access (API/CLI) to Compass "Share Schema As JSON"

Hi
I would like to programmatically activate the “Share Schema As JSON” feature (via API or CLI).
Is that possible?
Thanks

Avishay

Hi @Avishay_Balderman! The package that Compass uses internally for this is https://github.com/mongodb-js/mongodb-schema. You can also use it outside of Compass as a standalone module.

2 Likes