# 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:

wiz init [ITEM_TYPE] [PROJECT_NAME]
  • ITEM_TYPE is 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, run wiz init edetailer to initialize the e-Detailer project.

  • PROJECT_NAME is your project name. For example, run wiz init edetailer my-edetailer to create your e-Detailer project in the my-edetailer project 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 (opens new window). 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 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: use ESLint, Vuex, 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.

Last updated: 8/2/2022, 10:48:35 AM