Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@alepha/command

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alepha/command

Build powerful, type-safe command-line interfaces for your application.

latest
Source
npmnpm
Version
0.10.3
Version published
Maintainers
1
Created
Source

Alepha Command

Build powerful, type-safe command-line interfaces for your application.

Installation

This package is part of the Alepha framework and can be installed via the all-in-one package:

npm install alepha

Module

This module provides a powerful way to build command-line interfaces directly within your Alepha application, using declarative descriptors.

It allows you to define commands using the $command descriptor.

This module can be imported and used as follows:

import { Alepha, run } from "alepha";
import { AlephaCommand } from "alepha/command";

const alepha = Alepha.create()
	.with(AlephaCommand);

run(alepha);

API Reference

Descriptors

Descriptors are functions that define and configure various aspects of your application. They follow the convention of starting with $ and return configured descriptor instances.

For more details, see the Descriptors documentation.

$command()

Declares a CLI command.

This descriptor allows you to define a command, its flags, and its handler within your Alepha application structure.

Keywords

alepha

FAQs

Package last updated on 04 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts