Skip to main content

Development Notes

Programming Language Support

Cloud functions support multiple programming languages including Node.js, Python, PHP, Go, and Java with multiple runtime versions. For the complete list of supported versions, version status, and standard language environment absolute paths, please refer to Runtime Environment Support.

Development Environment Preparation

Local Development Environment

Node.js Development Environment

# Install Node.js (recommend using nvm to manage versions)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 24
nvm use 24

# Verify installation
node --version
npm --version

Python Development Environment

# Install Python (recommend using pyenv to manage versions)
curl https://pyenv.run | bash
pyenv install 3.10.0
pyenv global 3.10.0

# Create a Virtual Environment
python -m venv cloudbase-env
source cloudbase-env/bin/activate # Linux/macOS
# cloudbase-env\Scripts\activate # Windows

# Verify installation
python --version
pip --version

Development Tools

Through this guide, you should have learned the core concepts and best practices of CloudBase cloud function development. It is recommended to start with simple examples to gradually master the development and deployment process of cloud functions.