--init command creates the default configuration file required by the Lumo UI plugin.
Syntax
What It Does
The init command performs the following actions:- Checks if
lumo.propertiesalready exists - Creates a new
lumo.propertiesfile in your project root - Populates it with default configuration template
- Displays required dependencies for your project
Output
When successful, you’ll see:For Kotlin Multiplatform projects, the dependencies list will show Compose Multiplatform dependencies instead.
Generated Configuration File
The command creates alumo.properties file with this template:
Configuration Parameters
The name of your application’s theme. This will be used in generated component files.Example:
AppTheme, MyAppThemeRelative path from project root to the directory where component files will be generated.Example:
app/src/main/java/com/example/ui/componentsThe package name for generated component files.Example:
com.example.ui.componentsSet to
true if you’re using Kotlin Multiplatform. This changes the dependency requirements and code generation behavior.Error Cases
Next Steps
After initialization:- Edit the configuration file - Replace placeholder values with your actual project paths and package names
-
Add required dependencies - Copy the displayed dependencies to your
build.gradle.ktsfile - Run setup - Use the setup command to generate theme files and verify configuration