> ## Documentation Index
> Fetch the complete documentation index at: https://docs.major.build/llms.txt
> Use this file to discover all available pages before exploring further.

# major resource

> Manage connectors from your terminal.

Use the `resource` group to manage the databases and APIs your app can access.

<Tip>
  For more information on how connectors work, see [Connectors](/connectors).
</Tip>

| Command                 | Purpose                                          |
| ----------------------- | ------------------------------------------------ |
| `major resource create` | Create a new connector via the web UI.           |
| `major resource manage` | Attach or detach connectors for the current app. |
| `major resource env`    | View and switch environments.                    |

## `major resource create`

```bash theme={null}
major resource create
```

**When to use:** creating a new database or API resource.

**What happens:**

Opens the connector creation page in your browser.

## `major resource manage`

```bash theme={null}
major resource manage
```

**When to use:** changing which connectors your app is connected to.

**What happens:**

1. Fetches the current connectors for your app.
2. Lets you attach or detach connectors using an interactive menu.
3. Updates your local configuration to match the new settings.

## `major resource env`

```bash theme={null}
major resource env
```

**When to use:** switching between environments (e.g., development, staging, production) to change which connector instances your app connects to.

**What happens:**

1. Displays your current environment selection.
2. If multiple environments are available, lets you select a different one from an interactive menu.
3. Updates both your local development environment and the Major web app to use the selected environment.

<Note>
  Each environment can have different connectors and configuration values. Switching environments affects where your application connects to—both locally and when running in dev mode on Major.
</Note>

After switching environments, run `major app start` to apply the changes locally.

<Card title="Learn more about Environments" icon="layers" href="/web/environments">
  See how to create and manage environments for your organization.
</Card>
