Getting started with Ewizard CLI
Software requirements
To start working with eWizard CLI, follow the below steps:
- Install the Node.js platform from the official site
The recommended version is 10.16.0
- Install Git.
Installing Ewizard CLI
With Node.js installed, you are able to use NPM (Node Package Manager). Install Ewizard CLI with NPM:
npm install -g ewizard-cli
For more details on how to develop e-Detailers with eWizard CLI, visit our documentation site.
For detailed information about ewizard-cli commands list, refer to ewizard-cli commands documentation.
Otherwise, below is the quickstart guide for you!
Authorize
For authorization, do the following:
- Enter the command below:
wiz login
The authorization form opens in your browser.
-
Enter your login and password.
-
Click sign in
.
Congratulations! You are logged in!
Generators
Use a built-in generator to create the initial project structure and install all dependencies:
wiz init
After successful project creation, you can use other eWizard CLI commands.
Components
wiz install
is used to fetch and install components and project dependencies. Under hood, it works on the NPM mechanisms.
Execute the command below to install the component from this or this list:
wiz install [component-name]
Development process
Execute the command below to build a project:
wiz dev
The best practice is using wiz dev
with the --live
option. This command builds your project and starts a dev server. By default, the dev server is running on port 3000. So that, open the link http://localhost:3000
in a browser to see your project with live reloading. CLI tracks changes in files and reloads the presentation in the browser!