Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > Rush

Rush class

General operations for the Rush engine.

Signature:

export declare class Rush 

Properties

PropertyModifiersTypeDescription
_rushLibPackageFolder

static

readonly

string
version

static

readonly

stringThe currently executing version of the "rush-lib" library. This is the same as the Rush tool version for that release.

Methods

MethodModifiersDescription
launch(launcherVersion, arg)staticThis API is used by the @microsoft/rush front end to launch the "rush" command-line. Third-party tools should not use this API. Instead, they should execute the "rush" binary and start a new Node.js process.
launchRushPnpm(launcherVersion, options)staticThis API is used by the @microsoft/rush front end to launch the "rush-pnpm" command-line. Third-party tools should not use this API. Instead, they should execute the "rush-pnpm" binary and start a new Node.js process.
launchRushX(launcherVersion, options)staticThis API is used by the @microsoft/rush front end to launch the "rushx" command-line. Third-party tools should not use this API. Instead, they should execute the "rushx" binary and start a new Node.js process.