The sls package command packages your entire infrastructure into the .serverless directory by default and make it ready for deployment. You can specify another packaging directory by passing the --package option.
serverless packageserverless packageThis example packages your service. The generated package would be the default .serverless directory inside your service.