@saws/cli v1.0.11
SAWS CLI
CLI for interacting with your SAWS application.
Table of Contents
Installation
From the command line run:
npm install @saws/cliThen run npx saws init to initialize your SAWS application in your current directory.
Commands
These commands are the base commands that come with the saws cli. But other services in your saws.js can add additional commands to the saws cli. For example: [secrets command](../secrets/README.md#commands).
init
npx saws initThis command will initialize a SAWS application in your current working directory.
It will
- Install any needed dependencies
- Create a
.gitignore - Create a
tsconfig.json - Create your
saws.jsconfig file
dev
npx saws devThis command will intitialize any new services in your saws.js file and stand up a local development environment for your application.
deploy
npx saws deploy --stage <stage>This command will deploy all the services in your saws.js file to AWS. You will need to have your AWS session configured in your terminal for this command to succeed.
execute
npx saws execute ./path/to/script.ts --stage <stage>This command will execute a script against your application. stage by default will be local. If your script depends on services being running locally, you will need to run them using npx saws dev in another terminal tab/window.