Ask coding questions

← Back to all posts
Use flask CLI
NicolasRemond (3)

Instead of have to run the code with a main and the button "start", I would like to use the command line of Flask, from the shell.

Commentshotnewtop
NicolasRemond (3)

I found how to do that : https://stackoverflow.com/a/41556730/9494790

Just open the shell (F1, then type shell) and type :

python -m flask run --host=0.0.0.0

Lord_Poseidon (111)

@NicolasRemond good! I was about to answer...