First things first, let’s get the Serverless Framework open source CLI installed on your machine.
# Install the daSWAG CLI using npm npm install -g daSWAG # Or an alternative yarn global add daswag-cli # You can also update the daSWAG cli from a previous version npm update -g daswag
If you don’t already have Node 10 or higher on your machine, you’ll need to do that first. - Install Node.js from the Node.js website (please use an LTS 64-bit version, non-LTS versions are not supported)
Once you have the Serverless Framework installed, simply run the ‘serverless’ command and follow the prompts. In no time you will have deployed your first serverless app using the Serverless Framework CLI and configured your Serverless Framework Dashboard account to automatically monitor your serverless app, generate alerts, and much more.
If you have problems using Yarn globally, be sure to have
$HOME/.config/yarn/global/node_modules/.bin in your path.
On Mac or Linux:
export PATH="$PATH:`yarn global bin`:$HOME/.config/yarn/global/node_modules/.bin"
Once you have the daSWAG CLI installed, simply run the
daswag new command and follow the prompts. In no time you will have deployed your first serverless web app using the daSWAG CLI.
The configuration will be stored in a generated