cloud-functions

Deploy and manage CloudBase Event and HTTP Functions across Node.js, Python, Go, and Java.

8|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill cloud-functions-tugoukezhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-functions
Source: https://github.com/Tugoukezhang/workbuddy-skills/tree/main/skills/cloudbase/references/cloud-functions
Command: npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill cloud-functions-tugoukezhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to building, deploying, and managing CloudBase cloud functions, covering both Event Functions and HTTP Functions, including runtime decisions, deployment workflows, logging, and HTTP access.

Core Features & Use Cases

  • End-to-end guidance for creating, deploying, and operating Event Functions (SDK/timer-driven) and HTTP Functions (web services).
  • Clear instructions on runtime selection, function configuration, HTTP gateway access, and log retrieval.
  • Real-world scenarios include building REST APIs, SSE/WebSocket services, and scheduled tasks with robust deployment practices.

Quick Start

Create and deploy a minimal HTTP function named myFn with Nodejs18.15 runtime, including a scf_bootstrap script, and expose it via an HTTP gateway.

Frequently Asked Questions about cloud-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an HTTP function to CloudBase with a Node.js runtime?

To deploy an HTTP function to CloudBase, select a Node.js runtime like 18.15, create a scf_bootstrap script, configure the functionRootPath, and expose it via the HTTP gateway.

What is the difference between Event Functions and HTTP Functions in serverless deployment?

Event Functions are triggered by SDK calls or timers for background tasks, whereas HTTP Functions serve web requests directly through an HTTP gateway, supporting REST APIs and WebSocket connections.

Can I use Python, Go, or Java runtimes for CloudBase cloud functions?

Yes, CloudBase cloud functions support multiple runtimes including Python, Go, and Java, allowing you to select the appropriate language environment for your serverless deployment and event triggers.

How do I configure scf_bootstrap for a CloudBase HTTP function?

Configuring scf_bootstrap for a CloudBase HTTP function requires defining the runtime entry point and startup commands within the functionRootPath to ensure the web service initializes correctly via the gateway.

Does CloudBase serverless support SSE and WebSocket connections for HTTP functions?

Yes, CloudBase HTTP functions support Server-Sent Events (SSE) and WebSocket connections, enabling real-time data streaming and bidirectional communication for web services deployed on the serverless gateway.

What are the logging best practices for managing CloudBase event functions?

Managing CloudBase event functions requires implementing structured logging within your runtime code and retrieving logs through the CloudBase console or CLI to monitor serverless execution and troubleshoot issues.