Skip to content

Commit 68a037e

Browse files
authored
doc: v3 release beta.25 (#516)
1 parent f3172f4 commit 68a037e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

versioned_docs/version-3.x/reference/cli.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

179182
Commands:
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

203229
Get information of installed ZenStack packages.

versioned_docs/version-3.x/samples.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ https://github.com/zenstackhq/zenstack-v3/tree/main/samples/blog
1313

1414
A simple TypeScript application that demonstrates how to model a minimum blog app and how to use the ORM client to query the database.
1515

16+
## Multi-tenant Todo
17+
18+
https://github.com/zenstackhq/v3-sample-todo-nextjs
19+
20+
A multi-tenant Todo app built with Next.js, Auth.js, TanStack Query, and ZenStack v3.

0 commit comments

Comments
 (0)