structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
491 stars 75 forks source link

feature request: generate json #69

Closed im-bpriestman closed 2 years ago

im-bpriestman commented 2 years ago

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.

simonbrowndotje commented 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

im-bpriestman commented 2 years ago

🤦 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 ?