Install Poetry Script Globally
# only the first time we install something
pipx ensurepath
# close and open terminal again
# build, install and run to make sure it works
poetry build
poetry install
poetry run
# install localy with pipx
pipx install .
# now we're able to run it from anywhere
file-enlarger
in this case we invoke it as file-enlarger as the .toml declares it as such
[tool.poetry.scripts]
file-enlarger = "FileEnlarger:main"