Closed im-bpriestman closed 2 years ago
If you want to convert a DSL file to a JSON file, you can do this:
./structurizr.sh export -workspace workspace.dsl -format json
See https://github.com/structurizr/cli/blob/master/docs/export.md
🤦 Thanks, Simon. I missed that! In fairness, the top-level description for the export command doesn't mention that. Maybe: https://github.com/structurizr/cli/pull/70 ?
It would be nice to be able to use the cli to generate a local json representation of a workspace.
Sample use-cases:
I can create a json file easily enough by running sructurizr lite, and hitting the web console. I could automate this with frontend scripts, but using the cli would be more convenient.