boltctl serverless init
Initialize a new serverless application to get boilerplate code and configuration.
Usage
boltctl serverless init [flags]
Flags
-d, --base-dir stringThe base directory that contains the source code
-f, --name stringName of the new serverless function
-l, --language stringLanguage to use for the function, ex: nodejs, python, golang, java etc
Examples
To initialize a new serverless function, run:
boltctl serverless init
![]() |
|---|
![]() |
|---|
Checkout the serverless test command to test the newly created function locally.

