-
Notifications
You must be signed in to change notification settings - Fork 536
Sequelize CLI
The Sequelize ORM has a wonderful CLI to be used to create models and database migrations, making it really easy to work with the database and the ORM as well.
The Sequelize CLI can be used in this boilerplate through the npm run sequelize
command. To pass parameters to the Sequelize CLI append a --
to this command and pass the parameters after that, for example: npm run sequelize -- db:migrate --env test
. I know it's weird to use a --
before the parameters but it's a limitation of Linux, Mac and Windows terminals, otherwise the terminal will think that the db:migrate --env test
parameters should be passed to the npm
command, not to the result of the npm run sequelize
command.
To know more about the parameters that can be used with that, please refer to the Sequelize CLI documentation.