Last active
December 8, 2024 16:43
-
-
Save oliveira-andre/041ef4ea037504f1d8ef54bd4faa46ef to your computer and use it in GitHub Desktop.
Serverless Framework Commands Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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