serverless-triggers
v1.1.6
Published
serverless-triggers CLI
Downloads
12
Maintainers
Readme
serverless-triggers
serverless-triggers
is a CLI to generate event payloads to help you simulate AWS tool triggers (like SQS, SNS, S3, and others) to test your lambdas locally.
CLI
serverless-triggers --help
?> Tip you can use sls-triggers
or slst
as alias.
Install
It is recommended to install serverless-triggers
globally:
Install via Yarn
yarn global add serverless-triggers
Install via NPM
npm i -g serverless-triggers
Initialize
serverless-triggers init
This command will create the tests/payloads
folder and create an example payload file:
{
"template": "sqs",
"payloads": [
{
"name": "Serverless Triggers"
}
]
}
How to use
Read the Usage Guide on our website for detailed instructions on how to use Serverless Triggers CLI.
Templates availabes
Check the templates available on the Templates Page
Documentation
License
MIT - see LICENSE