Edit on github

#Google - Invoke

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

#Options

  • --function or -f The name of the function in your service that you want to invoke. Required.
  • --data or -d Data you want to pass into the function.

#Examples

#Simple function invocation

serverless invoke --function functionName

This example will invoke the deployed function and output the result of the invocation in the terminal.

#Function invocation with data

serverless invoke --function functionName --data '{"name": "Bernie"}'

This example will invoke the function with the provided data and output the result in the terminal.

Made with love in San Francisco + Atlanta, Austria, Germany, Pakistan, Poland, Nebraska & Thailand

Serverless, Inc. © 2018

Join our monthly newsletter to get the latest Serverless news, updates and happenings.