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

dynamite-cli

v0.3.0

Published

CLI for DynamoDB migrations and seeders

Downloads

6

Readme

🧨 dynamite-cli

A CLI tool to handle migrations and seeders for DynamoDB with ease.

Note: This is an early release — tested manually, but bugs may exist. PRs and issues are welcome!


📦 Features

  • Create migration files with partition/sort keys and data types
  • Run individual or all pending migrations
  • Create and run seeders with type validation
  • Undo migrations (latest, specific, or all)
  • Force-run seeders (irreversible)
  • Track migration/seeder run status via metadata
  • Helpful warnings and edge case handling

⚙️ Installation

npm i dynamite-cli

🧪 Requirements

  • node.js 14 or higher
  • AWS credentials provided in one of the following ways:
    • Option 1: In a .env file in your project root with:
      AWS_ACCESS_KEY_ID=your_key
      AWS_SECRET_ACCESS_KEY=your_secret
      AWS_REGION=your_region
    • Option 2: Already configured globally via AWS CLI (aws configure).
      If your AWS credentials are set up using the AWS CLI, you do not need a .env file.

IAM permissions needed for DynamoDB:

  • dynamodb:CreateTable
  • dynamodb:DeleteTable
  • dynamodb:DescribeTable
  • dynamodb:ListTables
  • dynamodb:PutItem
  • dynamodb:DeleteItem
  • dynamodb:Query
  • dynamodb:Scan

🛠️ Usage

npm i dynamite-cli

Display Help

Show the CLI help menu with all available commands and options.

npx dynamite-cli --help

Create a Migration

Generate a new migration file with a partition key (and optional sort key).

Create Migration Screenshot Create Migration Screenshot Create Migration Screenshot

npx dynamite-cli migration:create --name "tableName" --partitionKey id:N
  • --name Name of the migration file.
  • --partitionKey Partition key definition (name:type).
  • --sortKey (optional) Sort key definition (name:type).
  • Available types: N = Number, S = String, B = Binary.
  • If not specified, the default type is N (Number).

Example with a sort key:

npx dynamite-cli migration:create --name "tableName" --partitionKey id:N --sortKey tenantId:S

Run Migrations

Apply migrations to your DynamoDB tables.

Run Migration Screenshot

Run a specific migration by name:

npx dynamite-cli migration:run --name "your-migration-name"

Run all pending migrations:

npx dynamite-cli migration:run

Undo Migrations

Revert previously applied migrations.

Undo Migration Screenshot

Undo a specific migration by name:

npx dynamite-cli migration:undo --name "your-migration-name"

Undo the latest run migration:

npx dynamite-cli migration:undo

Undo all migrations:

npx dynamite-cli migration:undo --all

Create a Seeder

Generate a new seeder file.

Create Seeder Screenshot Create Seeder Screenshot Create Seeder Screenshot

npx dynamite-cli seed:create --name "your-seeder-name"
  • --name Name of the seeder file.

Run Seeders

Populate your tables with seed data.

Run a specific seeder:

npx dynamite-cli seed:run --name "your-seeder-name"

Force rerun a seeder (irreversible):

npx dynamite-cli seed:run --name "your-seeder-name" --force

⚠️ Seeder files cannot be undone. Use the --force flag to rerun a seeder if needed.


List Migration and Seeder Status

Display the status of all migrations and seeders.

List Status Screenshot

npx dynamite-cli list

💰 AWS Billing Notice

This tool performs real AWS operations and may incur costs if you're outside the AWS Free Tier. Use with caution, especially in production environments.

📃 License

This project is licensed under the MIT License.