The SET command displays an active environment from the list of the environments deployed to the Fabric Server.
fabric>set;
|key                                   |value                               |
+--------------------------------------+------------------------------------+
|...           
|ENVIRONMENT                           |UAT1                                |
|...
The SET_GLOBAL ENVIRONMENT command is used to set the active environment of the entire cluster. This command has a global impact and replaces the active environment of all open Fabric sessions and of new Fabric sessions. The values are kept in the global_settings Cassandra table under the k2system keyspace.
SET_GLOBAL ENVIRONMENT='<environment name>';
fabric>set_global environment='UAT2';
(1 row affected)
SET_GLOBAL ENVIRONMENT='';
fabric>set_global environment='';
(1 row affected)
The SET ENVIRONMENT command is used to set the environment of the current session.
SET ENVIRONMENT='<environment name>';
SET ENVIRONMENT='';
The LIST ENVIRONMENTS command is used to list all deployed environments.
LIST ENVIRONMENTS; or LIST ENVS;
fabric>list envs;
|Environments|
+------------+
|UAT1        |
|UAT2        |
|_dev        |
(3 rows)
The SET command displays an active environment from the list of the environments deployed to the Fabric Server.
fabric>set;
|key                                   |value                               |
+--------------------------------------+------------------------------------+
|...           
|ENVIRONMENT                           |UAT1                                |
|...
The SET_GLOBAL ENVIRONMENT command is used to set the active environment of the entire cluster. This command has a global impact and replaces the active environment of all open Fabric sessions and of new Fabric sessions. The values are kept in the global_settings Cassandra table under the k2system keyspace.
SET_GLOBAL ENVIRONMENT='<environment name>';
fabric>set_global environment='UAT2';
(1 row affected)
SET_GLOBAL ENVIRONMENT='';
fabric>set_global environment='';
(1 row affected)
The SET ENVIRONMENT command is used to set the environment of the current session.
SET ENVIRONMENT='<environment name>';
SET ENVIRONMENT='';
The LIST ENVIRONMENTS command is used to list all deployed environments.
LIST ENVIRONMENTS; or LIST ENVS;
fabric>list envs;
|Environments|
+------------+
|UAT1        |
|UAT2        |
|_dev        |
(3 rows)