loading...empty;done;/cli-environment-control/:-uriCLI Tutorial: Environment Start/Stop | iNET.elastic Dev Docs

CLI Tutorial: Environment Start/Stop

Among the most common operations for environment management provided by CLI, the start and stop ones can be denoted. Wise usage of these methods can help to significantly cut your spends, especially for development and testing environments (for example, you can stop them for the nighttime, while you are sleeping, and start again at the morning to continue the development).

  1. In order to stop an environment, that is temporarily non-required, execute the following command (where the highlighted {env_name} placeholder needs to be substituted with the corresponding environment name):
1
~/jelastic/environment/control/stopenv --envName {env_name}

CLI stop environment method As you can see, CLI responses with the “result” property equal to 0, meaning that the operation passed successfully and without errors.

  1. Later on, you can start your environment with a similar startenv method and make it operable again:
1
~/jelastic/environment/control/startenv --envName {env_name}

CLI start environment method

Yes, the environment management is that simple!

What’s next?

Check out some other CLI methods