{"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,"search_vec":"'0.84.0':25 'activ':26 'app':22 'build':14 'cli':3,32 'command':5 'command-lin':4 'current':23 'desktop':19,37 'develop':27 'flet':2,9,31 'flet-c':1 'framework':12,34 'frequent':29 'gui':33 'interfac':7 'line':6 'mobil':21,36 'python':11 'real':16 'real-tim':15 'releas':30 'time':17 'version':24 'web':18,35","created_at":"2026-04-27T16:59:27.691598+00:00","updated_at":"2026-04-27T16:59:27.691598+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.85.3","cli_name":"flet","cli_version":"Flet: 0.85.1","type":"library","homepage":"https://flet.dev","github":"https://github.com/flet-dev/flet","docs":"https://flet.dev/docs","changelog":null,"pypi":"https://pypi.org/project/flet-cli/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-06-28","next_check":"2026-07-28","install_tag":null}}