@@ -26,6 +26,7 @@ Commands:
2626 info [path] Get information of installed ZenStack packages.
2727 init [path] Initialize an existing project for ZenStack.
2828 check [options] Check a ZModel schema for syntax or semantic errors.
29+ format [options] Format a ZModel schema file.
2930 help [command] display help for command
3031```
3132
@@ -112,6 +113,8 @@ Options:
112113 --force skip the confirmation prompt
113114 --migrations < path> path that contains the " migrations" directory
114115 -h, --help display help for command
116+
117+ If there is a seed script defined in package.json, it will be run after the reset. Use --skip-seed to skip it.
115118```
116119
117120#### migrate deploy
@@ -178,6 +181,7 @@ Options:
178181
179182Commands:
180183 push [options] Push the state from your schema to your database
184+ seed [options] Seed the database
181185 help [command] display help for command
182186```
183187
@@ -198,6 +202,28 @@ Options:
198202 -h, --help display help for command
199203```
200204
205+ #### db seed
206+
207+ ``` bash
208+ Usage: zen db seed [options]
209+
210+ Seed the database.
211+
212+ Options:
213+ --no-version-check do not check for new version
214+ -h, --help Show this help message
215+
216+ Seed script is configured under the " zenstack.seed" field in package.json.
217+ E.g.:
218+ {
219+ " zenstack" : {
220+ " seed" : " ts-node ./zenstack/seed.ts"
221+ }
222+ }
223+
224+ Arguments following -- are passed to the seed script. E.g.: " zen db seed -- --users 10"
225+ ```
226+
201227### info
202228
203229Get information of installed ZenStack packages.
0 commit comments