Skip to main content
Generate a ZIP archive from a theme folder, with optional metadata override and repository push. If a .wpcignore file is present in the theme folder, it will be used to exclude files from the archive. See documentation for details.

Usage

Arguments

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

Options

string
Theme 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 theme headers (e.g. --header="Version=1.2.3"). Only existing headers in the theme 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