This is a legacy version
For the latest Projects CLI information, see the Projects CLI topic.
The RCTL utility provides the means to manage the lifecycle of projects of an organization. The following operations can be performed on projects managed by the controller.
.rctl create project -f <filename.yaml>
Below is an example of project yaml file
apiVersion: system.k8smgmt.io/v3 kind: Project metadata: description: demo_project name: Demo-Project spec: default: false
Use the below command to create a project
./rctl create project <project-name>
The below command is to retrieve/list all projects
./rctl get projects
./rctl get projects NAME demo-project-1 Demo-Project infraadmin clustureadmin demo-project project1 defaultproject
The below command is to retrieve a specific project
./rctl get project <project-name>
./rctl get project demo-project Name: demo-project Created-at: Tue, 10 Aug 2021 07:46:15 UTC Modified-at: Tue, 10 Aug 2021 07:46:15 UTC
Use the below command to delete a project
./rctl delete project -f <filename.yaml>