stacks-cli

Build and manage CLI commands for Stacks projects with @stacksjs/cli.

622|17|Updated Apr 26, 2022
One-click install
npx skills add https://github.com/stacksjs/stacks --skill stacks-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-cli
Source: https://github.com/stacksjs/stacks/tree/main/.claude/skills/stacks-cli
Command: npx skills add https://github.com/stacksjs/stacks --skill stacks-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The CLI framework provides the foundation for building commands, enabling developers to design robust, user-friendly CLIs with argument parsing, options handling, colored output, and a consistent command registration system.

Core Features & Use Cases

  • Foundation package: @stacksjs/cli for creating commands with parsing, options, colored output, prompts, and a CLI workflow.
  • Scenarios include internal buddy CLI commands, application commands under app/Commands/, and scriptable command definitions for automation.

Quick Start

Install the Stacks CLI framework and scaffold a new command to start building your own tool.

Frequently Asked Questions about stacks-cli

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

FAQPage Schema
How do I build a CLI tool with argument parsing and colored output?

To build a CLI tool with argument parsing and colored output, use the @stacksjs/cli framework to define commands, handle options, and manage prompts within your application workflow. It provides a consistent command registration system for robust user interaction.

What is the buddy command system for CLI automation?

The buddy command system is an internal CLI workflow mechanism within Stacks projects that enables scriptable command definitions and automation across app/Commands and framework packages. It streamlines repetitive developer tasks.

How do I structure custom commands in a Stacks project?

Structure custom commands by placing scriptable command definitions inside the app/Commands directory. The @stacksjs/cli framework handles parsing, options, and registration, allowing you to define and manage your command logic consistently.

Does the Stacks CLI framework support interactive user prompts?

Yes, the Stacks CLI framework supports interactive user prompts alongside argument parsing and colored output. This enables you to design robust, user-friendly CLI workflows that gather dynamic input during command execution.

Can I use Stacks CLI for automating internal framework commands?

Yes, you can use the Stacks CLI for automating internal framework commands. It provides the foundation for creating internal buddy CLI commands and scriptable definitions tailored for automation across your Stacks packages.

What's the best way to handle command options and parsing for a new CLI?

The best way to handle command options and parsing is by leveraging the @stacksjs/cli foundation package, which offers built-in argument parsing and options handling to ensure consistent and error-free CLI command execution.