Invokes the deployed function and display its output on the console.
serverless invoke --function functionName
--function
or -f
The name of the function in your service that you want to invoke. Required.serverless invoke --function functionName
This example will invoke your deployed function named functionName
and outputs the result of the invocation in your terminal.
Product