Table of Contents
Getting Started with CLI
Setup the CLI tool before attempting to use it. For more information please see Configuring the CLI Tool Setup.
CLI Modes
The CLI tool will be able to use in two different modes, which are namely the interactive mode and the single command line mode. In both modes the user must login to be able to execute commands successfully.
...
Call
stratos.sh
to log-in to Stratos Controller using this mode:
As mentioned previously, providing the password as an argument is optional. The CLI tool will prompt for the password.Code Block $ stratos.sh -u <username> -p <password>
Example:
$ stratos.sh -u admin@wso2.org -p admin123The log-in help will be shown, if you have provided wrong parameters to log-in.
As mentioned previously, the password is prompted only if the password argument is not passed.Once you have successfully logged in, you can use the
help
command to get an idea of the various actions that can be carried out via the interactive command line shell interface named Stratos .Code Block stratos> help
The output will appear as follows:
...