Invokes deployed function. It allows to send event data to the function, read logs and display other important information of the function invocation.
serverless invoke --function functionName--functionor-fThe name of the function in your service that you want to invoke. Required.--stageor-sThe stage in your service you want to invoke your function in.--regionor-rThe region in your stage that you want to invoke your function in.
serverless invoke --function functionName --stage dev --region ap-guangzhouThis example will invoke your deployed function named functionName in region ap-guangzhou in stage dev. This will
output the result of the invocation in your terminal.