The documentation for sequelize seems out of date as they no longer support running migrations from sequelize itself, but instead relies on sequelize-cli. Is there an example of how to use sequeliz-cli programmatically to run the latest migrations? All the documentation seems to be focused on using the client in a shell.
db.js seems to have the function db:migrate that perhaps I can include.
https://github.com/sequelize/cli/blob/master/lib/tasks/db.js
Update: @phil-court's solution is better.
Original answer here for posterity...
I dug into the code for the
sequelize db:migrate
command, and there's enough going on there that, IMHO, the simplest/best approach is to just run the command in a child process. Here's the code I used for this (as an await'ed Promise):