Export workspace to code?

I’d like to build a Workspace on the front-end, and then export that workspace into my custom app as JSON.

Is that possible?

In developer mode this happens automatically, at least for V15/Nightly

You can also use fixtures hook and add Workspace there like following:

In your app/hooks.py

fixtures = [
“workspace”
]

And run bench --site YOUR_SITE_NAME export-fixtures

And the workspace will get updated upon migration.

I hope this help.