Commands.app

python -m http.server

Development

Start a simple HTTP server

Options & Flags
Available options for this command
port

Port number (default: 8000)

Examples
Common usage examples

Start server on port 8000

python -m http.server

Start server on port 3000

python -m http.server 3000
Notes
  • Serves files from current directory
  • Useful for quick testing
Related Commands
You might also find these useful