Skip to main content

Enable the CloudBase Environment

The cloud development environment serves as the backend service foundation for your applications. Each environment is isolated, possesses a unique environment ID, and includes independent resources such as database instances, storage space, and cloud function configurations.

Activation Method Selection

Based on your development scenario, select the appropriate activation method:

  1. Open WeChat Developer Tools and click the "Cloud Development" button at the top

  1. When entering for the first time, follow the prompts to enable the CloudBase environment.
Tip
  • The initially created environment automatically becomes the default environment.
  • After initiating environment creation, wait a few minutes for resource initialization.
tip

CloudBase provides new users with a free environment during the development period, free for development and paid for official use. However, the free environment has some functional limitations. If you need to use more features, it is recommended to upgrade to a paid version. For detailed information, please refer to the pricing documentation.

  1. Go to the CloudBase Console, check the Terms of Service, and then click Start Free Development, Enable Smart Applications

  1. Grant permissions for the CloudBase service role.

  1. After authorization is completed, the system will automatically issue the Personal Edition free trial period, allowing you to experience the new environment for free, and will open the CloudBase platform.

Environment Management

After enabling the environment, you can manage it in the following ways:

CloudBase Console

Access the CloudBase Console to perform environment management, resource configuration, and other operations.

Cloud Development Platform (Visual Management)

Access the CloudBase platform to perform visual data management, content management, and other operations.

Linking WeChat Mini Program

In some cases, you may need to use the CloudBase environment enabled on the Tencent Cloud side within the WeChat Developer Tools, utilizing cloud development services as backend resources for your Mini Program. In such scenarios, you must first perform the association operation by following these steps:

Step 1: Log in to the console

Log in to the CloudBase Console, then in the username dropdown menu at the top right corner of the menu bar, click Account Information to access the Account Center.

⚠️ Note: If you are currently logged in with a sub-account, you need to switch to the main account to log in.

In Login Methods, click Link on the right side of WeChat Official Account Platform

Step 3: Authorization Operation

After logging in via WeChat using the pop-up QR code, click "Go to Authorize" in the pop-up account association window.

Follow the prompts to perform the authorization operation and complete the account association.

Step 4: Open WeChat Developer Tools and access the Cloud Development Console

Next, in WeChat Developer Tools, use this environment. You can convert the environment created on the Tencent Cloud side to a WeChat Mini Program environment.

Open the Developer Tools and enter the Cloud Development Console

Step 5: Environment Switch

  1. In the Cloud Development Console, go to "Settings", scroll down the "Environment Name" list, and click "Manage My Environments"

  1. To use the existing cloud environment, in the WeChat Developer Tools > Environment Management sidebar, click Use Existing Tencent Cloud Environment.
  1. Select the environment to switch, choose the cloud-side environment you need to convert, confirm the environment switch, and after scanning the QR code to complete verification, you can successfully switch.

Next Steps

After the environment is provisioned, select the corresponding Quick Start Guide based on your development requirements: