The Eclipse Che command-line management tool is called chectl. It is used for operations on the Che server (start, stop, update, delete) and on workspaces (list, start, stop, inject) and to generate devfiles.
Installing the chectl management tool on Windows
This section describes how to install the chectl management tool on Windows.
Procedure
-
Run the following command in the PowerShell terminal:
C:\Users> Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://www.eclipse.org/che/chectl/win/'))The chectl binary is installed at
C:\ProgramData\chectl.
Additional resources
Installing the chectl management tool on Linux or macOS
This section describes how to install the chectl management tool on Linux or macOS.
Prerequisites
-
The directory
/usr/local/binis in the user$PATH. -
The
sudocommand is configured for the current user. -
Remove all old or undesired versions of
chectl.
Procedure
-
Run the following command in the terminal (this downloads and executes the
install.shscript):$ bash <(curl -sL https://www.eclipse.org/che/chectl/)
-
Run the following command to verify that the
chectlbinary used is/usr/local/bin/chectl:$ which chectl /usr/local/bin/chectl
-
Run the following command to verify that the version of chectl that is the expected one.
$ chectl --version
To identify the latest stable release, see the list of chectl releases and search for a release not containing "next" in the name.
-
Read the installation logs.
$ cat chectl-install.log
Additional resources
Upgrading the chectl management tool
This section describes how to upgrade the chectl management tool.
Prerequisites
-
chectlis installed. See:
Procedure
-
Run the following command in the terminal to update
chectlto the latest version.# chectl update
The command updates
chectlbased on its current channel.
|
Two update channels are available for
To move to a different channel, invoke the update with the name of the channel as an optional argument. # chectl update [next|stable] |