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

@argos-js/cli

v0.1.3

Published

Developer CLI for scaffolding, running, and building Argos-JS applications

Readme

@argos-js/cli

Productive, high-performance developer CLI for scaffolding, running, and building Argos-JS applications.


Installation

# Global installation (recommended)
npm install -g @argos-js/cli
# or with pnpm
pnpm add -g @argos-js/cli

Clean Space-Separated Command Suite

The Argos CLI adheres to a clean, modern, space-separated command taxonomy:

argos new <app-name>          # Scaffold a new project
argos create <type> [name]    # Code generators (alias: argos c)
argos add <module>            # Modular feature provisioner
argos db <subcommand>         # Transactional SQL migration lifecycle
argos route list              # Inspect registered application routes
argos dev                     # Start development server with hot-reload
argos build                   # Build application for production
argos start                   # Run compiled production server

Backward Compatibility: All legacy colon-separated commands (make:*, add:*, db:*, route:list) remain 100% operational as transparent aliases.


1. Generators (argos create)

Official generator command is argos create <type> [name] (shorthand argos c).

argos create <type> [name] [options]
# Shorthand alias:
argos c <type> [name] [options]

Supported Generator Types

| Type | Target Output | Description | |------|---------------|-------------| | controller (or ctrl) | app/controllers/<name>.controller.ts | RESTful controller with router and CRUD endpoints | | model | app/database/models/<name>.model.tsapp/database/schemas/<name>.schema.ts | Active Record model and universal database schema | | middleware (or mw) | app/middlewares/<name>.middleware.ts | HTTP request middleware with (ctx, next) lifecycle | | migration | app/database/migrations/<timestamp>_<name>.ts | Versioned database migration file with up(db) and down(db) | | seed | app/database/seeds/<timestamp>_<name>.seed.ts | Database seeder file with transactional run({ db }: SeedContext) | | job | app/jobs/<name>.job.ts | Async background queue job definition | | webhook | app/webhooks/<name>.webhook.ts | Protected route with HMAC signature verification | | docker | Dockerfile & .dockerignore | Modern multi-stage Dockerfile (Node, Bun, Deno) | | samples | app/controllers/sample.controller.tsapp/routes/samples.routes.ts | Inject onboarding sample endpoints |


Examples

Controllers

argos create controller User
argos c controller Product

Models & Schemas

# Model & Schema
argos create model Product

# Combined flags: generate Model, Schema, Controller, and Migration all at once
argos create model Product -cm

Middlewares

argos create middleware Auth
argos c middleware RateLimit

Migrations

argos create migration create_orders_table
argos c migration add_tags_to_products

Seeds

argos create seed initial_roles
argos c seed default_admin
# Legacy alias
argos make:seed permissions

Jobs

argos create job SendWelcomeEmail
argos c job ProcessPayment

Webhooks

argos create webhook Stripe
argos c webhook GitHub

Docker

argos create docker
argos create docker --runtime bun

Samples

argos create samples

2. Modular Feature Provisioner (argos add)

Unified command to provision official modules into an existing application:

argos add <module> [options]

Supported Modules

| Module | Description | Endpoints & Assets | |--------|-------------|-------------------| | auth | User schema, password scrypt hashing, JWT tokens, auth controller & middleware | POST /api/v1/auth/registerPOST /api/v1/auth/loginPOST /api/v1/auth/refreshGET /api/v1/auth/me | | docs | Automated OpenAPI 3.1.0 specification & interactive modern Scalar UI | GET /docs (Scalar UI)GET /openapi.json (OpenAPI 3.1) | | socialite | OAuth 2.0 social login for Google & GitHub | GET /auth/google & /callbackGET /auth/github & /callback |

argos add auth
argos add docs
argos add socialite

Interactive API Docs (Scalar & OpenAPI 3.1)

Running argos add docs automatically wires up interactive API reference documentation:

argos add docs

This injects app.registerDocs() into your application entrypoint (src/app.ts or app.ts), activating:

  • GET /docs: Modern, fast Scalar UI interactive explorer.
  • GET /openapi.json: Dynamically generated OpenAPI 3.1.0 specification reflecting all registered routes, validation schemas, parameters, and responses.

3. Database Management (argos db)

Argos provides a complete, transactional SQL migration lifecycle suite.

| Command | Shorthand / Alias | Description | |---------|-------------------|-------------| | argos db migrate | argos migrate / argos db:migrate | Execute pending database migrations | | argos db rollback | argos db:rollback | Rollback the latest migration batch | | argos db status | argos db:status | Display status table of all migrations | | argos db sync | argos sync / argos db:sync | Introspect schema and stream data across connections | | argos db seed | argos seed / argos db:seed | Execute database seeders within an isolated transaction | | argos db dump | argos dump / argos db:dump | Export canonical database snapshot bundle (.argos) | | argos db restore | argos restore / argos db:restore | Restore database schema and data from canonical bundle |

# Run pending migrations
argos db migrate

# Run migrations on a specific named connection
argos db migrate --connection=analytics

# Rollback last batch
argos db rollback

# View migration status table
argos db status

# Synchronize schema and stream data across database connections
argos db sync --to production
argos db sync --from local --to cloud_postgres --truncate
argos db sync --from sqlite_dev --to mysql_prod --batch-size 5000

# Run database seeds
argos db seed
argos db seed --connection secondary
argos db seed --file 20261002140000_initial_roles.seed.ts

# Export database dump bundle (.argos)
argos db dump
argos db dump --connection prod --output ./storage/dumps/prod_backup.argos
argos db dump --tables users,roles

# Restore canonical dump into target database
argos db restore --input ./storage/dumps/prod_backup.argos
argos db restore --connection staging --input ./storage/dumps/prod_backup.argos --no-truncate

# Shorthand aliases
argos dump
argos restore -i ./storage/dumps/prod_backup.argos

4. Route Inspection (argos route list)

Inspect all routes, HTTP methods, middlewares, and handlers registered in the application:

argos route list
# or shorthand alias:
argos routes

5. Development & Production Commands

| Command | Description | |---------|-------------| | argos new <app-name> | Scaffold an Argos-JS project with interactive modular wizard | | argos dev | Start development server with ultra-fast hot-reloading | | argos build | Compile the application for production deployment | | argos start | Run compiled Argos-JS application in production mode |


License

MIT