@saws/cli
v1.0.11
Published
<div align='center'>
Downloads
1
Readme
SAWS CLI
CLI for interacting with your SAWS application.
Table of Contents
Installation
From the command line run:
npm install @saws/cli
Then 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.
init
npx saws init
This 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.js
config file
dev
npx saws dev
This 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.