Cloud Function
Tencent CloudBase Toolkit has ceased maintenance and iteration. It is recommended to use the Cloud Development CLI tool.
Deploy Cloud Function
When performing operations such as deploying/deleting/downloading code for a cloud function, you must select the cloud function folder. Otherwise, the operation will fail due to the inability to resolve the accurate function name.
Right-click the function folder and select Deploy Cloud Function. CloudBase Toolkit supports deploying multiple cloud functions simultaneously.
CloudBase Toolkit supports two methods for deploying cloud functions:
- Deploy Cloud Function (Upload all files): Uploads all files in the function directory, including the node_modules directory.
- Deploy Cloud Function (Install dependencies in the cloud): Only deploys code files, ignoring the node_modules directory. The cloud function will automatically install dependencies online.
Sync cloud function list
The Sync Cloud Function List feature can synchronize cloud functions to the local environment and create corresponding folders with the same names as the functions, but it does not download the function code. This operation can be performed directly by right-clicking without selecting any function.
Download Function Code
Using the Download Function Code feature, cloud function code can be downloaded locally. When performing this operation, you need to select the directory corresponding to the cloud function name. CloudBase Toolkit supports downloading code for multiple cloud functions simultaneously.
Incremental Update
CloudBase Toolkit supports uploading a single file or folder to a cloud function without requiring a full redeployment of the entire function.
Deleting Cloud Files
CloudBase Toolkit supports deleting individual files or folders in a cloud function. When a folder is deleted, the files within it are also removed.
Cloud Function Operations
Click the CloudBase icon in the sidebar to view cloud functions deployed in the cloud. Select the corresponding cloud function, then right-click to perform operations such as deletion, viewing, or downloading.