fsda_cli 1.1.0 copy "fsda_cli: ^1.1.0" to clipboard
fsda_cli: ^1.1.0 copied to clipboard

Feature Slice Driven Architecture CLI for workspace scaffolding and code generation.

FSDA CLI #

Feature Slice Driven Architecture CLI for workspace scaffolding and code generation.

🚀 Installation #

Before installing FSDA CLI, make sure your computer has:

  • Dart SDK
  • Flutter SDK

Then, run the following command to install FSDA CLI globally:

dart pub global activate fsda_cli

Documentation #

For detailed usage instructions and guides, please refer to the FSDA CLI Documentation.

Workspace Rule #

Run most commands from workspace root containing fsda.yaml.

Commands requiring workspace root:

  • fsda configure
  • fsda configure-app
  • fsda list-pckg
  • fsda add-pckg
  • fsda gen-app
  • fsda gen-module
  • fsda gen-feature
  • fsda regen-feature
  • fsda gen-slice
  • fsda gen-enum <enum_name> -f
  • fsda ui-main
  • fsda ui-dialog
  • fsda ui-form
  • fsda ui-form-dialog
  • fsda ui-lsh
  • fsda ui-lsv
  • fsda ui-pag
  • fsda ui-pmi
  • fsda ui-action
  • fsda ui-sec
  • fsda gen-ui
  • fsda reg
  • fsda di
  • fsda rm-reg
  • fsda compose-main
  • fsda compose-form
  • fsda compose-form-dialog
  • fsda compose-pag
  • fsda compose-pmi
  • fsda compose-action
  • fsda compose-sec
  • fsda fix-import [-m

Command allowed outside workspace root:

  • fsda create

Supported Sequence Templates #

  • M
  • Mp
  • Mr
  • Mrp
  • R
  • Rp
  • Rpag
  • Rs
  • Rsp
  • Rof

Supported UI Codes #

  • main
  • dialog
  • form
  • form_dialog
  • lsh
  • lsv
  • pag
  • pmi
  • action
  • sec

Recommended UI command mapping:

  • main -> fsda ui-main
  • dialog -> fsda ui-dialog
  • form -> fsda ui-form
  • form_dialog -> fsda ui-form-dialog
  • lsh -> fsda ui-lsh
  • lsv -> fsda ui-lsv
  • pag -> fsda ui-pag
  • pmi -> fsda ui-pmi
  • action -> fsda ui-action
  • sec -> fsda ui-sec

Legacy compatibility:

  • fsda gen-ui is still available in v1.1.0 and prints a migration hint.

Compose Notes #

  • compose-main/form/pag

    build page scaffolds and sync route wiring. Existing base route builder is preserved if already customized.

  • compose-form-dialog

    build form page scaffold using dialog widget as primary UI surface (for showDialog usage, no route injection).

  • compose-pmi

    injects popup action/provider/listener/method into existing page.

  • compose-action

    injects provider/listener/method only for manual custom button placement.

  • compose-sec

    composes retrieval section style into existing page (provider auto-bootstrap, execution trigger method, section method generation).

Quick Start #

fsda create fsda_base
cd fsda_base
fsda configure

fsda list-pckg
fsda add-pckg app_core
fsda add-pckg infra_dio

fsda gen-app demo_app
fsda configure-app demo_app

fsda gen-module finance
fsda gen-feature wallet -m finance --ds remote
fsda gen-slice detail -f wallet -m finance -s Rp
fsda gen-slice delete -f wallet -m finance -s Mp
fsda gen-enum modifier_selection_type -f wallet -m finance --values single,multiple

fsda ui-main detail -f wallet -m finance
fsda ui-pmi delete -f wallet -m finance
fsda ui-dialog delete -f wallet -m finance
fsda ui-action delete -f wallet -m finance
fsda ui-form create -f wallet -m finance --fields title,description
fsda ui-form-dialog update -f wallet -m finance --fields name,type

fsda reg finance -a demo_app
fsda di finance -a demo_app

fsda compose-main detail -f wallet -m finance -a demo_app -p wallet_detail_page
fsda compose-form-dialog update -f wallet -m finance -a demo_app -p wallet_update_page
fsda compose-pmi delete -f wallet -m finance -a demo_app -p wallet_detail_page
fsda compose-action delete -f wallet -m finance -a demo_app -p wallet_edit_page

fsda fix-import -a demo_app
0
likes
40
points
272
downloads

Publisher

unverified uploader

Weekly Downloads

Feature Slice Driven Architecture CLI for workspace scaffolding and code generation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer, args, freezed_annotation, json_annotation, mason, mason_logger, path, yaml

More

Packages that depend on fsda_cli