From 2ccf9a948682850e9d7cfdef7e4797fba419b5df Mon Sep 17 00:00:00 2001 From: Rishabh Chawla Date: Sat, 29 Sep 2018 18:01:09 +0530 Subject: [PATCH] docs(init): update init documentation --- packages/init/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/init/README.md b/packages/init/README.md index 932e619d912..14efc94e885 100644 --- a/packages/init/README.md +++ b/packages/init/README.md @@ -27,6 +27,19 @@ init([null, null, ...myPacakges]); ``` ### CLI (via `webpack-cli`) +**For `default` generator** + ```bash npx webpack-cli init -``` \ No newline at end of file +``` +**For `addon` generator** +1. Using package on `npm` + +```bash +npx webpack-cli init webpack-scaffold-[name] +``` +2. Using path to local directory + +```bash +npx webapck-cli init [path] +```