Registry / web-framework / flet-cli

flet-cli

JSON →
library0.85.3pypypi✓ verified 92d ago

Command-line interface for Flet, a Python framework for building real-time web, desktop, and mobile apps. Current version 0.84.0, actively developed with frequent releases.

pip install flet-cli
INSTALL
IMPORT
SIG · FLET-CLI
F
flet-cli
web-frameworkpythonv0.85.3
Install
5.5s avg
Import
1789ms
Disk
58MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.85.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 5.9s
py 3.11
✓ —
✓ 5.7s
py 3.12
✓ —
✓ 5.15s
py 3.13
✓ —
✓ 5.05s
py 3.9
1/2 runs
1/2 runs
58MB installed
● package 58MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

flet
✓ import flet
✗ from flet_cli import flet
flet-cli is a separate package; the library itself is flet
flet.app
✓ ft.app(target=main)
✗ flet.app(main)
Requires keyword argument 'target' since flet 0.23.0

Create a minimal Flet app. Save as hello.py and run with 'flet run hello.py' (web) or 'flet run hello.py --ios' for mobile.

import flet as ft def main(page: ft.Page): page.title = 'Flet app' page.add(ft.Text('Hello, Flet!')) ft.app(target=main)
flet --version
Debug
Known issues
breakingIn flet 0.23.0, ft.app() required the 'target' keyword argument; positional arguments deprecated and removed.
fix
Use ft.app(target=main) instead of ft.app(main).
affects: >=0.23.0
deprecatedThe flet build command is being replaced by flet pack in future versions.
fix
Use 'flet pack' instead of 'flet build'.
affects: >=0.84.0
gotchaRunning flet run on mobile emulator requires --ios or --android flag; otherwise defaults to web.
fix
Use 'flet run --ios' or 'flet run --android' to specify target platform.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'flet'
flet package not installed, only flet-cli.
fix
pip install flet
flet: command not found
flet-cli not installed or not in PATH.
fix
pip install flet-cli and ensure Python scripts directory is in PATH.
TypeError: app() missing 1 required positional argument: 'target'
Code uses deprecated positional argument for target.
fix
Change ft.app(main) to ft.app(target=main).
Upgrade
Version history
0.85.3latest on PyPI · released Jun 8, 2026
Audit
Dependencies
fletrequiredcore runtime required for flet run and flet build
watchdogoptionalfile watcher for hot reload
cookiecutteroptionalproject scaffolding with flet create
Agent activity
4 hits · last 30 days
node
4
Resources
flet-cli — pip install flet-cli · libregistry