Extract metadata from a plugin file using WordPress internals and output it as a structured manifest.

Usage

wpc plugin:manifest [options] [--] <input>

Arguments

input
string
required

Path to the main plugin file (e.g. my-plugin/my-plugin.php).

Options

--get
string

If set, outputs only the value of the specified property (e.g. Name, Version, Author, etc.).

Examples

# Display full manifest
$ wpc plugin:manifest my-plugin/my-plugin.php

# Output only the version
$ wpc plugin:manifest my-plugin/my-plugin.php --get=Version