1.0.6 • Published 4 months ago

@saws/cli v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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](../secrets/README.md#commands).

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.

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago