Skip to content

Commit

Permalink
docs: Add example run for the download command
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Jun 29, 2024
1 parent 643fb8b commit 6135e9a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/codegen/download_schemas.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
# Download Schemas

Generating from remote resources is not a great idea, the cli includes a command to
download schemas and wsdl locally.
download schemas and wsdl locally. The command will download any included schemas
recursively.

```console exec="1" source="console"
$ xsdata download --help
```

**Example**

```console
xsdata download https://www.w3.org/Math/XMLSchema/mathml3/mathml3.xsd -o ~/schemas
========= xsdata v24.6.1 / Python 3.11.8 / Platform linux =========

Setting base path to https:/www.w3.org/Math/XMLSchema/mathml3
Fetching https://www.w3.org/Math/XMLSchema/mathml3/mathml3.xsd
Fetching https://www.w3.org/Math/XMLSchema/mathml3/mathml3-content.xsd
Fetching https://www.w3.org/Math/XMLSchema/mathml3/mathml3-strict-content.xsd
Writing /home/chris/schemas/mathml3-strict-content.xsd
Writing /home/chris/schemas/mathml3-content.xsd
Fetching https://www.w3.org/Math/XMLSchema/mathml3/mathml3-presentation.xsd
Writing /home/chris/schemas/mathml3-presentation.xsd
Fetching https://www.w3.org/Math/XMLSchema/mathml3/mathml3-common.xsd
Writing /home/chris/schemas/mathml3-common.xsd
Writing /home/chris/schemas/mathml3.xsd
```

0 comments on commit 6135e9a

Please sign in to comment.