# Cloud Base Server API Documentation

The cloud runtime environment is Node.js. Please install Node.js and npm during development.

To use Cloud Base, you need to install wx-server-sdk dependency in the cloud function directory:

npm install --save wx-server-sdk

When a cloud function is created in the tool cloud function root directory, a package.json that defines a wx-server-sdk dependency is created by default, and an automatic installation of the dependency is prompted when the creation is successful. If you can't use npm install directly in your environment, such as when you need to use proxy, self-built npm source station, or other package managers such as yarn, then you can't use the automatic installation dependency of the tool. You need to execute the dependency installation commands manually.

Please note that wx-server-sdk is no longer compatible with the callback of success, fail, and complete, and only Promise is returned.

For descriptions of different types of wx-server-sdk APIs, see the following: