Skip to main content
All CollectionseWizard.js frameworkeWizard CLI
Authentication and configuration
Authentication and configuration
eWizard Team avatar
Written by eWizard Team
Updated over a year ago

Use these commands and options to log in to your eWizard instance.

wiz login [options]


Options

Description

-i, --instance [YOUR INSTANCE]

Specify an instance to log in. For example, wiz login -i https://viseven.ewizard.io. You're redirected to your browser sign-in page.

-u, --user [USER NAME]

Specify your user name. For example, wiz login -u user.name@viseven.com.

-p, --password [PASSWORD]

Specify your password. For example, wiz login -p qwerty12345.

-h, --help

Show help for the wiz login command and options. For example, wiz login -h.

For example, run this command and options to log in to the Viseven instance with your user name and password.

wiz login -i https://viseven.ewizard.io -u user.name@viseven.com -p qwerty12345

TIP: When you run the wiz login command to open the eWizard sign-in page in your default browser, the console switches to the standby mode. Once logged in, you can close the browser and continue working with eWizard CLI.


wiz logout

Use wiz logout to log out of your eWizard CLI. The logout operation opens the browser message.

This command has no options.

wiz config [options]

Use the wiz config command to show the URL of your current eWizard instance. Use this command with options to set the URL of your current eWizard instance or reset the instance configuration.


Options

Description

-w, --ewizard [YOUR INSTANCE]

Specify the eWizard instance to use with eWizard CLI. The instance starts with https:// by default. For example, wiz config -w https://viseven.ewizard.io.

-r, --reset

This command resets your eWizard CLI configuration in the ./.wiz/config.json file. For example, wiz config -r. After you perform the reset, eWizard CLI asks you to specify your eWizard instance and log in again. The new configuration is written in the config.json file.

-h, --help

Show help for the wiz config command and options. For example, wiz config -h.


WARNING: When you log in for the first time, eWizard CLI creates the .wiz service directory in the root directory where you've installed eWizard CLI. This directory contains the config.json file with your eWizard instance URL, token, etc. If you delete this directory, you will need to log in and enter your instance again.


Did this answer your question?