flet pack

Packages a Flet application into a standalone desktop executable or app bundle using PyInstaller.

Usage

flet pack [-h] [-v] [-i ICON] [-n NAME] [-D] [--distpath DISTPATH]
                   [--add-data [ADD_DATA ...]] [--add-binary [ADD_BINARY ...]]
                   [--hidden-import [HIDDEN_IMPORT ...]]
                   [--product-name PRODUCT_NAME]
                   [--file-description FILE_DESCRIPTION]
                   [--product-version PRODUCT_VERSION]
                   [--file-version FILE_VERSION] [--company-name COMPANY_NAME]
                   [--copyright COPYRIGHT]
                   [--codesign-identity CODESIGN_IDENTITY]
                   [--bundle-id BUNDLE_ID] [--debug-console DEBUG_CONSOLE]
                   [--uac-admin]
                   [--pyinstaller-build-args [PYINSTALLER_BUILD_ARGS ...]]
                   [-y]
                   script

Positional Arguments

  • **script**
  • * Description: Path to the Python script that launches your Flet app. * Required: true

    Options

  • **--add-binary**
  • * Description: Additional binary files to be added to the executable. Format: source:destination[:platform]. * Value: ADD_BINARY*
  • **--add-data**
  • * Description: Add additional non-binary files or folders to the bundle. Accepts one or more arguments in the form source:destination. * Value: ADD_DATA*
  • **--bundle-id**
  • * Description: Bundle identifier used for macOS app packaging.
  • **--codesign-identity**
  • * Description: Code signing identity to sign the app bundle (macOS only).
  • **--company-name**
  • * Description: Company name metadata for the Windows executable.
  • **--copyright**
  • * Description: Copyright string embedded in the executable (Windows) or bundle (macOS).
  • **--debug-console**
  • * Description: Show Python debug console window. Useful for troubleshooting runtime errors.
  • **--distpath**
  • * Description: Directory where the packaged app will be placed. * Default: dist
  • **--file-description**
  • * Description: File description to embed in the executable (Windows).
  • **--file-version**
  • * Description: File version for the executable in n.n.n.n format (Windows only).
  • **--help**
  • * Description: Show this help message and exit. * Aliases: -h
  • **--hidden-import**
  • * Description: Add Python modules that are dynamically imported and not detected by static analysis. * Value: HIDDEN_IMPORT*
  • **--icon**
  • * Description: Path to an icon file for your executable or app bundle. Supported formats: .ico (Windows), .png (Linux) and .icns (macOS). * Aliases: -i
  • **--name**
  • * Description: Name for the generated executable (Windows) or app bundle (macOS). * Aliases: -n
  • **--onedir**
  • * Description: Create a one-folder bundle instead of a single-file executable (Windows only). * Aliases: -D
  • **--product-name**
  • * Description: Product name to be embedded in the executable (Windows) or bundle (macOS).
  • **--product-version**
  • * Description: Product version for the executable (Windows) or bundle (macOS).
  • **--pyinstaller-build-args**
  • * Description: Additional raw arguments to the underlying pyinstaller build command. * Value: PYINSTALLER_BUILD_ARGS*
  • **--uac-admin**
  • * Description: Request elevated (admin) permissions on application start (Windows only). Adds a UAC manifest to the executable.
  • **--verbose**
  • * Description: Enable verbose output. * Aliases: -v (standard verbose), -vv (more detailed)
  • **--yes**
  • * Description: Enable non-interactive mode. All prompts will be skipped. * Aliases: -y