Skip to content

Commit 8167b7a

Browse files
author
hirsch88
committed
Describe cli commands for the seeding
1 parent 79da010 commit 8167b7a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,17 @@ The last step is the easiest, just hit the following command in your terminal, b
354354
npm start db.seed
355355
```
356356
357+
#### CLI Interface
358+
359+
| Command | Description |
360+
| --------------------------------------------------- | ----------- |
361+
| `npm start "db.seed"` | Run all seeds |
362+
| `npm start "db.seed --list CreateBruce,CreatePets"` | List seeds to run |
363+
| `npm start "db.seed -L` | Log database queries to the terminal |
364+
| `npm start "db.seed --factories` | Add a different path to your factories (Default: `src/database/`) |
365+
| `npm start "db.seed --seeds` | Add a different path to your seeds (Default: `src/database/seeds/`) |
366+
| `npm start "db.seed --config` | Path to your ormconfig.json file |
367+
357368
## Run in Docker container
358369

359370
### Install Docker

0 commit comments

Comments
 (0)