# show usage detailsmhy --mhy-help
# show debug messagesmhy --mhy-debug
# show more info than usualmhy --mhy-verbose
process.env.NODE_ENV variable and adds support to have multiple secondary environments.
# Run as NODE_ENV=productionmhy eslint --mhy-env=prod# Run as NODE_ENV=production with secondary env called `ci`mhy eslint --mhy-env=prod:ui
You can use the
: separator to define multiple secondary environments.
The first environment will be always set as a value for
# Run webpack with configuration loaded for production mode, on Travis-CI only for the master branch.mhy webpack --mhy-env=prod:travis:master
Secondary environments are supported and config also.
Executes the command only when the given expression is truthy.
# On building master I don't need to run tests because they were validated before pull requestsmhy jest --mhy-if="!process.env.MHY_ENVS.includes('master')"
# show mhy's currently installed versionmhy --mhy-version