The Sequelize Command Line Interface (CLI)
Table of Contents
Make sure you have Sequelize installed. Then install the Sequelize CLI to be used in your project with
npm install --save-dev sequelize-cli
And then you should be able to run the CLI with
npx sequelize --help
Sequelize CLI [Node: 10.21.0, CLI: 6.0.0, ORM: 6.1.0]sequelize <command>Commands:sequelize db:migrate Run pending migrationssequelize db:migrate:schema:timestamps:add Update migration table to have timestampssequelize db:migrate:status List the status of all migrationssequelize db:migrate:undo Reverts a migrationsequelize db:migrate:undo:all Revert all migrations ransequelize db:seed Run specified seedersequelize db:seed:undo Deletes data from the databasesequelize db:seed:all Run every seedersequelize db:seed:undo:all Deletes data from the databasesequelize db:create Create database specified by configurationsequelize db:drop Drop database specified by configurationsequelize init Initializes projectsequelize init:config Initializes configurationsequelize init:migrations Initializes migrationssequelize init:models Initializes modelssequelize init:seeders Initializes seederssequelize migration:generate Generates a new migration file [aliases: migration:create]sequelize model:generate Generates a model and its migration [aliases: model:create]sequelize seed:generate Generates a new seed file [aliases: seed:create]Options:--version Show version number [boolean]--help Show help [boolean]Please specify a command
All contributions are accepted as a PR.
- You can file issues by submitting a PR (with test) as a test case.
- Implement new feature by submitting a PR
- Improve documentation by submitting PR to Sequelize
Please read the contributing guidelines.