Skip to main content

boltctl serverless init

Initialize a new serverless application to get boilerplate code and configuration.

Usage

boltctl serverless init [flags]

Flags

  • -d, --base-dir string

    The base directory that contains the source code

  • -f, --name string

    Name of the new serverless function

  • -l, --language string

    Language to use for the function, ex: nodejs, python, golang, java etc

Examples

To initialize a new serverless function, run:

boltctl serverless init
Serverless init selection output
Serverless init output

Checkout the serverless test command to test the newly created function locally.