Skip to main content

Serverless

Create, test, and deploy serverless functions on the Boltic platform with support for multiple languages and deployment types.

Supported Languages

LanguageVersionHandler
Node.js20handler.handler
Python3index.handler
Golang1.22Handler
Java17Handler

Deployment Types

TypeDescription
BlueprintWrite code directly in the CLI-generated project
GitDeploy from a Git repository
ContainerDeploy 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