Explain the use of the `flask run` command.
Instruction: What does the `flask run` command do, and when would you use it?
Context: This question assesses the candidate's familiarity with running Flask applications using the Flask Command Line Interface.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
flask run starts Flask's development WSGI server. Use it for local development and manual debugging, not to serve a production deployment.
Select the application explicitly when helpful. For a module hello.py containing app, use flask --app hello run. A factory can be selected with flask --app 'hello:create_app()' run. Flask also supports documented automatic discovery and environment configuration; specifying the target makes failures easier to diagnose...