public function exists( $args ) {
		if ( $this->fetcher->get( $args[0] ) ) {
			WP_CLI::success( "Post with ID {$args[0]} exists." );
		} else {
			WP_CLI::halt( 1 );
		}
	}
public function exists( $args ) {
		if ( $this->fetcher->get( $args[0] ) ) {
			WP_CLI::success( "Post with ID {$args[0]} exists." );
		} else {
			WP_CLI::halt( 1 );
		}
	}
public function exists ( $ args ) { if ( $ this -> fetcher -> get ( $ args [ 0 ] ) ) { WP_CLI :: success ( "Post with ID {$args[0]} exists." ) ; } else { WP_CLI :: halt ( 1 ) ; } }
Verifies whether a post exists.

Displays a success message if the post does exist.

## OPTIONS

<id>
: The ID of the post to check.

## EXAMPLES

# The post exists.
$ wp post exists 1
Success: Post with ID 1337 exists.
$ echo $?
0

# The post does not exist.
$ wp post exists 10000
$ echo $?
1
Verifies whether a post exists .