push
The push command allows you to push the specified DSL/JSON file to a Structurizr server. The default behaviour is:
- Pull the remote version of the workspace.
- Merge diagram layout information from the remote version into the local version.
- Push the local version, which now includes diagram layout information.
Options
-id: The workspace ID (required)-key: The workspace or admin API key (required if authentication is enabled on the server)-workspace: The path or URL to the workspace JSON/DSL file (required)-url: The Structurizr API URL (required)-branch: Branch name (optional)-passphrase: The passphrase to use (optional; only required if client-side encryption enabled on the workspace)-merge: Whether to merge layout information from the remote workspace (optional; defaults totrue)-archive: Whether to store the previous version of the remote workspace (optional; default totrue)
Notes
You will need to use -merge false when pushing a workspace to a branch that doesn’t exist on your Structurizr server.
Examples
To push a new version of a workspace defined using the DSL:
push -url https://structurizr.example.com/api -id 1234 -key 1234567890 -workspace workspace.dsl