sequelize

The Sequelize Command Line Interface

Subcommands

NameDescription
db:migrateRun pending migrations
db:migrate:schema:timestamps:addUpdate migration table to have timestamps
db:migrate:statusList the status of all migrations
db:migrate:undoReverts a migration
db:migrate:undo:allRevert all migrations ran
db:seedRun specified seeder
db:seed:undoDeletes data from the database
db:seed:allRun every seeder
db:seed:undo:allDeletes data from the database
db:createCreate database specified by configuration
db:dropDrop database specified by configuration
initInitializes project
init:configInitializes configuration
init:migrationsInitializes migrations
init:modelsInitializes models
init:seedersInitializes seeders
migration:generate, migration:createGenerates a new migration file
model:generate, model:createGenerates a model and its migration
seed:generate, seed:createGenerates a new seed file

Options

NameDescription
--helpShow help
--versionShow version number