Back to Flutter Rust Bridge

Frb Codegen Command Create

website/docs/generated/_frb-codegen-command-create.mdx

2.13.01.3 KB
Original Source
Create a new Flutter + Rust project

Usage: flutter_rust_bridge_codegen create [OPTIONS] <NAME>

Arguments:
  <NAME>
          Name of the new project

Options:
      --org <ORG>
          The organization responsible for your new Flutter project, in reverse domain name notation

      --rust-crate-name <RUST_CRATE_NAME>
          The name of the generated Rust crate

      --rust-crate-dir <RUST_CRATE_DIR>
          The directory of the generated Rust crate, relative to the project path

  -t, --template <TEMPLATE>
          The template type to use to generate the flutter files

          [default: app]

          Possible values:
          - app:    (default) a Flutter application
          - plugin: A shareable Flutter project that can be used across multiple Flutter applications

      --integration-backend <INTEGRATION_BACKEND>
          The integration backend used to compile and bundle Rust

          [default: cargokit]

          Possible values:
          - cargokit:      (default) Use Cargokit and generated platform scaffold
          - native-assets: Use Dart/Flutter Native Assets build hooks

      --platforms <PLATFORMS>
          Specify the platforms to be supported

      --skip-fvm-install
          Skip fvm installation

  -h, --help
          Print help (see a summary with '-h')