Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions versioned_docs/version-3.x/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Commands:
info [path] Get information of installed ZenStack packages.
init [path] Initialize an existing project for ZenStack.
check [options] Check a ZModel schema for syntax or semantic errors.
format [options] Format a ZModel schema file.
help [command] display help for command
```

Expand Down Expand Up @@ -112,6 +113,8 @@ Options:
--force skip the confirmation prompt
--migrations <path> path that contains the "migrations" directory
-h, --help display help for command

If there is a seed script defined in package.json, it will be run after the reset. Use --skip-seed to skip it.
```

#### migrate deploy
Expand Down Expand Up @@ -178,6 +181,7 @@ Options:

Commands:
push [options] Push the state from your schema to your database
seed [options] Seed the database
help [command] display help for command
```

Expand All @@ -198,6 +202,28 @@ Options:
-h, --help display help for command
```

#### db seed

```bash
Usage: zen db seed [options]

Seed the database.

Options:
--no-version-check do not check for new version
-h, --help Show this help message

Seed script is configured under the "zenstack.seed" field in package.json.
E.g.:
{
"zenstack": {
"seed": "ts-node ./zenstack/seed.ts"
}
}

Arguments following -- are passed to the seed script. E.g.: "zen db seed -- --users 10"
```

### info

Get information of installed ZenStack packages.
Expand Down
5 changes: 5 additions & 0 deletions versioned_docs/version-3.x/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ https://github.com/zenstackhq/zenstack-v3/tree/main/samples/blog

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

## Multi-tenant Todo

https://github.com/zenstackhq/v3-sample-todo-nextjs

A multi-tenant Todo app built with Next.js, Auth.js, TanStack Query, and ZenStack v3.