Administration
Administration commands require the admin (or, for some operations, superuser) role.
Onboarding users
Section titled “Onboarding users”Inviting is the usual way to add someone — the invitee sets their own password and the roles you name are applied at registration.
# Send an email invitation with roles pre-assignedoi admin user invite send user@example.com -r member
# Generate a shareable invite linkoi admin user invite link -r member --max-uses 10
# List or revoke invitationsoi admin user invite listoi admin user invite revoke <id>User management
Section titled “User management”# List usersoi admin user list
# Create a user directly — for seeding, scripted provisioning, or service# accounts. Prefer an invitation for a person who has an inbox.oi admin user create user@example.com -p 'Pass123@' -r member
# Add roles to a useroi admin user role add user@example.com manager
# Grant or remove the admin roleoi admin user role promote user@example.comoi admin user role demote user@example.comApp installation
Section titled “App installation”# Install from the marketplaceoi app install @oikapi/crm
# Install a specific versionoi app install @oikapi/crm@1.2.0
# Install from a directory or a .oikapp fileoi app install ./my-appoi app install ./my-app-1.0.0.oikapp
# Fork an app under a different name as a customizable templateoi app install @oikapi/crm --as my-crmSee Installing Apps for update, downgrade, and uninstall workflows.
Permissions
Section titled “Permissions”# List permissions for a tableoi admin permission list --table customers
# Grant and revoke operations for a roleoi admin permission grant --table customers --role manager --operation readoi admin permission revoke --table customers --role manager --operation deleteData operations
Section titled “Data operations”# Import records from a JSON file (array of record objects)oi record import customers ./data/customers.json
# Control conflict handlingoi record import products ./data/products.json --on-conflict update
# Read from stdincat data.json | oi record import customers -Server management
Section titled “Server management”# Health checkoi api GET /health
# Current user infooi api GET /api/auth/me