A Cake AddIn that extends Cake with the ability to add items to the PATH.

#addin nuget:?package=Cake.Path&version=1.4.0

<package id="Cake.Path" version="1.4.0" />

dotnet add package Cake.Path --version 1.4.0

<PackageReference Include="Cake.Path" Version="1.4.0" />


Contains functionality for manipulating the path.


AddToPath(ICakeContext, DirectoryPath) Adds a value to the path.
AddToPath(ICakeContext, DirectoryPath, PathSettings) Adds a value to the path.
GetEnvironmentPath(ICakeContext) Gets the environment's path.
GetEnvironmentPath(ICakeContext, PathSettings) Gets the environment's path.
ReloadPath(ICakeContext) Reloads an in process path.
RemoveFromPath(ICakeContext, DirectoryPath) Removes a value from the path.
RemoveFromPath(ICakeContext, DirectoryPath, PathSettings) Removes a value from the path.