npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@castri1/deployment-cli

v1.0.1

Published

CLI tool to launch and monitor AWS CodePipeline deployments across multiple environments

Downloads

30

Readme

  ____  _____ ____  _     _____   __
 |  _ \| ____|  _ \| |   / _ \ \ / /
 | | | |  _| | |_) | |  | | | \ V /
 | |_| | |___|  __/| |__| |_| || |
 |____/|_____|_|   |_____\___/ |_|

 v1.0.0

Why

Deploying through the AWS Console is slow and tedious. Jumping between tabs to check stages, approve gates, or tail logs breaks your flow. deploy-cli brings all of that into your terminal with real-time tracking, desktop notifications, and interactive hotkeys — so you never leave your editor.


Install

npm install -g @castri1/deployment-cli

Quick Start

# Interactive first-time setup
deploy-cli init

# Deploy a pipeline
deploy-cli deploy dev my-app

# Watch all tracked pipelines in real-time
deploy-cli watch

Commands

| Command | Description | |---------|-------------| | init | Set up deploy-cli with your first environment and pipeline | | login [env] | Run AWS SSO login for an environment | | deploy [env] [pipeline] | Start a pipeline execution and monitor progress | | watch [env] [pipeline] | Live status view of all tracked executions | | status <env> [pipeline] | Detailed status of a specific execution | | list | List all configured environments and pipelines | | add | Add a new pipeline or environment interactively | | remove | Remove a pipeline or environment | | sync [env] | Import pipelines from AWS into your config | | approve <env> [pipeline] | Approve or reject a pending manual approval | | history <env> [pipeline] | Show recent deployment history | | logs <env> [pipeline] | Stream CodeBuild logs in real-time | | stop [env] [pipeline] | Stop a running pipeline execution | | config | View or edit the active configuration |

Running deploy-cli with no command opens an interactive menu.


Live View

The watch command gives you a real-time dashboard of all running pipelines with interactive hotkeys:

| Key | Action | |-----|--------| | d | Deploy a new pipeline | | a | Approve a pending gate | | s | Stop a running pipeline | | l | Stream CodeBuild logs | | h | Show execution history | | q | Quit |

Pipelines show per-stage progress with status indicators:

  ✓ Source        ✓ Build        ⟳ Deploy (2m 34s)        ○ Approval        ○ Production

Desktop notifications fire on completions, failures, and pending approvals.


Configuration

deploy-cli uses a YAML config file. Run deploy-cli init to create one, or set it up manually.

Config file locations (checked in order):

  1. ~/.deployment-cli/config.yaml
  2. ./deployment-cli.yaml
  3. ./.deployment-cli.yaml

Example

environments:
  dev:
    profile: my-company-dev       # AWS SSO profile
    region: us-east-1
    pipelines:
      - name: my-app-dev
        description: "Main app — Dev"
        hooks:
          pre-deploy:
            - command: npm test
              description: Run tests before deploying
          post-deploy:
            - command: npm run smoke:test
              description: Smoke test the deployment

  staging:
    profile: my-company-staging
    region: us-east-1
    pipelines:
      - name: my-app-staging
        description: "Main app — Staging"

  prod:
    profile: my-company-prod
    region: us-east-1
    pipelines:
      - name: my-app-prod
        description: "Main app — Production"

defaults:
  pollIntervalSeconds: 10
  notifications: true

Hooks

Run commands before or after deployments. Pre-deploy hooks abort the deployment on failure. Post-deploy hooks run only after a successful pipeline execution.

hooks:
  pre-deploy:
    - command: npm test
      description: Run unit tests
    - command: npm run lint
  post-deploy:
    - command: curl -sf https://my-app.dev/health
      description: Health check

Skip hooks with --skip-hooks:

deploy-cli deploy dev my-app --skip-hooks

Pipeline Sync

Already have pipelines in AWS? Import them automatically:

# Interactive selection
deploy-cli sync dev

# Import all missing pipelines
deploy-cli sync dev --all

JSON Output

Machine-readable output is available on display commands:

deploy-cli status dev my-app --json
deploy-cli list --json
deploy-cli history dev my-app --json

Authentication

deploy-cli uses AWS SSO profiles defined in ~/.aws/config. Each environment maps to a profile:

# Log in to an environment
deploy-cli login dev

# Credentials are validated automatically before operations

If credentials expire during a long watch session, deploy-cli detects it and prompts you to re-login.


Requirements

  • Node.js >= 18
  • AWS CLI v2 with SSO profiles configured
  • Active AWS SSO session for target environments

License

MIT