Skip to main content
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

string
Input directory containing plugin sources (default: current working directory).

Options

string
Plugin slug. If omitted, the working directory name will be used.
string
default:"../dist"
Output directory for the ZIP archive.
string
Name of the output ZIP file.
string[]
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.
boolean
Push the archive to the configured repository. See push documentation.
string
Release notes used during push (ignored without push option).
boolean
Delete the ZIP file after it has been uploaded (ignored without push option).

Examples