用于检查指定文章ID是否存在,若存在则显示成功消息。
适合在脚本或自动化流程中验证文章是否存在时使用。
<id>
$ wp post exists 1337 Success: Post with ID 1337 exists.
$ wp post exists 10000 $ echo $? 1