Add & Remove Projects

 

CodeMRI® Sys Admin Training Videos:

Add & Remove Projects

Within a vault CodeMRI® uses projects and systems to make reference to codebases. The project is a high-level container that contains many systems, and the system references the codebase specifically. So, to create a project inside the cmri shell, you would enter project add --n for name, and then assign your project the name.

If you wanted to remove a project, you could select the project, and then type project remove that would remove the project from the vault. If you have multiple projects selected, you could enter project remove --force and that would remove all these selected projects. To remove a specific project, you could enter project remove --selection and enter the project name.

Let's take a look at that. So I'll go into my CodeMRI® shell. I'm in my shell in my vault, and you can always confirm your vault contents by typing in vault list. That will show you what's in the vault right now. The vault is the only thing there. To add a project, project add --n, and I have a publicly accessible codebase called Axis that I use for tests.

So we will create a project called Axis, and we can type vault list again to confirm what's in the vault and I now have a project called Axis, and that project is selected. It's selected by default when I create it. Since it's selected. If I wanted to remove it, project remove, and that project is now gone.

Vault list. Now if I re-add that project, the project is back, I can also remove it by saying project remove --selection Axis and it also removes it. I wouldn't normally do that when I just have one project in the vault, but if I had many projects in the vault, it's a little safer to specify the project. I would like to get rid of.