Flask 3 · Blueprints, database and CORS

Manage migrations

Create and apply database migrations with Flask-Migrate.

pip install flask-migrate
flask --app app db init
flask --app app db migrate -m "Add users"
flask --app app db upgrade

Official Flask 3 documentation

More blueprints, database and cors commands

All blueprints, database and cors commands · Flask 3 cheatsheet

Was this page helpful?