CLI Reference
All entrypoints require PowerShell 7.x (pwsh.exe) and can be invoked directly or via main.bat.
src\install.ps1
Downloads, verifies, extracts, bootstraps pip, and preconfigures a Portable Python installation.
| Parameter | Type | Description |
|---|---|---|
-TargetDir | string | Destination folder (overrides config.ini DefaultInstallDir). |
-Channel | string | stable, prerelease, freethreaded, or <major.minor> (e.g. 3.14, 3.14t). |
-Version | string | Exact version (e.g. 3.14.10, 3.13.17, 3.15.0rc3). |
-Arch | string | x64, arm64, or x86 (default: x64). |
-FreeThreaded | switch | Selects free-threaded (3.XXt) builds. |
-Preset | string | Comma-separated profile names from profiles\ (overrides OptionalProfiles). |
-SkipVerify | switch | Skips SHA-256 verification (not recommended). |
-SkipPipBootstrap | switch | Skips offline ensurepip bootstrap. |
-SkipPath | switch | Skips User PATH updates. |
-SkipRegistry | switch | Skips PEP 514 HKCU registry and App Paths registration. |
-SkipPortableEnv | switch | Skips portable User env vars. |
-SkipContextMenu | switch | Skips "Open Python Prompt Here" Explorer menus. |
-SkipSettings | switch | Skips applying [PipConfig] settings. |
-SkipPackages | switch | Skips installing [Packages]. |
-SkipVenvs | switch | Skips creating [Venvs]. |
-OverwriteSettings | switch | Overwrites conflicting keys in data\pip.ini. |
-Force | switch | Proceeds without overwriting prompts. |
src\update.ps1
Updates an existing Portable Python installation in-place while preserving <InstallDir>\data\.
| Parameter | Type | Description |
|---|---|---|
-TargetDir | string | Existing portable Python folder (omit to auto-discover). |
-Channel | string | Target channel (stable, prerelease, freethreaded). |
-Version | string | Explicit target version or minor line (e.g. 3.14 or 3.14.10). |
-SkipVerify | switch | Skips SHA-256 verification. |
-Force | switch | Updates non-interactively (defaults to latest patch in the same minor line). |
src\configure.ps1
Standalone configurator, venv manager, active version switcher, and JSON profile backup/restore tool.
| Parameter | Type | Description |
|---|---|---|
-TargetDir | string | Existing portable Python folder (omit to auto-discover). |
-Mode | string | Interactive (default), Status, Settings, InstallPackages, BootstrapPip, Venvs, AddPath, RemovePath, SwitchActive, AddRegistry, RemoveRegistry, AddContextMenu, RemoveContextMenu, CleanCache, ExportProfile, ImportProfile. |
-Preset | string | Profile name(s) for Settings, InstallPackages, or Venvs. |
-ProfilePath | string | JSON file path for ExportProfile / ImportProfile. |
-Overwrite | switch | Overwrites conflicting keys in data\pip.ini. |
src\uninstall.ps1
Auto-discovers portable Python installations (including stale PATH/registry references) and removes integration or deletes the entire folder.
| Parameter | Type | Description |
|---|---|---|
-TargetDir | string | Target folder to clean up or remove (omit to auto-discover). |
-RegistryOnly | switch | Removes PEP 514 registry, App Paths, context menus, User PATH, and portable env vars only (keeps files). |
-Force | switch | Skips interactive confirmation prompts. |