Namespaces¶
Namespaces enable you to segregate entities such as Library Definitions or Authentication Domains. They can be used for various purposes, such as separating definitions and workloads for different business units, or segregating production, staging and testing definitions and workloads.
Creating a namepace¶
You create a namespace with the hubcli namespace create command.
For example, to create a namespace with the name Production:
hubcli namespace create --description "A namespace for production programs" Production
In this example, the '--description' flag has also been used to specify descriptive text for the namespace, which will be visible in the Altair SLC Hub Adminstration Portal.
Setting a namespace as default for hubcli¶
You set a default namespace as default for use with hubcli using the hubcli namespace use command.
For example, to set the namespace Production as the default namespace for the connection:
hubcli namespace use Production
Listing and removing namespaces¶
You might want to remove namespaces. You can check you have the right name for a namespace, or check if a name exists, by creating a list of namespaces.
To create the list, use the following command:
hubcli namespace list
This returns a list of namespaces. The default namespace is marked with an asterisk; this can be useful to know if you are about to delete a namespace as it can remind you set another namespace to be default.
To delete a namespace, use the hubcli namespace rm command. For example, to remove the Production namespace:
hubcli namespace rm Production