Toolchain Manager
Welcome to the documentation for Toolchain Manager — one unified PowerShell 7.x TUI and headless CLI for 51+ Windows developer toolchains, IDEs, SDKs, runtimes, compilers, databases, local AI/LLM engines, and CLI power-tools with complete directory control and 100% silent installs.
Core Principles
- Official Silent Installer First + Optional Portable Mode: Defaults to official vendor silent
.exe/.msiinstallers targeting your chosen directory (standardmode), with an optional self-contained<InstallDir>\data\portablemode (--portableor TUIMtoggle) for toolchains that publish portable.zipor portable-mode distributions. - Custom Directory & Silent Execution Mandatory: Every supported toolchain honors your target installation directory and runs silently without interactive wizard prompts, verifying PE/MSI or PKZIP headers and official SHA-256/SHA-512 checksums.
- Universal Uninstaller & Safe Config Migration: Discovers and removes Managed/Portable, Windows MSI/EXE, Visual Studio Installer, Winget, Scoop, Chocolatey, and external
PATHcopies, with optional config/SSH backup, embedded path remapping, andpackages-manifest.jsonpackage reinstallation (never copyingnode_modulesorvenvs). - Sleek Keyboard-Driven TUI: Flicker-free PowerShell 7 TUI (
↑/↓,1–8hotkeys,/live search,MMode toggle,Sstatus,DDry-Run preview,LLog toggle).
Quick Links
Getting Started
Prerequisites
- Windows 10 / Windows 11 (
x64,arm64, orx86) - PowerShell 7.x (
pwsh.exe) inPATH:winget install Microsoft.PowerShell
Interactive TUI Mode
Double-click or run ToolchainManager.bat:
- Use
↑/↓or1–8to open a toolchain category. - Press
/from anywhere to filter all 51+ toolchains live. - Press
Mto toggle between Standard (official silent installer to custom directory) and Portable (<InstallDir>\data\isolated mode). - Press
Sto view all detected installations across Managed, System, Winget, Scoop, and Chocolatey. - Press
Dto toggle Dry-Run mode (preview download URLs, silent arguments, checksums, PATH, and env vars with zero writes). - Press
Enteron any toolchain to Install, Update, Configure, Apply Profiles/Workloads, Verify Live Package, or Uninstall ANY existing installation.
Headless CLI Mode
ToolchainManager.bat --list
ToolchainManager.bat --verify-pkg go
ToolchainManager.bat --install git --dir D:\tools\Git --dry-run
ToolchainManager.bat --install git --portable --dir D:\tools\Git --dry-run
ToolchainManager.bat --install vs-buildtools --preset cpp-tools --dry-run
ToolchainManager.bat --update all --dry-run
Configuration & Per-Toolchain Profiles
Toolchain Manager uses a modular INI folder structure so global manager defaults stay minimal while every IDE, SDK, runtime, compiler, and CLI tool has its own native configuration options, Visual Studio [Workloads], and opt-in profiles.
Directory Layout
config\
├── manager.ini # Core manager defaults (BaseInstallDir, DefaultInstallMode, DefaultArch, Logging)
└── toolchains\
├── vs-community.ini # Personal Visual Studio Community overrides ([Toolchain], [Workloads], [Env])
├── vs-buildtools.ini # Personal Visual Studio Build Tools overrides ([Toolchain], [Workloads], [Env])
├── vscode.ini # Personal VS Code overrides ([Toolchain], [Settings], [Extensions], [Env])
├── python.ini # Personal Python overrides ([Toolchain], [Pip], [Packages], [Env])
├── nodejs.ini # Personal Node.js overrides ([Toolchain], [Npm], [Packages], [Env])
├── rust.ini # Personal Rust overrides ([Toolchain], [CargoConfig], [Env])
├── git.ini # Personal Git overrides ([Toolchain], [GitConfig], [GitIgnore], [Env])
└── <id>.ini # One modular personal config file for each of the 51 built-in toolchains
profiles\
├── <id>\*.ini # Per-toolchain opt-in native profiles (e.g. profiles\vs-buildtools\cpp-tools.ini)
└── _bundles\*.ini # Optional multi-toolchain workstation bundles
Core Manager Settings (config\manager.ini)
User-choice keys are intentionally empty by default so interactive TUI prompts work out of the box with zero manual INI editing (and can be saved in config\manager.ini or passed via CLI flags anytime).
| Key | Default | Description |
|---|---|---|
BaseInstallDir | (blank — prompts in TUI) | Optional parent directory where each toolchain installs into <BaseInstallDir>\<FolderName> (CLI fallback: %LOCALAPPDATA%\Toolchains; overridable per tool in config\toolchains\<id>.ini or --dir). |
DefaultInstallMode | (blank — prompts in TUI) | Optional default mode: standard (official silent installer targeting your chosen directory) or portable (optional <InstallDir>\data\ isolated mode). CLI defaults to standard. |
DefaultArch | (blank — auto-detected) | Optional Windows architecture (x64, arm64, x86). Auto-detects current OS architecture when blank. |
VerifyChecksum | true | Enforce SHA-256 / SHA-512 verification against official upstream metadata. |
AutoAddPath | true | Add toolchain bin directories to User PATH when not already wired by an installer. |
AutoAddRegistry | true | In Portable mode, register only official Windows App Paths and documented official vendor HKCU keys (PEP 514 PythonCore, Node.js, GitForWindows). In Standard mode, the official vendor installer manages its own Windows registry keys and Toolchain Manager verifies them post-install/post-uninstall. |
AutoSetPortableEnv | true | Wire isolated User environment variables in Portable mode (or when overridden per tool). |
AutoAddContextMenu | false | Optionally register HKCU Explorer right-click prompt menus. |
Mode & Merge Precedence
- Install Mode precedence: CLI (
--mode,--standard,--portable) / TUIMtoggle →InstallModeinconfig\toolchains\<id>.ini→DefaultInstallModeinconfig\manager.ini(standard). - Profile merge precedence (Personal Always Wins):
OptionalProfileslisted inconfig\toolchains\<id>.iniunder[Toolchain]are loaded fromprofiles\<id>\*.iniin order.- Any
--preset <names>passed on the CLI (or selected via TUI option[4]) are layered next. - Personal keys and
[Workloads]inconfig\toolchains\<id>.iniare overlaid last so your personal settings always win.
Listing & Applying Profiles
ToolchainManager.bat --profiles vs-buildtools
ToolchainManager.bat --install vs-buildtools --preset cpp-tools --dir D:\tools\VSBT --dry-run
ToolchainManager.bat --configure vscode --preset portable-essentials,privacy,no-ai --dry-run
ToolchainManager.bat --install git --portable --preset portable-essentials,privacy,git-aliases --dry-run
CLI Reference
ToolchainManager.bat :: Interactive TUI ('/' search, 'M' mode toggle)
ToolchainManager.bat --list :: List all categories, toolchains & supported modes
ToolchainManager.bat --search <query> :: Search by ID, name, category, or tag
ToolchainManager.bat --status [id] :: Show ALL detected installs (Managed, System, Winget, Scoop, Choco)
ToolchainManager.bat --verify-pkg <id> [--mode <m>] :: Verify live upstream installer/package & checksum
ToolchainManager.bat --verify-zip <id> [--arch <a>] :: Verify live upstream portable .zip & checksum
ToolchainManager.bat --install <id> [options] :: Install silently to custom dir (Standard default; --portable optional)
ToolchainManager.bat --update <id|all> [options] :: Update existing installs (preserves data\ in portable mode)
ToolchainManager.bat --configure <id> [options] :: Apply config\toolchains\<id>.ini, profiles, PATH & Official HKCU Reg
ToolchainManager.bat --profiles [id] :: List per-toolchain opt-in profiles (profiles\<id>\*.ini)
ToolchainManager.bat --uninstall <id> [options] :: Find & uninstall ANY existing install (Managed, MSI/EXE, Winget, Scoop, Choco)
ToolchainManager.bat --export [path] :: Export installed manifest JSON
ToolchainManager.bat --help :: Show CLI help
Common flags: --mode <standard|portable>, --standard, --portable, --version <v>, --arch <x64|arm64|x86>, --dir <path>, --preset <names>, --add-context-menu, --with-optional-tools, --save-config, --restore-config, --reinstall-packages, --portable-only, --registry-only, --dry-run, --force, --no-pause, --log [path].
Troubleshooting
GitHub API Rate Limit (HTTP 403)
Unauthenticated GitHub API calls are limited to 60 requests/hour per IP. If running bulk --verify-pkg, --verify-zip, or --update all, set a read-only token in GITHUB_TOKEN or GH_TOKEN for your current shell session (never commit tokens).
Blocked SFX .7z.exe or Non-Silent Installer Error
Toolchain Manager allows official silent .exe / .msi installers in Standard mode and pure .zip / silent portable-mode installers in Portable mode, while strictly blocking unsupported .7z.exe self-extracting stubs and interactive installers that lack silent custom-directory flags.
Portable Mode Not Supported on a Toolchain
Some toolchains (such as Visual Studio Community and Visual Studio Build Tools) do not ship a portable .zip distribution upstream and expose Standard silent custom-directory installation (--mode standard) only.
UAC Prompt During Machine-Scoped Installer or Uninstall
Per-user installers (VS Code User Setup, VSCodium, Python, Rust) and all Portable .zip installs require zero Administrator privileges. Machine-scoped official MSI/EXE installers (such as Visual Studio, Node.js, Go, Temurin JDK, CMake, Git, GitHub CLI) automatically request Windows UAC elevation only when required.
Terminal Doesn’t See New Tool After Install
Open a new terminal window so Windows picks up the broadcast WM_SETTINGCHANGE User PATH and environment updates.
Architecture
Toolchain Manager combines a strict 4-layer acyclic PowerShell 7.x core with a modular pluggable toolchain catalog and a flicker-free TUI engine:
flowchart TD
TUI["Entrypoint: ToolchainManager.bat -> src/menu.ps1<br/>Interactive TUI (windows-utilities-menu style) & Headless CLI"]
CAT["Catalog & Lifecycle: catalog.ps1 · discovery.ps1 · migration.ps1 · lifecycle.ps1 · resolvers.ps1 · config.ps1 · config-apply.ps1"]
PACKS["Pluggable Packs: src/toolchains/01..08_*.ps1 + custom/*.ps1 · config/toolchains/*.ini · profiles/<id>/*.ini"]
UTIL["Utilities: filesystem.ps1 (PE/MSI + PKZIP + Zip Slip) · path.ps1 · registry.ps1 (Official HKCU Only)"]
EVT["Events: logger.ps1 · progress.ps1"]
TUI --> CAT
CAT --> PACKS
CAT --> UTIL
CAT --> EVT
UTIL --> EVT
Adding Custom Toolchains
- Drop a
.ps1pack intosrc\toolchains\custom\(seesrc\toolchains\custom\_example.disabled.ps1). Any file not starting with_and not ending with.disabled.ps1is auto-discovered bysrc\core\catalog.ps1. - Add its personal config INI at
config\toolchains\<id>.iniwith[Toolchain]overrides (InstallDir,InstallMode,Arch,Version,OptionalProfiles),[Env], and any applicable native config sections (or[Workloads]for Visual Studio). - Add opt-in profiles under
profiles\<id>\*.ini— they automatically appear in--profiles <id>and TUI action[4] Apply Per-Toolchain Profile.
Required Guardrails
- Mandatory Silent + Custom Directory Gate: Every toolchain, IDE, SDK, runtime, compiler, database, or CLI MUST support BOTH (1) custom user-chosen installation directory and (2) 100% silent execution. Define
ResolveInstallerfor official silent.exe/.msiinstallers (Standard mode) and/orResolvefor official pure.ziparchives or silent portable-mode installers (Portable mode). Unsupported.7z.exeSFX stubs remain blocked. - Official Registry Keys Only: Only list real executables in
AppPathExes(registered underHKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\<exe>) and only add anOfficialRegistryHookwhen the upstream vendor officially documents anHKCU\Software\<Vendor>key. Never invent synthetic registry keys. - Universal Uninstall Metadata: Always populate
UninstallMatch(DisplayNames,ExcludeNames,WingetIds,ScoopNames,ChocoNames) so the universal uninstaller can discover and cleanly remove any existing installation.
Release Packaging
.github\workflows\release.yml packages a strict runtime allowlist into toolchain-manager-<tag>.zip + .sha256:
README.txtToolchainManager.batconfig\(manager.ini+toolchains\*.ini)profiles\(<id>\*.ini+_bundles\*.ini)src\
Repository Markdown (*.md), docs\, tests\, .github\, backups\, logs\, and plan.txt are audited and excluded from release archives.