The Command Line Interface (CLI) can be used by administrators to carry out a host of actions (e.g., create a tenant, deploy a partition, deploy a cartridge, and more.)
To configure the CLI tool
- Extract the CLI tool from the following ZIP file to the home directory or a place of your choice.
Export the host and port of Stratos Manager (SM) as environment variables in your
bashrcfile before using the CLI tool.
Export the following environment variables by adding them into your
Navigate to the
Add execute permission to the script.
chmod +x ./stratos.sh
Optionally, you can export your username and password as environment variables.
If you only export your username, you will be prompted to enter your password.
Log into the CLI tool using the following command:
./stratos.sh -u admin -p admin
If you have not exported your username and password.
./stratos.sh -p admin
If you have only exported your username.
If you have exported your username and password or if you wish to be prompted for your username and password later.
For more information on how to use the CLI tool, see the CLI Tool Guide.