网址:https://pypi.org/project/Flask-Script/
文档:https://flask-script.readthedocs.io/en/latest/
1、安装
2、新建manager.py文件
3、导入Manager和app
4、代码
from flask_script import Manager from app import app manager = Manager(app) if __name__ == '__main__': manager.run()
5、启动
python manager.py runserver
6、查看其它参数
python manager.py runserver --help