|
|
@@ -20,6 +20,9 @@ $ pipenv install diagrams |
|
|
|
|
|
|
|
# using poetry |
|
|
|
$ poetry add diagrams |
|
|
|
|
|
|
|
# using pipx |
|
|
|
$ pipx install diagrams |
|
|
|
``` |
|
|
|
|
|
|
|
## Quick Start |
|
|
@@ -47,6 +50,21 @@ This generates the diagram below: |
|
|
|
|
|
|
|
It will be saved as `web_service.png` in your working directory. |
|
|
|
|
|
|
|
### CLI |
|
|
|
|
|
|
|
If the `diagrams` CLI has been installed system wide (i.e. with [pipx](https://pipxproject.github.io/pipx/)), |
|
|
|
then the preceding command is equivalent to this. |
|
|
|
|
|
|
|
```shell |
|
|
|
$ diagrams diagram.py |
|
|
|
``` |
|
|
|
|
|
|
|
Furthermore you can execute multiple files at once |
|
|
|
|
|
|
|
```shell |
|
|
|
$ diagrams diagram1.py diagram2.py |
|
|
|
``` |
|
|
|
|
|
|
|
## Next |
|
|
|
|
|
|
|
See more [Examples](/docs/getting-started/examples) or see the [Guides](/docs/guides/diagram) page for more details. |