zenstack/docs/code-generation.md
2022-11-24 13:48:14 +08:00

536 B

Code generation

Code generation is where your modeling work pays off. To trigger it, simply run:

npx zenstack generate

You should see an output similar to:

CLI screenshot

A full reference of the zenstack CLI can be found here, but for now knowing just this one command is good enough.

As you see, several code generators are run to create pieces of code that help you build the app. Let's see how to use it in the next section.