docs/sf/guides/workflow.md
Quick recommendations and tips for various processes.
serverless deploy only when you've made changes to serverless.yml and in CI/CD systems. For more information on setting up CI/CD for your Serverless app, read this article.serverless deploy function -f myFunction to rapidly deploy changes when you are working on a specific AWS Lambda Function.serverless invoke -f myFunction -l to test your AWS Lambda Functions on AWS.serverless logs -f myFunction -t.dev and production stage.A handy list of commands to use when developing with the Serverless Framework.
Creates a new Service
serverless
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.
serverless deploy -s [STAGE NAME] -r [REGION NAME] -v
Use this to quickly overwrite your AWS Lambda code on AWS, allowing you to develop faster.
serverless deploy function -f [FUNCTION NAME] -s [STAGE NAME] -r [REGION NAME]
Use this to easily develop your AWS Lambda Functions locally. This will run your AWS Lambda Functions locally and allow you to send events to them on AWS.
Currently this is only supported for Node.js. Learn more about the dev command.
serverless dev
Invokes an AWS Lambda Function on AWS and returns logs.
serverless invoke -f [FUNCTION NAME] \
-s [STAGE NAME] \
-r [REGION 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] -s [STAGE NAME] -r [REGION NAME]