{"id":21353,"library":"flet-cli","title":"flet-cli","description":"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.","status":"active","version":"0.84.0","language":"python","source_language":"en","source_url":"https://github.com/flet-dev/flet","tags":["flet","cli","gui","framework","web","mobile","desktop"],"install":[{"cmd":"pip install flet-cli","lang":"bash","label":"PyPI"},{"cmd":"pip install flet-cli==0.84.0","lang":"bash","label":"Specific version"}],"dependencies":[{"reason":"core runtime required for flet run and flet build","package":"flet","optional":false},{"reason":"file watcher for hot reload","package":"watchdog","optional":true},{"reason":"project scaffolding with flet create","package":"cookiecutter","optional":true}],"imports":[{"note":"flet-cli is a separate package; the library itself is flet","wrong":"from flet_cli import flet","symbol":"flet","correct":"import flet"},{"note":"Requires keyword argument 'target' since flet 0.23.0","wrong":"flet.app(main)","symbol":"flet.app","correct":"ft.app(target=main)"}],"quickstart":{"code":"import flet as ft\n\ndef main(page: ft.Page):\n    page.title = 'Flet app'\n    page.add(ft.Text('Hello, Flet!'))\n\nft.app(target=main)","lang":"python","description":"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."},"warnings":[{"fix":"Use ft.app(target=main) instead of ft.app(main).","message":"In flet 0.23.0, ft.app() required the 'target' keyword argument; positional arguments deprecated and removed.","severity":"breaking","affected_versions":">=0.23.0"},{"fix":"Use 'flet pack' instead of 'flet build'.","message":"The flet build command is being replaced by flet pack in future versions.","severity":"deprecated","affected_versions":">=0.84.0"},{"fix":"Use 'flet run --ios' or 'flet run --android' to specify target platform.","message":"Running flet run on mobile emulator requires --ios or --android flag; otherwise defaults to web.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"pip install flet","cause":"flet package not installed, only flet-cli.","error":"ModuleNotFoundError: No module named 'flet'"},{"fix":"pip install flet-cli and ensure Python scripts directory is in PATH.","cause":"flet-cli not installed or not in PATH.","error":"flet: command not found"},{"fix":"Change ft.app(main) to ft.app(target=main).","cause":"Code uses deprecated positional argument for target.","error":"TypeError: app() missing 1 required positional argument: 'target'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}