Creating a new Flet app

Overview

This document outlines the process of creating a new Flet application project.

Initialization Command

To create a new Flet app, navigate to your desired directory and run one of the following commands:

  • uv run flet create
  • flet create
  • Project Structure

    The flet create command generates the following directory and file structure:

    README.md
    pyproject.toml
    src/
      assets/
        icon.png
      main.py
    storage/
      data
      temp
    

    Important Notes

  • The flet create command will overwrite any existing README.md or pyproject.toml files in the target directory.
  • Refer to the [flet create command documentation](https://docs.flet.dev/cli/flet-create/) for more details.
  • Next Steps

    After creating the app, proceed to [running the app](https://docs.flet.dev/getting-started/running-app/).