Flush pages cache via cli - wrong root

As this post helped me sort out the problem, I would like to share my findings, so: For anyone, who comes accross this post and has trouble to get things to work with multiple environments, maybe my post in this related topic can help.