python -m http.server
DevelopmentStart a simple HTTP server
Options & Flags
Available options for this command
portPort number (default: 8000)
Examples
Common usage examples
Start server on port 8000
python -m http.serverStart server on port 3000
python -m http.server 3000Notes
- Serves files from current directory
- Useful for quick testing
Related Commands
You might also find these useful