Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IHeftParsedCommandLine > unaliasedCommandName

IHeftParsedCommandLine.unaliasedCommandName property

Returns the subcommand passed on the Heft command line, after any aliases have been expanded. This can be useful when printing error messages that need to refer to the invoked command line.

Signature:

readonly unaliasedCommandName: string;

Remarks

For example, if the invoked command was heft test --verbose, then unaliasedCommandName would be test.

Suppose the invoked command was heft start which is an alias for heft build-watch --serve. In this case, the unaliasedCommandName would be build-watch. To get the alias name start, use