from stor import create_app, cli from stor.auth.models import User from stor.repository.models import Resource app = create_app() cli.register(app) with app.app_context(): User.reindex() Resource.reindex()