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

getcmd

v1.0.11

Published

AI-powered CLI that converts natural language into safe, cross-platform terminal commands

Downloads

25

Readme

getcmd

AI-powered CLI that converts natural language into safe, cross-platform terminal commands.

Installation

npm install -g getcmd

Quick Start

# Setup (one time)
getcmd setup

# 2. Use natural language commands
getcmd "show me which process is using port 3000"
getcmd "list files"

Features

  • AI-Powered: Uses AI for natural language understanding
  • Safety First: Never executes commands, only displays them for copy-paste
  • Cross-Platform: Generates commands for Linux, macOS, and Windows
  • One-Time Setup: Configure once, use forever
  • Smart Detection: Understands your project structure and environment

Examples

| Natural Language | Generated Command | |------------------|-------------------| | getcmd "check port 3000" | Get-NetTCPConnection -LocalPort 3000 (Windows) | | getcmd "find large files" | find . -type f -size +100M -exec ls -lh {} \; (Linux) | | getcmd "show disk usage" | du -sh * (Linux) / Get-ChildItem | Measure-Object (Windows) | | getcmd "start dev server" | npm run dev (detects package.json) |

Commands

Basic Usage

getcmd "your natural language command"

Configuration

getcmd setup     # Configure platform and API key
getcmd status    # Show current settings
getcmd reset     # Reset configuration

Advanced

getcmd "command" --json           # JSON output
getcmd "command" --platform linux # Override platform
getcmd interactive               # Interactive mode

Cross-Platform Intelligence

getcmd automatically generates the right commands for your platform:

Linux/macOS:

getcmd "list files" → ls -la
getcmd "check processes" → ps aux | head -20

Windows:

getcmd "list files" → Get-ChildItem -Force
getcmd "check processes" → Get-Process | Sort-Object CPU -Descending

Safety Features

  • Display Only: Never executes commands automatically
  • Safety Validation: AI + rule-based safety checks
  • Destructive Detection: Warns about dangerous operations
  • Copy-Paste Interface: Maximum user control

Interactive Mode

getcmd interactive
GetCmd Interactive Mode
Using saved platform: linux

What would you like to do? › show processes using most CPU

Commands for linux:
  1. ps aux --sort=-%cpu | head -20

What would you like to do? › exit

Real-World Examples

# Development workflow
getcmd "start development server"
getcmd "install project dependencies"
getcmd "check if port 8080 is free"

# System monitoring
getcmd "show memory usage"
getcmd "find processes using most CPU"
getcmd "check disk space"

# Network debugging
getcmd "show which process is using port 3000"
getcmd "display network connections"
getcmd "check if server is running on port 8000"

Configuration

Settings are stored in ~/.getcmd/config.json:

{
  "platform": "linux",
  "lastUsed": "2025-09-21T19:47:55.123Z"
}

Two Versions

  • getcmd - AI-powered (main)
  • getcmd-pattern - Pattern-based (offline, limited)

Requirements

  • Node.js 14+
  • Internet connection (for AI features)

License

MIT © voidflux

Contributing

Issues and PRs welcome! This tool prioritizes safety and never executes commands automatically.


getcmd - Get the right command for any task, powered by AI!