# ecsx

> Easily create, manage and deploy ECS based applications

Latest version **0.9.3** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ecsx
pnpm add ecsx
yarn add ecsx
bun add ecsx
```

Provides the command `ecsx`.

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.9.3 |
| Published | 2026-10-22 |
| First published | 2021-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22 |
| Dependencies | 10 |
| Unpacked size | 99 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | Marc Qualie @marcqualie |
| Maintainers | marcqualie |
| Keywords | oclif |

## Links

- npm: https://www.npmjs.com/package/ecsx
- Repository: marcqualie/ecsx
- Homepage: https://github.com/marcqualie/ecsx
- Issues: https://github.com/marcqualie/ecsx/issues
- npm.io page: https://npm.io/package/ecsx

## Dependencies (10)

- [yaml](https://npm.io/package/yaml.md) ^2.9.1
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.23
- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [tty-table](https://npm.io/package/tty-table.md) ^5.0.0
- [jsonschema](https://npm.io/package/jsonschema.md) ^1.5.0
- [@oclif/core](https://npm.io/package/@oclif/core.md) ^4.14.0
- [@inquirer/prompts](https://npm.io/package/@inquirer/prompts.md) ^8.7.4
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^6.3.0
- [@aws-sdk/client-ecs](https://npm.io/package/@aws-sdk/client-ecs.md) ^3.1052.0
- [@oclif/plugin-plugins](https://npm.io/package/@oclif/plugin-plugins.md) ^5.5.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.9.3 (latest) — 2026-10-22
- 0.9.2 — 2026-06-03
- 0.9.1 — 2026-04-17
- 0.9.0 — 2025-08-03
- 0.8.2 — 2023-01-06
- 0.8.1 — 2023-01-06
- 0.8.0 — 2022-10-31
- 0.8.0-alpha.3 — 2022-10-21
- 0.8.0-alpha.2 — 2022-10-21
- 0.8.0-alpha.0 — 2022-06-16
- 0.7.0 — 2022-05-24
- 0.6.0 — 2021-10-23
- 0.6.0-alpha.1 — 2021-07-14
- 0.6.0-alpha.0 — 2021-06-24
- 0.5.0 — 2021-06-16
- … 11 more at https://npm.io/package/ecsx/versions

## README

ecsx
====

Easily create, manage and deploy ECS based applications

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/ecsx.svg)](https://npmjs.org/package/ecsx)
[![Downloads/week](https://img.shields.io/npm/dw/ecsx.svg)](https://npmjs.org/package/ecsx)
[![License](https://img.shields.io/npm/l/ecsx.svg)](https://github.com/marcqualie/ecsx/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
* [create a pull request with the version bump](#create-a-pull-request-with-the-version-bump)
* [once merged you can tage the commit on main to release](#once-merged-you-can-tage-the-commit-on-main-to-release)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g ecsx
$ ecsx COMMAND
running command...
$ ecsx (--version)
ecsx/0.9.3 linux-x64 node-v26.12.1
$ ecsx --help [COMMAND]
USAGE
  $ ecsx COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`ecsx config`](#ecsx-config)
* [`ecsx console [COMMAND]`](#ecsx-console-command)
* [`ecsx delete TASKNAME`](#ecsx-delete-taskname)
* [`ecsx deploy TASKNAME`](#ecsx-deploy-taskname)
* [`ecsx help [COMMAND]`](#ecsx-help-command)
* [`ecsx list-clusters`](#ecsx-list-clusters)
* [`ecsx ps`](#ecsx-ps)
* [`ecsx redeploy TASKNAME`](#ecsx-redeploy-taskname)
* [`ecsx run TASKNAME`](#ecsx-run-taskname)
* [`ecsx scale TASKNAME COUNT`](#ecsx-scale-taskname-count)
* [`ecsx verify-config [CONFIGPATH]`](#ecsx-verify-config-configpath)

## `ecsx config`

Print out current configuration

```
USAGE
  $ ecsx config -c <value> [-h] [--var <value>...] [--taskName <value>]

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.
  --taskName=<value>
      --var=<value>...      [default: ]

DESCRIPTION
  Print out current configuration
```

_See code: [src/commands/config.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/config.ts)_

## `ecsx console [COMMAND]`

Launch a temporary interactive container

```
USAGE
  $ ecsx console [COMMAND] -c <value> [-h]

ARGUMENTS
  [COMMAND]  [default: /bin/sh] Command to run in the console

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.

DESCRIPTION
  Launch a temporary interactive container
```

_See code: [src/commands/console.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/console.ts)_

## `ecsx delete TASKNAME`

Remove a service/task from a cluster

```
USAGE
  $ ecsx delete TASKNAME -c <value> [-h] [--force]

ARGUMENTS
  TASKNAME  Name of the task to delete

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.
  --force

DESCRIPTION
  Remove a service/task from a cluster
```

_See code: [src/commands/delete.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/delete.ts)_

## `ecsx deploy TASKNAME`

Create a task definition then deploy it as a service

```
USAGE
  $ ecsx deploy TASKNAME -c <value> -t <value> [-h] [--var <value>...]

ARGUMENTS
  TASKNAME  Name of the task to deploy

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.
  -t, --dockerTag=<value>   (required)
      --var=<value>...      [default: ]

DESCRIPTION
  Create a task definition then deploy it as a service
```

_See code: [src/commands/deploy.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/deploy.ts)_

## `ecsx help [COMMAND]`

Display help for ecsx.

```
USAGE
  $ ecsx help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for ecsx.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.3.0/src/commands/help.ts)_

## `ecsx list-clusters`

Show running services within a cluster

```
USAGE
  $ ecsx list-clusters [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  Show running services within a cluster
```

_See code: [src/commands/list-clusters.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/list-clusters.ts)_

## `ecsx ps`

Show running services within a cluster

```
USAGE
  $ ecsx ps [-h] [-c <value>] [--showTasks]

FLAGS
  -c, --clusterKey=<value>  Name of the cluster key from the config
  -h, --help                Show CLI help.
      --showTasks           Show recent tasks

DESCRIPTION
  Show running services within a cluster
```

_See code: [src/commands/ps.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/ps.ts)_

## `ecsx redeploy TASKNAME`

Redeploy a service using its currently running tag, recycling the containers

```
USAGE
  $ ecsx redeploy TASKNAME -c <value> [-h] [--var <value>...]

ARGUMENTS
  TASKNAME  Name of the task to redeploy

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.
      --var=<value>...      [default: ]

DESCRIPTION
  Redeploy a service using its currently running tag, recycling the containers
```

_See code: [src/commands/redeploy.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/redeploy.ts)_

## `ecsx run TASKNAME`

Run a one off task on the cluster

```
USAGE
  $ ecsx run TASKNAME -c <value> -t <value> [-h] [--var <value>...]

ARGUMENTS
  TASKNAME  Name of the task to run

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.
  -t, --dockerTag=<value>   (required)
      --var=<value>...      [default: ]

DESCRIPTION
  Run a one off task on the cluster
```

_See code: [src/commands/run.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/run.ts)_

## `ecsx scale TASKNAME COUNT`

Scale services up or down to the desired count

```
USAGE
  $ ecsx scale TASKNAME COUNT -c <value> [-h]

ARGUMENTS
  TASKNAME  Name of the task to scale
  COUNT     Number of instances to scale to

FLAGS
  -c, --clusterKey=<value>  (required)
  -h, --help                Show CLI help.

DESCRIPTION
  Scale services up or down to the desired count
```

_See code: [src/commands/scale.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/scale.ts)_

## `ecsx verify-config [CONFIGPATH]`

Scale services up or down to the desired count

```
USAGE
  $ ecsx verify-config [CONFIGPATH] [-h]

ARGUMENTS
  [CONFIGPATH]  Path to the configuration file

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  Scale services up or down to the desired count
```

_See code: [src/commands/verify-config.ts](https://github.com/marcqualie/ecsx/blob/v0.9.3/src/commands/verify-config.ts)_
<!-- commandsstop -->



## AWS Systems Session Manager

In order to use the `console` command, you need to have [AWS System Session Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html) installed on your local system.


### MacOS Quick Start

These commands are taken from the [full documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html#install-plugin-macos). You can find information on how to install on other platforms there as well.

```shell
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/mac/sessionmanager-bundle.zip" -o "sessionmanager-bundle.zip"
unzip sessionmanager-bundle.zip
sudo ./sessionmanager-bundle/install -i /usr/local/sessionmanagerplugin -b /usr/local/bin/session-manager-plugin
```



## Publishing

To publish to npm:

```shell
pnpm test # to verify everything works
pnpm build # to ensure the projcet builds properly and outputs
```

Then, manually bump version in `package.json`. Once the version is updated:

```shell
pnpm oclif readme # updates the readme with new version
git commit -am "release v1.2.3"
# create a pull request with the version bump
# once merged you can tage the commit on main to release
git tag v1.2.3
git push && git push origin v1.2.3
```

Pushing the `v*` tag triggers the [publish workflow](./.github/workflows/publish.yml),
which builds, tests and then **stages** the release to npm via trusted publishing
(OIDC) rather than publishing it directly.

The staged release is not live yet. A maintainer must review and approve it with
2FA before it becomes available:

See the
[npm staged publishing docs](https://docs.npmjs.com/staged-publishing) for full details.

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