Skip to content

Instantly share code, notes, and snippets.

@oliveira-andre
Last active December 8, 2024 16:43
Show Gist options
  • Save oliveira-andre/041ef4ea037504f1d8ef54bd4faa46ef to your computer and use it in GitHub Desktop.
Save oliveira-andre/041ef4ea037504f1d8ef54bd4faa46ef to your computer and use it in GitHub Desktop.
Serverless Framework Commands Cheat Sheet
# you can use sls to as an alias to serverless
serverless = sls
# check version
sls -v
# init project
sls
# deploy project
sls deploy
# deploy function (in this case api is the function)
sls deploy function -f api
# undo deploy
sls remove
# build locally project
sls package
# invoke functions locally (in this case api is the function)
sls invoke local --function api
# running offline plugin
sls offline
# running offline plugin w/ reload
sls offline --reloadHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment