python3 -m http.server 8000

Category: Python & pip

python3 -m http.server 8000

Start a simple HTTP file server on port 8000

Starts a simple HTTP server that serves files from the current directory on port 8000. Great for quickly sharing files on a local network.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.