Quick recommendations and tips for various processes.
serverless deploy
when you've made changes to serverless.yml
and in CI/CD systems.serverless invoke -f myFunction
to test your functions on Knative.dev
and prod
stage.A handy list of commands to use when developing with the Serverless Framework.
Creates a new service
serverless create -p [SERVICE NAME] -t knative-docker
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 or events in serverless.yml
or you simply want to deploy all changes within your service at the same time.
serverless deploy -s [STAGE NAME]
Invokes a Knative Serving service returns it's output.
serverless invoke -f [FUNCTION NAME] -s [STAGE NAME] -l
See information about your deployed / undeployed functions by running the info command in your service directory.
serverless info
Product