Skip to content

Flet CLI#

Flet command-line interface (CLI) provides an easy way to create, run, test and package Flet apps.

Usage#

flet [-h] [--version]
              {create,run,build,pack,publish,serve,doctor} ...

Options#

--help#

Show this help message and exit.

Aliases: -h

--version#

Show program's version number and exit.

Aliases: -V

Subcommands#

  • build: Build a Flet Python app into a platform-specific executable or.
  • create: Create a new Flet project using a predefined template.
  • doctor: Get information about the system and environment setup.
  • pack: Package a Flet application into a standalone desktop executable or app bundle.
  • publish: Compile and package a Flet app as a standalone static web application.
  • run: Run a Flet application in hot reload mode.
  • serve: Serve static files from a directory with a lightweight web server,.