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

Set the environment variable FLASK_APP to be application.py

export FLASK_APP=application.py

Change Flask running port

export FLASK_RUN_PORT=8000