In catapult, a project is a software project you are working on. It can have several applications in it. For example, a project can contain an API, an Admin application, and a front-facing customer application.
Create a project by specifying the name and optionally the client of this project
dotnet occli.dll project create --name MyProject --client Polyrific
You can also create a project based on a template to pre-populate the models and jobs, by using the
dotnet occli.dll project create --name MyProject --client Polyrific --template my-previous-project
Please find the details of the template content here.
Finally, task providers may have some configuration key that you can override for each project. You can set this when creating the project by using the
dotnet occli.dll project create --name MyProject --client Polyrific --property createAdmin:false
For the configuration key that the task provider have, please refer to each task provider's page.
All of the created projects can be viewed using the
dotnet occli.dll project list
You can update the project's client or property by using the
dotnet occli.dll project update --name MyProject --client Polyrific --property createAdmin:false
Remove a project by specifying the name of the project to be removed:
dotnet occli.dll project remove --name MyProject
When you want to remove external services of a project, but don't want to remove the project from the database, you can opt to archive it. The archived project can be restored later.
dotnet occli.dll project archive --name MyProject
Restore an archived project by specifying the name of the project:
dotnet occli.dll project restore --name MyProject
You can clone an existing project, and create a new one. The new project will have the models copied from the cloned project. You can optionally copy the members and jobs by using the option
dotnet occli.dll project clone --project MyProject --name my-other-project --includemember --includejob
You can export an existing project into a yaml file, when then can be used as a template when you create a new project.
dotnet occli.dll project export --name MyProject
The yaml file will be created in the AppData folder. You can also specify a specific location for the template file to be saved:
dotnet occli.dll project export --name MyProject --output D:/MyProject.yaml