sequelize
The Sequelize Command Line Interface
Subcommands
Name | Description |
---|---|
db:migrate | Run pending migrations |
db:migrate:schema:timestamps:add | Update migration table to have timestamps |
db:migrate:status | List the status of all migrations |
db:migrate:undo | Reverts a migration |
db:migrate:undo:all | Revert all migrations ran |
db:seed | Run specified seeder |
db:seed:undo | Deletes data from the database |
db:seed:all | Run every seeder |
db:seed:undo:all | Deletes data from the database |
db:create | Create database specified by configuration |
db:drop | Drop database specified by configuration |
init | Initializes project |
init:config | Initializes configuration |
init:migrations | Initializes migrations |
init:models | Initializes models |
init:seeders | Initializes seeders |
migration:generate, migration:create | Generates a new migration file |
model:generate, model:create | Generates a model and its migration |
seed:generate, seed:create | Generates a new seed file |
Options
Name | Description |
---|---|
--help | Show help |
--version | Show version number |