CLI Command Wiring

Standardize registration and routing of new CLI commands in TypeScript.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill cli-command-wiring-jonnymuir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CLI Command Wiring
Source: https://github.com/jonnymuir/Umbraco.Prism/tree/main/.copilot/skills/cli-wiring
Command: npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill cli-command-wiring-jonnymuir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common development oversight where new CLI commands are implemented in the source directory but fail to be registered or routed in the main entry point, rendering them inaccessible to users.

Core Features & Use Cases

  • Routing Verification: Ensures new command modules are correctly imported and mapped in the main CLI entry file.
  • Standardized Implementation: Provides a consistent pattern for command structure, help text generation, and lazy-loading via dynamic imports.
  • Use Case: When adding a new feature like a database migration tool or a diagnostic check, this Skill guides the developer through the mandatory registration steps to ensure the command is discoverable and functional.

Quick Start

Ask the assistant to verify the routing for a new command file by checking if it is correctly imported and mapped within the main CLI entry point.

Frequently Asked Questions about CLI Command Wiring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is my new CLI command not showing up in the TypeScript runtime?

A CLI command remains inaccessible when its module is not imported or mapped in the main entry point. This Skill standardizes CLI command registration by enforcing consistent import patterns and entry point mapping to expose logic correctly.

How do I standardize command registration for a TypeScript CLI?

Standardizing command registration involves enforcing consistent import patterns, help text updates, and entry point mapping. This Skill facilitates the integration of command modules to ensure all implemented logic is correctly exposed to the CLI runtime environment.

What is the best way to route a new database migration command in a CLI?

The best way to route a new database migration command is to verify its import and mapping within the main CLI entry file. This Skill guides developers through the mandatory registration steps to ensure the command is discoverable.

Does this command-line routing approach support dynamic imports for lazy-loading?

Yes, this command-line routing approach supports dynamic imports for lazy-loading. It provides a consistent pattern for command structure and help text generation to facilitate the integration of command modules within the CLI.

How do I update help text when adding new command-line features?

You update help text by following the standardized implementation pattern provided by this Skill. It enforces consistent help text updates and command structure during the registration and routing of new CLI commands.