Local Setup and Super Admin Bootstrap
Run Core Locally
Section titled “Run Core Locally”From the Core repository:
cp .env.example .envdocker compose up -dgo run ./cmd/plystractl doctorExpected doctor output:
environment: developmentconfiguration: okdatabase: okmigrations: currentschema: okservice readiness: okLocal demo credentials:
[email protected] / plystra-demo[email protected] / plystra-demoRun make seed-demo to make Alice an instance super admin for local development. In a clean production-like instance, use the bootstrap command described below.
Bootstrap the First Instance Super Admin
Section titled “Bootstrap the First Instance Super Admin”Plystra does not use an admin token. Management APIs are protected by user sessions and scoped admin grants.
The first admin is a normal User with one AdminGrant:
level = instance_super_adminpermission_key = *If no active instance super admin exists, bootstrap one with:
go run ./cmd/plystractl admin bootstrap-super-admin --user-id <existing_user_id>Optional flags:
go run ./cmd/plystractl admin bootstrap-super-admin \ --user-id user_ops_owner \ --member-id member_ops_owner \ --grant-id ag_user_ops_owner_instance_super_adminThe command refuses to run if an active instance_super_admin grant already exists. After that point, use the AdminGrant API to create, narrow, and revoke admin access.