A cli For Test Your ServerLess Function We provide serveral testModels for you to config the 'event' of Your ServerLess Function And more properties is coming! This cli requires node v8.1.4 or higher for ES2015 , async function support and koa.
npm install scf-cli -g
scf init
- host The host To Start The Mock Server
- port The port To Start The Mock Server
- debug Start Supervisor.If set 'debug' to true, you would get the debug message of the MockServer from the bash.Or the MockServer would run as a backend process
- init Init The TestCli For Your App
- entry The entry of Your ServerLess Function File
- handler The handler of Your ServerLess Function File
- timeout Set the timeout For Your ServerLess Function. To control the execution time
- testModel To choose a testModel as the 'event' For Your ServerLess Function
- http
- apigateway
- helloworld
- cmq
- ckafka
- How to config web-proxy?
- How to set the env locally?(The scf locally would have all env of the process which is running
scf-cli
) - How to debug?
- Update Your ServerLess Function Localy
- Test Your ServerLess Function Localy in docker
MIT