Minimal example of nesting commands using click Set a virtual environment using the provided environment.yml From the command line, at the project's root, run: python my_cli.py --help This example is based/inspired by this answer.