Files
cheatsheet-tldr/tldr/flask
2025-12-02 00:21:15 +00:00

22 lines
458 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# flask
> A general utility script for Flask applications. Loads the application defined in the `$FLASK_APP` environment variable.
> More information: <https://flask.palletsprojects.com/en/stable/cli/>.
- Run a development server:
`flask run`
- Show the routes for the app:
`flask routes`
- Run a Python interactive shell in the app's context:
`flask shell`