For bash (the platform's shell) and zsh (as common for developers) at least, though likely a single solution should (?) work for both. It might be actually not too tough, as Click (that the CLI uses) does help with that https://click.palletsprojects.com/en/7.x/bashcomplete/