Skip to content

🔹 organization

🏢 Manage your organizations in Capgo Cloud for team collaboration and app management.

Alias: l

Terminal window
npx @capgo/cli@latest organization list

📋 List all organizations you have access to in Capgo Cloud.

Example:

Terminal window
npx @capgo/cli@latest organization list

Options:

ParamTypeDescription
-a,stringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: a

Terminal window
npx @capgo/cli@latest organization add

➕ Create a new organization in Capgo Cloud for team collaboration.

Example:

Terminal window
npx @capgo/cli@latest organization add --name "My Company" --email admin@mycompany.com

Options:

ParamTypeDescription
-n,stringOrganization name
-e,stringManagement email for the organization
-a,stringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: m

Terminal window
npx @capgo/cli@latest organization members

👥 List organization members and their 2FA status. Shows all members of an organization with their roles and whether they have 2FA enabled. Useful before enabling 2FA enforcement to see which members will be affected.

ℹ️ Viewing 2FA status requires super_admin rights in the organization.

Example:

Terminal window
npx @capgo/cli@latest organization members ORG_ID

Options:

ParamTypeDescription
-a,stringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: s

Terminal window
npx @capgo/cli@latest organization set

⚙️ Update organization settings including name, email, security policies, and enforcement options. Security settings require super_admin role.

Example:

Terminal window
npx @capgo/cli@latest organization set ORG_ID --name "New Name"

Options:

ParamTypeDescription
-n,stringOrganization name
-e,stringManagement email for the organization
—enforce-2fabooleanEnable 2FA enforcement for all organization members
—no-enforce-2fabooleanDisable 2FA enforcement for organization
—password-policybooleanEnable password policy enforcement for organization
—no-password-policybooleanDisable password policy enforcement
—min-lengthstringMinimum password length (6-128, default: 10)
—require-uppercasebooleanRequire uppercase letter in password
—no-require-uppercasebooleanDo not require uppercase letter
—require-numberbooleanRequire number in password
—no-require-numberbooleanDo not require number
—require-specialbooleanRequire special character in password
—no-require-specialbooleanDo not require special character
—require-apikey-expirationbooleanRequire all API keys to have an expiration date
—no-require-apikey-expirationbooleanDo not require API key expiration
—max-apikey-expiration-daysstringMaximum days before API key expiration (1-365, null for no limit)
—enforce-hashed-api-keysbooleanEnforce hashed/secure API keys (key value stored as hash, shown only once)
—no-enforce-hashed-api-keysbooleanAllow plain-text API keys
-a,stringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: d

Terminal window
npx @capgo/cli@latest organization delete

🗑️ Delete an organization from Capgo Cloud. This action cannot be undone. Only organization owners can delete organizations.

Example:

Terminal window
npx @capgo/cli@latest organization delete ORG_ID

Options:

ParamTypeDescription
-a,stringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)