## flet serve

Serve static files from a directory with a lightweight web server, optionally adding WebAssembly-related headers for Flet web apps.

Usage

bash flet serve [-h] [-v] [-p PORT] [web_root]

Positional Arguments

  • web_root: Directory to serve.
  • * Default: ./build/web

    Options

  • --help:
  • * Alias: -h * Description: Show this help message and exit.
  • --port:
  • * Alias: -p * Description: Port number to serve the files on. Use this to customize the port if the default is already in use or needs to be changed. * Value: PORT * Default: 8000
  • --verbose:
  • * Alias: -v * Description: Enable verbose output. Use -v for standard verbose logging and -vv for more detailed output.