Create database from command. Start python from terminal. from api import db, create_app db.create_all(app=create_app())