# @stacksjs/ts-cloud

> A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.

Latest version **0.16.0** (published 2026-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stacksjs/ts-cloud
pnpm add @stacksjs/ts-cloud
yarn add @stacksjs/ts-cloud
bun add @stacksjs/ts-cloud
```

Provides the command `cloud`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; large bundle; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.16.0 |
| Published | 2026-09-10 |
| First published | 2026-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 4 |
| Unpacked size | 11.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Chris Breuer <chris@stacksjs.com> |
| Maintainers | chrisbreuer, glenn123 |
| Keywords | typescript, aws, cloudformation, infrastructure, bun, serverless, ec2, forge, vapor, iac |

## Links

- npm: https://www.npmjs.com/package/@stacksjs/ts-cloud
- Repository: https://github.com/stacksjs/ts-cloud
- Homepage: https://github.com/stacksjs/ts-cloud#readme
- Issues: https://github.com/stacksjs/ts-cloud/issues
- npm.io page: https://npm.io/package/@stacksjs/ts-cloud

## Dependencies (4)

- [hash-wasm](https://npm.io/package/hash-wasm.md) ^4.12.0
- [@ts-cloud/core](https://npm.io/package/@ts-cloud/core.md) 0.16.0
- [@stacksjs/ts-xml](https://npm.io/package/@stacksjs/ts-xml.md) ^0.1.2
- [@ts-cloud/aws-types](https://npm.io/package/@ts-cloud/aws-types.md) 0.16.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.16.0 (latest) — 2026-09-10
- 0.15.1 — 2026-09-10
- 0.15.0 — 2026-09-10
- 0.14.0 — 2026-09-10
- 0.13.1 — 2026-09-10
- 0.13.0 — 2026-09-10
- 0.12.16 — 2026-09-09
- 0.12.14 — 2026-09-07
- 0.12.15 — 2026-09-07
- 0.12.13 — 2026-09-07
- 0.12.12 — 2026-09-02
- 0.12.11 — 2026-09-02
- 0.12.10 — 2026-08-29
- 0.12.9 — 2026-08-29
- 0.12.8 — 2026-08-27
- … 230 more at https://npm.io/package/@stacksjs/ts-cloud/versions

## README

# @stacksjs/ts-cloud

A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications on AWS.

## Installation

```bash
bun add @stacksjs/ts-cloud
```

```bash
npm install @stacksjs/ts-cloud
```

## Usage

```typescript
import { defineStack } from '@stacksjs/ts-cloud'

const stack = defineStack({
  name: 'my-app',
  resources: {
    // Define your infrastructure
  },
})

// Deploy the stack
await stack.deploy()
```

### CLI

```bash
# Initialize a new project
cloud init

# Deploy your stack
cloud stack deploy

# Manage resources
cloud database status
cloud cdn invalidate
cloud storage list
cloud secrets set MY_SECRET value

# Monitoring & logs
cloud logs tail --stack my-app
cloud cost estimate
cloud status
```

## Features

- TypeScript-first infrastructure as code
- Full AWS CloudFormation support with type safety
- CLI for managing deployments, databases, CDN, storage, secrets, and more
- Server-based (EC2) and serverless deployment support
- DNS and SSL management
- Container and registry support
- Event-driven architecture (EventBridge, SNS, SQS)
- Scheduler, notifications, and email integration
- Environment and team management
- Cost estimation and analytics
- Cross-platform compiled binaries (Linux, macOS, Windows)

## License

MIT

---
_Source: https://npm.io/package/@stacksjs/ts-cloud · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
