Environment Start/Stop
The start and stop operations are among the most commonly used methods for environment management via CLI. Leveraging these commands effectively can lead to substantial cost savings, particularly for development and testing environments. For instance, you might choose to stop these environments during periods of inactivity, such as overnight, and restart them in the morning to resume development.
To stop an environment that is temporarily not in use, use the following command, replacing the highlighted `{env_name}` placeholder with the name of the environment you wish to stop:
~/jelastic/environment/control/stopenv --envName {env_name}
As depicted, the CLI responds with the “result” property set to 0, indicating a successful operation without errors.
Subsequently, you can use a similar `startenv` method to restart your environment and make it operational again.
~/jelastic/environment/control/startenv --envName {env_name}
Indeed, environment management is that straightforward!

