Module command는 app 또는 library 안의 domain module을 생성하고 관리합니다. 새로운 model-backed feature를 추가하거나 기존 module에 UI companion file을 추가할 때 사용합니다.
Module name은 space 제거 후 lower-case first-letter style로 정규화되어 Akan module file convention과 맞춰집니다.
create-module
Create a new domain module template inside an app or library.
The generator creates the standard Akan module files and can additionally create route-level page files when `--page` is enabled.
Signature
Arguments
Argument
Type
Required
Default
Description
moduleName
String
yes
-
Module name. Spaces are removed and the first letter is lowercased.
moduleName
Type
String
Required
yes
Default
-
Description
Module name. Spaces are removed and the first letter is lowercased.
Options
Option
Type
Default
Enum / Flag
Description
--page
Boolean
false
-
Create page files with the module.
--page
Type
Boolean
Default
false
Enum / Flag
-
Description
Create page files with the module.
Examples
remove-module
Remove an existing module from an app or library.
Use this when the module's domain definitions, generated connections, and UI companion files should be removed from the target system.
Signature
Examples
create-view
Create a full View component for an existing module.
Use it when the module needs a detail-oriented or rich page-level UI surface beyond generated data definitions.
Signature
Examples
create-unit
Create a Unit component for rendering repeated module items.
Use it for list rows, cards, or compact displays that consume light module data in application UI.
Signature
Examples
create-template
Create a Template component for module forms and editing UI.
Use it when the module needs reusable form structure connected to standard store/form workflows.