SOMOD CLI is a toolset to Develop, Build and Reuse Serverless Applications. With the command-line interface (CLI) you can work with a SOMOD module using a terminal, or through automated scripts, enabling you to build, and prepare deployable applications.
This page contains a complete list of all SOMOD CLI commands available, along with their arguments and options for additional behavior
To download and install SOMOD CLI, run the following command
All SOMOD commands need to be run under an npm package directory.
Displays the command usage instructions
Displays the version of the SOMOD CLI
Runs the command in verbose mode. In verbose mode, the command outputs more info to stdout
Validates the source and generates
build directory. The directory structure is explained in detail here.
Prepares NextJs and AWS SAM Projects by combining all dependency modules.
Deploys the AWS SAM project to AWS Cloudformation. Internally calls
prepare with --serverless option.
This command requires that AWS SAM is installed and configured to the right AWS Account. Refer to the Getting started with AWS SAM guide for setting up SAM.
This command starts the NextJs Server. Internally calls
prepare with the
Refer to the Next.js CLI guide for NextJs Commands.
After deploying AWS SAM Project, this command updates the
parameters.json with the exported parameters.
Refer to the
Outputs section of
serverless/template.yaml to know how to export an output from the Cloudformation stack to a parameter.
parameters.json file against the parameters schema
No command-specific options