Extending Profiles & Workflows
Adding a New Optional Profile
Drop any .ini file into profiles\ — no PowerShell code changes are required. Get-PythonProfilesCatalog discovers it automatically.
[Profile]
Name = Corporate PyPI
Description = Configures internal PyPI mirror, trusted host, and proxy defaults.
[PipConfig]
index-url = https://pypi.internal.example/simple
trusted-host = pypi.internal.example
prefer-binary = true
[Packages]
uv
ruff
pytest
[Venvs]
create = dev
upgrade_pip = true
[Env]
REQUESTS_CA_BUNDLE = {data_dir}\corp-ca.pem
Adding a New configure.ps1 Mode
- Add the mode name to the
[ValidateSet(...)]attribute on$Modeinsrc\configure.ps1. - Add a corresponding branch in the
switch ($Mode)dispatcher. - Optionally expose it in the interactive menu and document it in
docs\user\cli-reference.mdandREADME.txt.