Database Seed Script Using Organization Plugin

Anyone here using the organization plugin and made a local database seed script that populates your database with a fake organization and users in said organization? If so, can you share what that looks like? Step-wise sequence is:

Create organization
Invite users to organization
Accept invitations

But how does one do step 2 of the process in a seed script? Is it possible to skip it all together and directly add users to the organization using the server API?
Was this page helpful?