Skip to main content
major resource controls which connectors the app in the current directory can reach, and which environment it uses. Run these commands from inside the app’s folder. When you attach resources, the CLI generates local resource clients in your app so your code can call them.

major resource list

List all resources in your organization, showing which are attached to the current app.

major resource add

Attach a resource to the current app by ID. Use major resource list to find IDs.

major resource remove

Detach a resource from the current app by ID. Use major resource list to see attached resources.

major resource manage

Pick the app’s resources from an interactive list.

major resource create

Open the resource creation page in your default browser.

major resource env-list

List the environments in your organization and show which one is your current choice.

major resource env

Show your current environment and switch to another one. The environment is your environment choice, shared by all your apps, the web editor, and MCP clients. Switching it here also reloads any app previews you have open in the web editor.
After switching, run major app start to use the new environment locally.