Intro. Quick recommendations and tips for various processes.
serverless deployonly when you've made changes to
serverless.ymland in CI/CD systems.
serverless deploy function -f myFunctionto rapidly deploy changes when you are working on a specific Apache OpenWhisk Function.
serverless invoke -f myFunction -lto test your Apache OpenWhisk Functions.
serverless logs -f myFunction -t.
A handy list of commands to use when developing with the Serverless Framework.
Creates a new Service
serverless create -p [SERVICE NAME] -t openwhisk-nodejs
This is a convenience method to install a pre-made Serverless Service locally by downloading the Github repo and unzipping it.
serverless install -u [GITHUB URL OF SERVICE]
Use this when you have made changes to your Functions, Events or Resources in
serverless.yml or you simply want to deploy all changes within your Service at the same time.
Use this to quickly overwrite your OpenWhisk Actions, allowing you to develop faster.
serverless deploy function -f [FUNCTION NAME]
Invokes an OpenWhisk Action and returns logs.
serverless invoke function -f [FUNCTION NAME] -l
Open up a separate tab in your console and stream all logs for a specific Function using this command.
serverless logs -f [FUNCTION NAME]