This document mirrors path_route_md in a Markdown-renderable form for GitHub and local editors.
During a development install such as:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e .Python creates the CLI launcher here:
.\.venv\Scripts\komu.exe
When the virtual environment is activated, PowerShell temporarily prepends:
.\.venv\Scripts
to PATH for the current shell session.
That is why:
komuworks while the venv is activekomustops being discoverable when the shell is no longer using that venv
This behavior is normal for a development install. It does not mean the CLI entrypoint is broken.
The exact location depends on the installation mode.
Command location:
<repo>\.venv\Scripts\komu.exe
Command location:
<USER_BASE>\Scripts\komu.exe
Discover it with:
python -c "import site; print(site.USER_BASE)"pipx creates an isolated environment for KOMU and exposes the CLI through the command path managed by pipx ensurepath.
PowerShell resolves a command name like komu from:
- aliases
- functions
- cmdlets
- scripts and executables found on PATH
For a Python CLI like KOMU, the important part is PATH:
komu.exemust exist- the directory containing
komu.exemust be on PATH
Validation:
Get-Command komu
where.exe komuFor a venv install:
<repo>\.venv\Scripts
For a user install:
$userBase = python -c "import site; print(site.USER_BASE)"
Join-Path $userBase "Scripts"For pipx:
- the path added by
python -m pipx ensurepath
Editable install:
python -m pip install -e .It installs launcher scripts into the current environment and points imports back to the source tree.
That means:
- editable install inside
.venvis venv-local - editable install with
--useris user-level
Recommended:
python -m pip install --user pipx
python -m pipx ensurepath
pipx install .When the repo is published:
pipx install git+https://github.com/<owner>/<repo>.gitAlternative single-machine user install:
python -m pip install --user .Then ensure the user Scripts directory is on PATH.
If komu is not recognized:
Get-Command komu
where.exe komu
python -m pip show komu-cliIf python is not recognized:
- check PATH
- check App Execution Aliases
- check the Windows Python launcher
If Activate.ps1 is blocked:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypasspyproject.tomlnow carries stronger distribution metadata- the console script entrypoint remains
komu = "komu_cli.cli.app:run" src/komu_cli/__main__.pysupportspython -m komu_clisrc/komu_cli/py.typedis now shipped- packaging metadata tests were added
- install docs now separate venv, user, and
pipxinstall modes
python --version
python -m pip --version
python -m pip show komu-cli
Get-Command komu
where.exe komu
komu --help
komu --version
python -m komu_cli --helpThere are three correct ways to route the command:
.venv\Scripts\komu.exefor development- user Scripts
komu.exefor--userinstalls pipx-managed command exposure for end users
KOMU now supports all three. The remaining step on any machine is making sure PowerShell can see the correct Scripts directory for the chosen install mode.