in-progress

Dev Tools CLI

A command-line toolkit for automating repetitive development tasks — project scaffolding, code generation, and workflow automation.

#TypeScript#Node.js#CLI#Developer Tools

Overview

A personal CLI toolkit that automates the repetitive parts of starting new projects and maintaining existing ones. Written in TypeScript, built for my own workflow.

Problem

Every new project starts with the same ritual: create directory, initialize git, install dependencies, set up eslint, configure TypeScript, create initial file structure…

After doing this dozens of times, I wanted a single command to handle it.

Solution

A CLI tool with commands for common developer workflows:

# Scaffold a new project
devt new my-project --template astro-ts

# Generate a component with types
devt generate component Button

# Run common checks
devt check --lint --types --tests

Tech Stack

  • TypeScript — Full type safety for the CLI itself
  • Commander.js — CLI argument parsing
  • Inquirer.js — Interactive prompts
  • Handlebars — Template rendering for code generation
  • Chalk — Terminal colors and formatting

Challenges

Template management. Making templates flexible enough to be useful without becoming a framework. Found a good balance with Handlebars and a simple variable system.

Cross-platform compatibility. File paths and shell commands behave differently on Windows, macOS, and Linux. Had to carefully test each feature across platforms.

Lessons Learned

Building a CLI is a great way to learn about:

  • Node.js process management
  • File system operations
  • Cross-platform compatibility
  • User experience in terminal environments

Status

Currently in active development. The core scaffolding features work; code generation is in progress.