This post will be updating constantly to keep different flask commands cheat sheet.

Set the environment variable FLASK_APP to be application.py

1
export FLASK_APP=application.py

Change Flask running port

1
export FLASK_RUN_PORT=8000