WP-CLI can not find Url

Short answer: Read the documentation.

Long answer: WP CLI needs to know your WordPress root directory. That is not platform, but software specific. This is also needed in Multisite and Network installs to determine the current site.

The easiest way to solve this is to use a YAML configuration file for WP CLI. Best is to place this in your users home directory so WP CLI searches from the root and upwards for it and uses the options provided there.