# activitypub/9.3.1/includes/cli/class-command.php

ActivityPub, version 9.3.1. 34 lines.

- Page: https://pluginprobe.com/plugins/activitypub/9.3.1/code/includes/cli/class-command.php
- Raw: https://pluginprobe.com/plugins/activitypub/9.3.1/raw/includes/cli/class-command.php
- Modified: 2026-02-09T13:31:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/activitypub/9.3.1/code/includes/cli/class-command.php#L10-L20`.

```php
<?php
/**
 * Base CLI Command.
 *
 * @package Activitypub
 */

namespace Activitypub\Cli;

/**
 * Manage ActivityPub plugin functionality and federation.
 *
 * @package Activitypub
 */
class Command extends \WP_CLI_Command {

	/**
	 * Display the ActivityPub plugin version.
	 *
	 * ## EXAMPLES
	 *
	 *     $ wp activitypub version
	 *     ActivityPub 7.9.0
	 *
	 * @subcommand version
	 *
	 * @param array $args       The positional arguments (unused).
	 * @param array $assoc_args The associative arguments (unused).
	 */
	public function version( $args, $assoc_args ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
		\WP_CLI::line( 'ActivityPub ' . ACTIVITYPUB_PLUGIN_VERSION );
	}
}

```
