1# For bash do this:
2set FLASK_APP=<app_name>
3
4# For powershell do this:
5$env FLASK_APP=<app_name>
6
7# Run it like this
8flask run
1# manage.py
2
3from flask_script import Manager
4
5from myapp import app
6
7manager = Manager(app)
8
9@manager.command
10def hello():
11 print "hello"
12
13if __name__ == "__main__":
14 manager.run()
15