Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

ParameterTypeDescription
-TargetDirstringDestination folder (overrides config.ini DefaultInstallDir).
-Channelstringstable, prerelease, freethreaded, or <major.minor> (e.g. 3.14, 3.14t).
-VersionstringExact version (e.g. 3.14.10, 3.13.17, 3.15.0rc3).
-Archstringx64, arm64, or x86 (default: x64).
-FreeThreadedswitchSelects free-threaded (3.XXt) builds.
-PresetstringComma-separated profile names from profiles\ (overrides OptionalProfiles).
-SkipVerifyswitchSkips SHA-256 verification (not recommended).
-SkipPipBootstrapswitchSkips offline ensurepip bootstrap.
-SkipPathswitchSkips User PATH updates.
-SkipRegistryswitchSkips PEP 514 HKCU registry and App Paths registration.
-SkipPortableEnvswitchSkips portable User env vars.
-SkipContextMenuswitchSkips "Open Python Prompt Here" Explorer menus.
-SkipSettingsswitchSkips applying [PipConfig] settings.
-SkipPackagesswitchSkips installing [Packages].
-SkipVenvsswitchSkips creating [Venvs].
-OverwriteSettingsswitchOverwrites conflicting keys in data\pip.ini.
-ForceswitchProceeds without overwriting prompts.

src\update.ps1

Updates an existing Portable Python installation in-place while preserving <InstallDir>\data\.

ParameterTypeDescription
-TargetDirstringExisting portable Python folder (omit to auto-discover).
-ChannelstringTarget channel (stable, prerelease, freethreaded).
-VersionstringExplicit target version or minor line (e.g. 3.14 or 3.14.10).
-SkipVerifyswitchSkips SHA-256 verification.
-ForceswitchUpdates 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.

ParameterTypeDescription
-TargetDirstringExisting portable Python folder (omit to auto-discover).
-ModestringInteractive (default), Status, Settings, InstallPackages, BootstrapPip, Venvs, AddPath, RemovePath, SwitchActive, AddRegistry, RemoveRegistry, AddContextMenu, RemoveContextMenu, CleanCache, ExportProfile, ImportProfile.
-PresetstringProfile name(s) for Settings, InstallPackages, or Venvs.
-ProfilePathstringJSON file path for ExportProfile / ImportProfile.
-OverwriteswitchOverwrites 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.

ParameterTypeDescription
-TargetDirstringTarget folder to clean up or remove (omit to auto-discover).
-RegistryOnlyswitchRemoves PEP 514 registry, App Paths, context menus, User PATH, and portable env vars only (keeps files).
-ForceswitchSkips interactive confirmation prompts.