@effortless-aws/cli 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/cli/index.js +460 -300
- package/package.json +2 -2
- package/dist/cli/index.js.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @effortless-aws/cli
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@effortless-aws/cli)
|
|
4
|
+
|
|
5
|
+
CLI and deploy tooling for [effortless-aws](https://www.npmjs.com/package/effortless-aws). Deploys Lambda functions, API Gateway routes, DynamoDB tables, SQS queues, S3 buckets, and CloudFront sites directly via AWS SDK — no CloudFormation, no state files.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -D @effortless-aws/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
| Command | Description |
|
|
14
|
+
|---------|-------------|
|
|
15
|
+
| `eff deploy` | Build and deploy all handlers to AWS |
|
|
16
|
+
| `eff build` | Bundle handlers without deploying |
|
|
17
|
+
| `eff status` | Show deployed resources and their status |
|
|
18
|
+
| `eff logs` | Tail CloudWatch logs for a handler |
|
|
19
|
+
| `eff config` | Manage SSM parameters |
|
|
20
|
+
| `eff layer` | Manage shared Lambda layers |
|
|
21
|
+
| `eff cleanup` | Remove orphaned AWS resources |
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Deploy everything
|
|
27
|
+
npx eff deploy
|
|
28
|
+
|
|
29
|
+
# Deploy to a specific stage
|
|
30
|
+
npx eff deploy --stage production
|
|
31
|
+
|
|
32
|
+
# View logs
|
|
33
|
+
npx eff logs --handler hello
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## How it works
|
|
37
|
+
|
|
38
|
+
1. Scans your TypeScript files for exported handler definitions
|
|
39
|
+
2. Bundles each handler with esbuild
|
|
40
|
+
3. Deploys directly via AWS SDK (IAM roles, Lambda functions, API Gateway routes, etc.)
|
|
41
|
+
4. Tags all resources for tracking — no external state files needed
|
|
42
|
+
|
|
43
|
+
## Documentation
|
|
44
|
+
|
|
45
|
+
Full docs: **[effortless-aws.website](https://effortless-aws.website)**
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
MIT
|