Installation
The Flet CLI is installed automatically when you install Flet:Available Commands
The Flet CLI provides the following commands:Development Commands
flet run
Run a Flet application in hot reload mode for rapid development
flet create
Create a new Flet project from a template
Build Commands
flet build
Build platform-specific executables and packages
flet pack
Package desktop apps using PyInstaller
Deployment Commands
flet publish
Publish your app as a static web application
flet serve
Serve a static web app locally
Utility Commands
flet doctor
Check your development environment
flet devices
List available devices for testing
flet emulators
Manage mobile emulators
Global Options
All Flet CLI commands support these global options:Display version information for Flet, Flutter, and Pyodide
Display help information for any command
Enable verbose output for debugging
Quick Start
Here’s a typical workflow using the Flet CLI:1. Create a New Project
2. Run in Development Mode
3. Build for Production
Build for different platforms:4. Publish to Web
Configuration
Many CLI options can be configured in your project’spyproject.toml file:
pyproject.toml settings.
Environment Variables
Several environment variables can control CLI behavior:FLET_ASSETS_DIR- Default assets directoryFLET_WEB_RENDERER- Web renderer (auto, canvaskit, skwasm)FLET_WEB_ROUTE_URL_STRATEGY- URL routing strategy (path, hash)FLET_WEB_NO_CDN- Disable CDN usage for offline buildsFLET_ANDROID_SIGNING_KEY_STORE- Path to Android keystoreFLET_ANDROID_SIGNING_KEY_STORE_PASSWORD- Keystore passwordFLET_ANDROID_SIGNING_KEY_PASSWORD- Key passwordFLET_ANDROID_SIGNING_KEY_ALIAS- Key alias
Getting Help
For detailed help on any command:Next Steps
Run Command
Learn about hot reload and development mode
Build Command
Build apps for all platforms
Create Command
Scaffold new Flet projects
Publish Command
Deploy static web applications