CLI Commands¶
Flet-Easy provides a powerful command-line interface (CLI) to streamline development workflows. The CLI helps you create project structures, manage dependencies, and automate common tasks.
Overview¶
The Flet-Easy CLI (fs) offers:
- Project Scaffolding: Create new projects with MVC structure
- Template Management: Use pre-built project templates
- Development Tools: Utilities for building and testing
- Code Generation: Generate boilerplate code automatically
Installation¶
The CLI is automatically installed with Flet-Easy when using the full installation:
Or install just the CLI dependencies:
Basic Usage¶
Check Version¶
Get Help¶
Commands¶
fs init - Create New Project¶
Create a new Flet-Easy project with a complete MVC structure.
Syntax:
Interactive Setup: When you run fs init, you'll be prompted for:
- Project Name: The name of your project directory
- App Name: The main application name
- Author: Your name or organization
- Description: Brief project description
- License: Choose from common licenses (MIT, Apache, etc.)
- Python Version: Minimum Python version requirement
Example Session:
$ fs init
[1/6] Project name (my-flet-app): todo-app
[2/6] App name (TodoApp): Task Manager
[3/6] Author (Your Name): John Doe
[4/6] Description: A simple task management application
[5/6] License [MIT]: MIT
[6/6] Python version (3.8): 3.9
✅ Project created successfully!
📁 Project location: ./todo-app/