Build a theme archive
wpc theme:build
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
Input directory containing theme sources (default: current working directory).
Options
Theme 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 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.
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).