Exporting an extension as a package
This page is for designers who want to hand a theme to someone as one .ezpkg file, for example to an installation
that does not use Composer.
Before you start: exporting is off by default
settings/package.ini [ExtensionExportSettings] says: "Exporting an extension as a package (Setup > Extensions, the
package wizard, ezpm.php add) is switched off by default." Until an administrator switches it on, the wizard lists
every extension but none can be chosen, each with the reason. How to switch it on is described in
Extension list and downloads; do it on a development
installation.
Every way of exporting also refuses an extension that holds secret values or key material (The secret check).
Step by step in the browser
- Open Setup > Packages > Create new package and choose Extension export.
- Extensions to include: tick your theme. The table shows its version, last change and details; an extension that may not be exported is disabled with its reason.
- Package information: name (lower case letters, digits and
_), summary, version, license, format (Classic XML or JSON). - Package maintainer and Package changelog.
- Review and press Create package. The package is written into the
localrepository and its page opens. - Download gives you
<name>-<version>.ezpkg.
On the command line
php ezpm.php create mytheme_pkg 'My Theme as a package' 1.0.0 install
php ezpm.php add mytheme_pkg ezextension mytheme
php ezpm.php export mytheme_pkg -d var/tmpphp ezpm.php help add lists the item types and options. See Exporting and importing with ezpm.
Check the result
tar tzf var/tmp/mytheme_pkg-1.0.0.ezpkg | head -20Expected: package.xml and the theme's files below the package's extension folder; no .bak, .env or key files.
Related pages
- The package creator wizard, step by step
- Composer package or .ezpkg
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.