Skip to main content
The org commands help you view and select organizations.
CommandPurpose
major org listList all your organizations.
major org selectSelect a default organization.
major org whoamiShow the current organization.

major org list

major org list
When to use: viewing your available organizations. What happens: Lists all organizations you belong to and highlights the currently selected one.

major org select

major org select
When to use: switching between organizations. What happens:
  1. Lists your available organizations.
  2. Allows you to select a new default organization.
  3. Updates your local configuration.

major org whoami

major org whoami
When to use: checking which organization is currently selected. What happens: Displays the name and ID of the currently selected organization.

Organization resources via MCP

The CLI exposes organization-level resources through MCP endpoints. You can authenticate using Bearer tokens and access organization resources without requiring an application context. Available org-level MCP capabilities:
  • List all resources in your organization.
  • Check AI proxy status for resources.
  • Get app status across your organization.
  • Read resource context documents.
  • Interact with resources through MCP tools.
  • Select and manage environments for resource operations.
Authentication: Authenticate to org-level MCP endpoints using a Bearer token. Include your token in the request header:
Authorization: Bearer <your-token>
The CLI MCP server enforces resource permissions consistently across both app-level and org-level access modes through unified permission checking.

Environment selection in MCP

The org-scoped MCP provides tools to select which environment resource tools operate in:
  • set_environment – Switch the active environment for resource operations. The choice persists across sessions.
  • get_environment – Check which environment is currently active.
By default, resource operations use the default build environment. Use these tools to work with resources in a different environment, such as staging or production. This environment selection is separate from the per-app environment choice available in the web editor.

Learn more about Resources

See how to manage connectors and resources for your applications.