Adding Projects to a Tenant

Is it possible to use Octo.exe to add projects with environments to a tenant?

Hi Rich,

No, Octo.exe is focused on creating releases and deployments rather than managing Tenants.

However, you can certainly do this via our client library.

For example (in C#):

var client = new OctopusClient(
   new OctopusServerEndpoint("http://octopus.acme.com", "API-YOURKEY"));
var repo = new Octopus.Client.OctopusRepository(client);

repo.Tenants.CreateOrModify("MyTenant")
   .ConnectToProjectAndEnvironments(...).Save();

I hope this helps.

Regards,
Michael