Appearance
Initialization
Use these commands and options to initialize a scaffolding template: e-Detailer, email, landing page, etc. The scaffolding template provides a basic directory structure and the default components. You can use this template as a blank page to start developing your custom item.
wiz init [options]
Use the wiz init command to initialize a scaffolding template.
To initialize a specific item type in the specific directory:
sh
wiz init [ITEM_TYPE] [PROJECT_NAME]ITEM_TYPEis the item type you want to initialize:edetailer,email,site, etc. If specify the item type, you don't have to select it from the menu. For example, runwiz init edetailerto initialize the e-Detailer project.PROJECT_NAMEis your project name. For example, runwiz init edetailer my-edetailerto create your e-Detailer project in themy-edetailerproject directory.
Options | Description |
|---|---|
-t, --template [LINK] | Specify the link to the scaffolding template to initialize your project. The LINK is a URL to a git repository for the item scaffolding template. For example, to initialize the e-Detailer template, enter wiz init -t https://git.qapint.com/ewizardjs/templates/edetailer.git. |
-v, --template-version [VERSION] | Specify the template version. For example, enter wiz init -v 4.17.0 and select edetailer from the menu. eWizard CLI initializes the specified version of the template instead of the latest version. |
-d, --default | Initializes the selected template with the default parameters. For example, when you enter wiz init -d and select the item template from the menu, eWizard CLI starts initializing this template without asking you to enter any parameters: whether to use Vuex, enter the description, name, and author. |
-h, --help | Shows help for the wiz init command and options. For example, wiz init -h. |
When you specify the template link, eWizard CLI ignores the templates you select from the template selection menu. It means that if you select the email template from the menu, eWizard CLI initializes the e-Detailer template using the specified e-Detailer repository link. You can specify the link to your local template directory instead of the repository.
When you initialize the template, eWizard CLI clones the repository template to the .wiz directory. This directory is outside your project directory and contains all the templates you initialize: e-Detailer, email, site, etc.