Envarly
Edit, audit, and protect your Windows environment variables. Preview every change before applying, clean up PATH entries with folder pickers, and keep registry writes intentional.
winget install Envarly.Envarly

Features
Everything you need to manage environment variables safely.
Diff preview
Every staged change is shown as a diff before you click Apply — nothing reaches the registry without going through this review.
Secret detection
Name-based heuristics and value-pattern matching across 35+ token formats — GitHub, AWS, Anthropic, Stripe, npm, and more.
External change detection
Detects registry changes made by other processes while Envarly is open. Shows a diff with selective apply per entry.
Snapshots & demo mode
Save named snapshots of your full environment, encrypted with DPAPI. Demo mode opens realistic sample data for screenshots and walkthroughs without touching your registry.
Also included
Practical PATH editor
Reorder entries, validate each one with a live ✓ / ✗ existence check, switch between list and plain text, move through rows with the keyboard, and choose folders — all without leaving the editor.
Environment guidance
Shows short descriptions for well-known variables and warns on unresolvable %VAR% references in path entries.
Local undo before staging
Multi-step Ctrl+Z in the detail panel before staging. Drag reorders and text edits are independent undo steps.
Apply progress & log
A progress bar and per-variable log show exactly what happened while staged changes are written to the registry.
Import / Export
Read and write .json and .reg formats, plus export to PowerShell, DSC, and Ansible-friendly files. Preview before any write.
Resizable panels
Drag the sidebar and snapshots panel to the width you want. Sizes are remembered across restarts.
Check command
Find out why a command isn't found — searches the effective PATH for a name or exe path and flags shadowed duplicates.
Command-line interface
Read, export, and edit environment variables from scripts. Write commands default to a dry run and require --apply to save changes.
Who is it for?
Envarly is built for developers and power users on Windows 10 and 11 who frequently edit User and System environment variables — and want a safer, more visual alternative to the built-in Windows Settings panel.
Whether you are managing a cluttered PATH variable, rotating API keys stored as environment variables, importing a team's .env baseline, or restoring a snapshot after a bad install — Envarly gives you full visibility before any registry write happens.
Frequently asked questions
How does Envarly differ from the Windows environment variable editor?
Envarly lets you stage multiple environment variable changes and review their diffs before applying them. It also includes a PATH list editor with folder selection and path checks, secret detection, and encrypted snapshots.
Can I add folders to PATH and change their order?
Yes. In the PATH list editor, type a folder path or choose a folder, then drag entries to reorder them. You can also move between rows with the arrow keys and reorder with Alt + Up/Down. Stage the edit and review the diff before applying it.
Can I review environment variable changes before saving them?
Yes. Editing and staging do not write to the registry. The Apply dialog shows additions, changes, and deletions together, including before-and-after values and PATH entry diffs. Only confirming Apply writes the staged changes.
Can I back up environment variables and restore an earlier state?
Yes. Save a named snapshot, or use the automatic snapshot taken before applying changes in the app. Restoring a snapshot stages the changes for review, including deletion of variables added since that snapshot. Snapshots are encrypted with Windows DPAPI and can only be decrypted by the same Windows account on the same PC; they are not portable backups.
Can I use Envarly without administrator privileges?
Yes. You can view User and System variables and edit your own User variables without elevation. Changing System variables or editing another account requires administrator privileges. Envarly can restart with elevation when needed.
Why are my changed environment variables not reflected in the terminal?
An already running process keeps its own environment. Envarly notifies Windows after applying changes, but it cannot replace the environment of an existing shell. Restart the terminal or the application that launches it, such as your editor; opening a new tab in an existing terminal may not be enough.
Can I use Envarly from the command line or scripts?
Yes. Envarly provides get, list, and export commands for reading, plus set, delete, and import for changes. These write commands default to a dry run and only modify the registry when you add --apply. Run envarly --help to see the commands and options.
Run these commands from a terminal. Add the Envarly installation folder to PATH using the app, or invoke envarly.exe by its full path.
envarly --help
envarly list --scope userCLI usage and examplesBuilt with