flet create

**Description:** Command-line tool to create a new Flet project using a predefined template. It sets up the initial directory structure, metadata, and required files.

**Usage:**

flet create [output_directory]

**Positional Arguments:**

  • output_directory: Directory to create the project in. Defaults to the current directory (.).
  • **Options:**

  • --project-name PROJECT_NAME:
  • * Specifies the name of the new Flet project. * Used in metadata files (e.g., pyproject.toml).
  • --description DESCRIPTION:
  • * Provides a short description for the new Flet project. * Appears in generated metadata.
  • --template {app,extension}:
  • * Specifies the template to use for the project. * Possible values: app, extension. * Default: app.
  • --template-ref TEMPLATE_REF:
  • * Specifies a Git reference (branch, tag, commit ID) for the Flet template repository (flet-dev/flet-app-templates). * Useful for custom or development versions of templates.
  • --verbose or -v:
  • * Enables verbose output. * -vv for more detailed output.
  • --help or -h:
  • * Displays the help message and exits.