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 GitHub - mongodb-js/mongodb-schema: Infer a probabilistic schema for a MongoDB collection.. You can also use it outside of Compass as a standalone module.

2 Likes