Earlier while using Manager from flask_script we can add command to Manager like this.
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
manager = Manager(app)
manager.add_command('db', MigrateCommand)
Now in this new flask app I am not using flask script, so how do I add command db to like flask run is?
The flask db
command is registered automatically when the extension is installed, there is nothing that you need to do on the application side.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With