Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.65 KB

File metadata and controls

66 lines (42 loc) · 1.65 KB

@omp-node/cli

@omp-node/cli is a command-line interface (CLI) tool for quickly creating and managing resources in your omp-node project. It allows you to scaffold new resources and build resources located in the resources folder.

Installation

You can install the CLI globally or run it directly using npx.

Using npx (No Installation Required)

To run the CLI tool with npx, you can execute the following commands:

npx @omp-node/cli <command> [options]
Commands:
  @omp-node/cli add    Create and initialize a new resource for omp-node component
  @omp-node/cli build  Iterate through all folders in the 'resources' directory and
                  run 'npm run build' in each

Options:
  --version  Show version number
  --help     Show help

Global Installation (Not necessary, you can just keep using NPX to always have updated package)

To install @omp-node/cli globally, run:

npm install -g @omp-node/cli

Then, you can run it directly:

@omp-node/cli <command> [options]

Commands

add

Creates a new resource/package in the omp-node project.

Usage:

@omp-node/cli add

This command will prompt you to select a project template and provide configuration options to create a new resource.

build

Iterates through all folders in the resources directory and runs npm run build in each one, one by one (not simultaneously). This command is useful for building all resources in the project.

Usage:

@omp-node/cli build

This command will start the build process for each resource in the resources folder, displaying colorful output for each directory processed.