@@ -10,6 +10,23 @@ dart pub global activate nylo_installer
1010
1111## Usage
1212
13+ ```
14+ nylo <command> [arguments]
15+
16+ Commands:
17+ new <project_name> Create a new Nylo project
18+ init Set up the Metro CLI alias
19+ clean Run flutter clean and flutter pub get
20+
21+ Options:
22+ -h, --help Show usage information
23+ -v, --version Show version
24+ ```
25+
26+ ## Commands
27+
28+ ### ` nylo new <project_name> `
29+
1330Create a new Nylo project:
1431
1532``` bash
@@ -18,28 +35,36 @@ nylo new my_app
1835
1936This will:
20371 . Clone the Nylo template
21- 2 . Configure your project name across all platform files
38+ 2 . Configure your project name across all platform files (Android, iOS, pubspec.yaml, .env)
22393 . Install Flutter dependencies
2340
24- ### Options
41+ Project names are automatically converted to snake_case.
2542
26- ```
27- nylo new <project_name>
43+ ### ` nylo init `
2844
29- Options:
30- -h, --help Show usage information
31- -v, --version Show version
45+ Set up the Metro CLI alias for an existing Nylo project:
46+
47+ ``` bash
48+ nylo init
3249```
3350
34- ## Metro CLI
51+ This configures the ` metro ` command in your shell so you can use it from anywhere within your project.
52+
53+ ### ` nylo clean `
3554
36- To set up the Metro CLI, run :
55+ Clean your Flutter project and reinstall dependencies :
3756
3857``` bash
39- nylo init
58+ nylo clean
4059```
4160
42- Metro helps generate files for your Nylo project:
61+ This runs:
62+ 1 . ` flutter clean ` - Removes build artifacts
63+ 2 . ` flutter pub get ` - Reinstalls dependencies
64+
65+ ## Metro CLI
66+
67+ Once Metro is set up via ` nylo init ` , you can generate files for your Nylo project:
4368
4469``` bash
4570metro make:page HomePage
0 commit comments