Add a means of fetching the permalink to a post
There is no built-in means of fetching the permalink to a given post.
The only place where a permalink is exposed is in wp post list if you explicitly include the --fields=url option.
I'd like to see either:
- A
urlfield added to the output ofwp post get. - A
wp post url <id>command.
The same thing applies to terms, users, and comments.
Previously https://github.com/wp-cli/wp-cli/issues/2070
I'm re-opening this, as it would still be nice to have wp post get $ID --fields=url rather than being forced to wp post list --post__in=$ID --fields=url.
It makes sense (to me) for the list/get methods to return the same data/have the same fields.
I will work on this.