Multiple contexts and context commands
The term context refers to the set of parameters in the config.yaml file that is used to establish an environment to run HCL Universal Orchestrator. You can create multiple contexts in the config.yaml file to manage the workload. This helps you to utilize the resources in a more efficient manner.
Overview
You can create multiple contexts with different configuration settings using Orchestration CLI. This
feature allows you to manage various workflow scenarios by changing the context. You
can use context commands to manage or switch between multiple contexts and to do
actions in a specific context. The default context is the one that you create
initially until you change it using the commands. Unless you explicitly specify the
context in the command, all commands are run using the default context. To manage
different contexts, you can use the following set of commands in Orchestration CLI:
| Command | Description |
|---|---|
| list | To display the existing contexts available in the config.yaml file. For more information, see list. |
| new | To create a new context in the config.yaml file. For more information, see new. |
| remove | To remove an existing context from the config.yaml file. For more information, see remove. |
| set | To update and manage the parameters or properties of an existing context in the config.yaml file. For more information, see set. |
| switch | To change the default context. For more information, see switch. |
Important: To manage the
context parameters more efficiently when you have multiple
config.yaml files available in your computer, see Managing multiple config.yaml files.
Restriction: Do not enclose a command and its
parameters in double quotes or single quotes. The parser interprets the content
inside the quotes as a single command name, and it displays an error message.