# ecs-cli
**Repository Path**: zdharma/ecs-cli
## Basic Information
- **Project Name**: ecs-cli
- **Description**: Provides the command for Amazon ecs-cli by copying it to $ZPFX/bin.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-02-05
- **Last Updated**: 2022-02-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
| **Package source:** | Source Tarball | Binary | Git | Node | Gem |
| :-----------------: | :------------: | :--------------------------: | :-: | :--: | :-: |
| **Status:** | :x: | :heavy_check_mark: (default) | :x: | :x: | :x: |
- [Introduction](#introduction)
- [Install](#install)
- [Available `pack''` invocations](#available-pack-invocations)
- [Default Profile](#default-profile)
- [`Bin-Gem-Node` Profile](#bin-gem-node-profile)
# Introduction
> **[?]**
> This repository not compatible with previous versions (zplugin, zinit).
>
> Please upgrade to [ZI](https://github.com/z-shell-zi)
The [aws/amazon-ecs-cli](https://github.com/aws/amazon-ecs-cli) zsh package than can use the NPM package registry to automatically:
- get the plugin's Git repository OR release-package URL,
- get the list of the recommended ices for the plugin,
- there can be multiple lists of ices,
- the ice lists are stored in _profiles_; there's at least one profile, _default_,
- the ices can be selectively overridden.
# Install
## Available `pack''` invocations
```zsh
# Download the binary of amazon-ecs-cli command
zi pack for ecs-cli
# Download the ecs-cli binary with use of the bin-gem-node annex
zi pack"bgn" for ecs-cli
```
## Default Profile
Provides the CLI command `ecs-cli` by coping it to `$ZPFX/bin`.
The ZI command executed will be equivalent to:
```zsh
zi as=null id-as="ecs-cli" mv="*latest -> ecs-cli" \
atclone='chmod +x *; cp -vf ecs-cli $ZPFX/bin' \
atpull="%atclone" sbin="ecs-cli" is-snippet for \
https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-${(M)OSTYPE#(linux|darwin)}-amd64-latest
```
## `Bin-Gem-Node` Profile
Provides the CLI command `ecs-cli` by creating a forwarder script (a _shim_) in
`$ZPFX/bin` by using the
[bin-gem-node](https://github.com/z-shell/z-a-bin-gem-node) annex. It's the best
method of providing the binary to the command line.
The ZI command executed will be equivalent to:
```zsh
zi as=null id-as="ecs-cli" mv="*latest -> ecs-cli" \
atclone="chmod +x *" atpull="%atclone" sbin="ecs-cli"
is-snippet for \
https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-${(M)OSTYPE#(linux|darwin)}-amd64-latest
```