Skip to content

Commit ce7e981

Browse files
committed
docs: testing cli help guide
1 parent 1572e0e commit ce7e981

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,29 @@ npm run namemigration -- --name desctiption_of_changes
9292
```
9393

9494

95+
### Testing CLI commands during development
96+
97+
98+
Make sure you have not `adminforth` globally installed. If you have it, remove it:
99+
100+
101+
```sh
102+
npm uninstall -g adminforth
103+
```
104+
105+
Then, in the root of the project, run once:
106+
107+
```
108+
cd adminforth/adminforth
109+
npm run build
110+
```
111+
112+
This will automatically make an npm link to the `adminforth` package in the root of the project.
113+
114+
Then, go to testing app, e.g. created with CLI, and use next command:
115+
116+
```
117+
npx -g adminforth <your command under development>
118+
```
119+
120+
This will always run latest version of adminforth package.

0 commit comments

Comments
 (0)