Skip to content

Instantly share code, notes, and snippets.

@robertosousa1
Last active August 15, 2021 19:28
Show Gist options
  • Save robertosousa1/b226ce56cf7ea5cb966ee002422f1b51 to your computer and use it in GitHub Desktop.
Save robertosousa1/b226ce56cf7ea5cb966ee002422f1b51 to your computer and use it in GitHub Desktop.
serverless-commands

Install

npm i -g serverless

Initialize

sls

Deploy

sls deploy

Invoke on AWS

sls invoke -f hello --path request.json --log

Invoke local

sls invoke local -f hello --log

Logs

sls logs -f hello --tail

Remove

sls remove

Open dashboard

sls dashboard

Note: all commands can be used starting with "sls" or "no server"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment