Serverless
Create, test, and deploy serverless functions on the Boltic platform with support for multiple languages and deployment types.
Supported Languages
| Language | Version | Handler |
|---|---|---|
| Node.js | 20 | handler.handler |
| Python | 3 | index.handler |
| Golang | 1.22 | Handler |
| Java | 17 | Handler |
Deployment Types
| Type | Description |
|---|---|
| Blueprint | Write code directly in the CLI-generated project |
| Git | Deploy from a Git repository |
| Container | Deploy a Docker container |
Create a Function
# Interactive mode (prompts for all options)
boltic serverless create
# Blueprint function
boltic serverless create --type blueprint --name my-api --language nodejs
# Git-based function
boltic serverless create --type git --name my-git-func --language python
# Container-based function
boltic serverless create --type container --name my-container
# Custom directory
boltic serverless create --type blueprint --name my-function --language python --directory ./projects
Generated Project Structure
my-serverless/
├── boltic.yaml # Configuration file with serverless settings
├── handler.js # Handler file (Node.js) or index.py (Python), etc.
└── package.json # Dependencies (Node.js projects only)
Test Locally
# Auto-detect language, run on default port (8080)
boltic serverless test
# Specify custom port
boltic serverless test --port 3000
# Test from specific directory
boltic serverless test --directory ./my-function
Publish
# Publish from current directory
boltic serverless publish
# Publish from specific directory
boltic serverless publish --directory ./my-function
Pull an Existing Function
# Interactive selection
boltic serverless pull
# Pull to specific path
boltic serverless pull --path ./projects
List Functions
boltic serverless list
Check Status
# Interactive selection
boltic serverless status
# By name
boltic serverless status --name my-function
# Watch until running/failed/degraded
boltic serverless status --name my-function --watch
View Builds
# List all builds (interactive selection)
boltic serverless builds
# By name
boltic serverless builds --name my-function
View Logs
Runtime Logs
# Interactive selection
boltic serverless logs
# By name
boltic serverless logs --name my-function
# Follow logs in real-time
boltic serverless logs --name my-function --follow
# Limit output lines
boltic serverless logs --name my-function --lines 50
Build Logs
# Interactive selection
boltic serverless build logs
# By name (prompts for build selection)
boltic serverless build logs --name my-function
# Specific build
boltic serverless build logs --name my-function --build BUILD_ID