I am developing a python CLI app, so maybe I can help you. Try to use something like this in your pyproject.toml:
[project.scripts]
trap = "trapallada.xsa.util:cl_download_observations"
Where trap is the name of the command you want your app run when its use in the terminal