Direct Mode and Interactive Mode
Overview
In the direct mode (flags), you enter the command completely, that is, including its flags and respective arguments on the same line, and then press the "Enter" key to execute it. Example:
ssd api-management create api "Tech Writer API" --path "/tech-writer-api/v1"
However, if you just type ssd
followed by a command without flags and arguments and press the "Enter" key, the interactive mode will be activated.
In this mode, questions are presented in sequence so that you can specify each argument of the required flags one by one.
To run the create api
command through the interactive mode, for example, just type:
ssd api-management create api
When pressing the "Enter" key, the following questions will be presented in sequence:
For each question, specify the argument and press "Enter".
Questions corresponding to optional flags are indicated by the expression (OPTIONAL)
before the question.
Such questions can be skipped.
Suggested arguments are indicated in parentheses after the question.
To opt for the suggested argument, simply press the "Enter" key on your keyboard.
Some questions present the possible arguments as options to be selected.
Use the arrow keys on your keyboard to select the option you want and press "Enter".
You can also type a part of the desired option to filter it.
The interactive mode will only be enabled if no flag is specified at all. If you choose to use the direct mode, you must specify all the required flags for the command. Otherwise, an error will be returned and the operation will not be executed. |
Share your suggestions with us!
Click here and then [+ Submit idea]