Build a plugin archive
wpc plugin:build
Generate a ZIP archive from a plugin folder, with optional metadata override and repository push.
If a .wpcignore
file is present in the plugin folder, it will be used to exclude files from the archive. See documentation for details.
Usage
Arguments
Input directory containing plugin sources (default: current working directory).
Options
Plugin slug. If omitted, the working directory name will be used.
Output directory for the ZIP archive.
Name of the output ZIP file.
Override one or more plugin headers (e.g. --header="Version=1.2.3"
).
Only existing headers in the plugin file will be replaced, new ones will be ignored. Original file will be unchanged.
Push the archive to the configured repository. See push documentation.
Release notes used during push (ignored without push option).
Delete the ZIP file after it has been uploaded (ignored without push option).