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
url field added to the output of wp post get.
- A
wp post url <id> command.
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 listif you explicitly include the--fields=urloption.I'd like to see either:
urlfield added to the output ofwp post get.wp post url <id>command.