Improve this page

Environment variables

The Rush tool’s behavior can be customized using the shell environment variables described below:

If this variable is set to true, Rush will create symlinks with absolute paths instead of relative paths. This can be necessary when a repository is moved during a build or if parts of a repository are moved into a sandbox.


If this variable is set to true, Rush will not fail the build when running a version of Node that does not match the criteria specified in the nodeSupportedVersionRange field from rush.json.


This environment variable is used by the experimental buildCache feature. It provides a credential for accessing the remote build cache, if configured. Setting this environment variable overrides a false value for the isCacheWriteAllowed setting. This credential also overrides any cached credentials.

If Azure Blob Storage is used to store cache entries, this must be a SAS token serialized as query parameters. See this article for details about SAS tokens.


This environment variable can be used to specify the --target-folder parameter for the rush deploy command.


Explicitly specifies the path for the Git binary that is invoked by certain Rush operations.


Overrides the location of the ~/.rush global folder where Rush stores temporary files.

Most of the temporary files created by Rush are stored separately for each monorepo working folder, to avoid issues of concurrency and compatibility between tool versions. However, a small set of files (e.g. installations of the @microsoft/rush-lib engine and the package manager) are stored in a global folder to speed up installations. The default location is ~/.rush on POSIX-like operating systems or C:\Users\YourName on Windows. (POSIX is a registered trademark of the Institute of Electrical and Electronic Engineers, Inc.)

Use RUSH_GLOBAL_FOLDER to specify a different folder path. This is useful for example if a Windows group policy forbids executing scripts installed in a user’s home directory.


Specifies the maximum number of concurrent processes to launch during a build. For more information, see the command-line help for the --parallelism parameter for rush build.


When using PNPM as the package manager, this variable can be used to configure the path that PNPM will use as the store directory.

If a relative path is used, then the store path will be resolved relative to the process’s current working directory. An absolute path is recommended.


This variable overrides the version of Rush that will be installed by the version selector. The default value is determined by the rushVersion field from rush.json.

For example, if you want to try out a different release of Rush before upgrading your repo, you can assign the variable like this:

$ set RUSH_PREVIEW_VERSION=5.0.0-dev.25
$ rush install


This variable overrides the temporary folder used by Rush. The default value is common/temp under the repository root.


This variable selects a specific installation variant for Rush to use when installing and linking package dependencies.

For more information about this feature, see Installation Variants.