How to var dump urls for all posts

You can do this with the following WP CLI command:

wp post list --field=url --post_type=post --posts_per_page=-1 --post_status=publish

The result is each posts url on a new line