Flask 3 · Setup and CLI

Hello world app

The smallest Flask application, saved as app.py.

from flask import Flask

app = Flask(__name__)

@app.get("/")
def index():
    return "Hello, World!"

Official Flask 3 documentation

More setup and cli commands

All setup and cli commands · Flask 3 cheatsheet

Was this page helpful?