Skip to content
← Back to Community
Use flask CLI
Profile icon
NicolasRemond

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.

Voters
Profile icon
ManuMohan1
Profile icon
PaoloAmoroso
Profile icon
NicolasRemond
Comments
hotnewtop
Profile icon
NicolasRemond

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

Profile icon
Lord_Poseidon

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