Assuming the Serverless cli is already installed (here), init a new project with ‘serverless’ and answer the following questions:
% serverless Serverless: No project detected. Do you want to create a new one? Yes Serverless: What do you want to make? AWS Node.js Serverless: What do you want to call this project? lambda-example Project successfully created in 'lambda-example' folder.
To deploy, run ‘serverless deploy’