YML files for Projects

Hello guys.

Is there any way to create projects in Rancher programatically, and not using the UI?

Preferable YML files, as they are easier to manage with Git.

Best regards

Terraform using the Rancher2 provider.

I found an easy solution using the rancher cli.
./rancher-cli projects create

I ended up using Rancher’s API with curl.

Rancher is a great tool, but the lack of documentation kills all its potential.

How can having an API that is completely open, integrated with the UI, and easy to interrogate programmatically be considered as lacking documentation. The point about an API is that it doesn’t try to anticipate every possible use case, but instead provides an intuitive model for requesting information or making changes in system state. The Rancher API fulfils that goal IMHO.