All apps/Sequelize CLI

Sequelize CLI

sequelize

Command line interface for the Sequelize ORM.

Runs as sequelize|macOS, Linux, Windows|sequelize.org

Command form

ai-draft · 3 tasks · 21 fields

Run migrations and generate models. Seeders and project init are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui sequelize

sequelize db:migrate

Run migrations
Run migrationsExample values, fixed in this page — nothing here reaches a terminal
Basic
Migrate up to
string
Environment
string
TasksEach one presets the form for one job
Run pending migrations
envto
ParametersOnly these flags are editable in the form
Migrate up to
string
--to
Start after
string
--from
Environment
string
--env
Config file
path
--config
Migrations folder
path
--migrations-path
Connection string
string
--url
Debug output
boolean
--debug

sequelize db:migrate:undo

Undo last migration
Undo last migrationExample values, fixed in this page — nothing here reaches a terminal
Basic
Environment
string
TasksEach one presets the form for one job
Undo last migration
env
ParametersOnly these flags are editable in the form
Environment
string
--env
Config file
path
--config
Migrations folder
path
--migrations-path
Connection string
string
--url
Debug output
boolean
--debug

sequelize model:generate

Generate a model
Generate a modelExample values, fixed in this page — nothing here reaches a terminal
Basic
Model name*
string
Attributes*
string
TasksEach one presets the form for one job
Generate model
nameattributes
ParametersOnly these flags are editable in the form
Model name
string
--name
Attributes
e.g. name:string,age:integer
string
--attributes
Overwrite existing
boolean
--force
snake_case timestamps
boolean
--underscored
Environment
string
--env
Config file
path
--config
Migrations folder
path
--migrations-path
Connection string
string
--url
Debug output
boolean
--debug
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed sequelize against its version. A form that does not match your version is not offered.