Skip to main content

pathman

A PATH environment variable manager for Windows, as a command-line tool and a small native app.

The pathman window listing the entries of the user PATH with their status, above buttons to remove, refresh, prune, open and copy entries.
pathman showing the user PATH. The paths are blurred for privacy. Select the picture to see it at full size.

Features

Download

The current version is 1.0.0. If you are unsure which build to choose, download the native x64 build.

pathman 1.0.0 builds
Build Command-line tool App Needs .NET
Native, x64 pathman-cli-win-x64-native.zip (1.6 MB) pathman-gui-win-x64-native.zip (1.0 MB) No
Native, x86 pathman-cli-win-x86-native.zip (1.5 MB) pathman-gui-win-x86-native.zip (957 KB) No
Self-contained, x64 pathman-cli-win-x64-standalone.zip (5.8 MB) pathman-gui-win-x64-standalone.zip (5.6 MB) No
Self-contained, x86 pathman-cli-win-x86-standalone.zip (5.1 MB) pathman-gui-win-x86-standalone.zip (4.9 MB) No
Framework-dependent, x64 pathman-cli-win-x64-slim.zip (198 KB) pathman-gui-win-x64-slim.zip (139 KB) Yes, the .NET 10 Runtime for x64
Framework-dependent, x86 pathman-cli-win-x86-slim.zip (185 KB) pathman-gui-win-x86-slim.zip (127 KB) Yes, the .NET 10 Runtime for x86
Native
Compiled ahead of time to machine code. The smallest download and the fastest start.
Self-contained
Carries the parts of .NET it needs, so nothing else has to be installed.
Framework-dependent
The smallest files, for computers that already have the .NET 10 Runtime.

Put both programs in the same folder to open the app from the command line with pathman gui.

Command-line usage

Every command works on your user PATH unless you add --system. Changing the system PATH needs an elevated terminal.

pathman list
Lists the entries. Add --interactive to page through them, or --stale to show only missing and empty directories.
pathman has path
Checks whether a directory is in PATH. Add --glob to search with a pattern, or --quiet to only set the exit code.
pathman add path
Adds a directory, unless it is already there.
pathman remove path…
Removes one or more directories. Add --interactive instead of paths to pick them from a list.
pathman prune
Removes missing and empty directories. Use --target Missing or --target Empty to remove only one kind.
pathman dedupe
Removes duplicate directories, keeping the spelling that uses variables. Add --dry to only list them.
pathman gui
Opens the app.

Run pathman --help for every option.

Requirements