Skip to main content

Online Cloud Function Development

Cloud Development Platform provides the capability for online cloud function development without configuring a local development environment, enabling online development, debugging, and deployment of cloud functions.

Enter the Online Development Environment

By clicking the Online Development button on the CloudBase Run Service details page, you can enter the online development environment.

goto-develop-online

Cloud environment preparation may be required before entering the environment.

cloudstudio-init

Workspace Introduction

Upon entering the online development environment, you will arrive at a workspace similar to the following. The editor interface of this workspace environment is identical to VSCode, supporting functions such as code editing, debugging, and terminal.

The following figure describes the main content of the File Browser Area:

cs-workspace-intro

Create Function

Right-click on the src directory, then click New Folder and enter the function name.

Write Cloud Function Code

You can write code in the online editor interface. For how to write code for Function-based Cloud Hosting, refer to the Function Writing Guide.