Creating a workspace using chectl and a local devfile
A Che workspace can be created by pointing the chectl
tool to a locally stored devfile. The Che instance then uses the discovered devfile to build a workspace.
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Installing Che.
-
The Che CLI management tool. See Using the chectl management tool.
-
The devfile is available on the local filesystem in the current working directory. See Authoring a devfile 2 for detailed information about creating and using devfiles.
-
You are logged in to Eclipse Che. See How to login into Che using chectl
Download the devfile.yaml
file from the GitHub repository to the current working directory.
-
Run a workspace from a devfile using the
workspace:create
parameter with thechectl
tool as follows:
$ chectl workspace:create --name=<WORKSPACE_NAME> \ (1) --devfile=devfile.yaml --start \ -n eclipse-che
1 | The workspace name to create. |
If --devfile flag is omitted, the chectl looks for devfile.yaml or devfile.yml files in the current directory to create a workspace from.
|