https://prefect.io logo
d

Daniel Nilsen

04/22/2022, 9:03 AM
Is it possible to create a tenant with the graphql api?
1
nm, I managed to figure it out
Copy code
mutation {
  create_tenant(input: {
    name: "default", slug: "default"
  }) {
    id
  }
}
a

Anna Geller

04/22/2022, 10:14 AM
nice! you can also do it from CLI (probably easier):
Copy code
prefect server create-tenant --name default --slug default
4 Views