Tiger_Install

@api

Tiger_Install — first-run bootstrap helpers.

Creates the founding org + user + password + membership for a fresh install. This is a SYSTEM/genesis operation: there's no logged-in actor, so the created rows get created_by = NULL. Kept as a class (not inline in bin/tiger) so create-project / a web installer can reuse it. bin/tiger install:admin gathers input and calls createOwner().

Methods

createOwner()

createOwner($email, $password, $orgName, $orgSlug = null, $role = 'developer', $username = null)

Create the founding org + owner user + password credential + membership.

  • $email string
  • $password string
  • $orgName string
  • $orgSlug string|null — derived from the org name if null
  • $role string — the membership role (default 'developer' = god,
  • $username string|null — optional display username (email stays the login id)

Returns array{org_id:string,user_id:string,org_user_id:string,role:string,email:string,username:?string,org:string,slug:string}

Throws RuntimeException — on validation error or conflict (existing email/slug/username)