---
layout: default
title: 'wp comment exists'
display_global_parameters: true
---

<small>[Commands](/commands/) &raquo; [comment](/commands/comment/) &raquo; exists</small>

`wp comment exists` - Verify whether a comment exists.

<small>Quick links: <a href="https://github.com/wp-cli/wp-cli/issues?q=is%3Aopen+label%3Acommand%3Acomment-exists+sort%3Aupdated-desc">Github issues</a></small>

<hr />

Displays a success message if the comment does exist.

### OPTIONS

&lt;id&gt;
: The ID of the comment to check.

### EXAMPLES

    # Check whether comment exists.
    $ wp comment exists 1337
    Success: Comment with ID 1337 exists.



