Skip to main content

npx CLI reference

ModularPipelines.Node provides strongly typed access to the npx CLI.

Executable prerequisite​

This package does not install the npx executable. Install it separately and ensure npx is available on PATH.

See the npx installation guide.

Install npx with a supported Node.js distribution.

Package installation​

dotnet add package ModularPipelines.Node

Resolve the service with context.Tools.Npx. Projects using C# 13 or another .NET language can use context.Tools.Get<ModularPipelines.Node.Services.INpx>() instead.

Module example​

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var npx = context.Tools.Npx;

Commands​

CLI commandOptions record
npxNpxExecuteOptions