Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,090 of 9,090 pages
About the help in other languages
All help pages

Exporting and importing with ezpm

Use ezpm.php, the package manager on the command line, to create a package, add classes, content or an extension, export it as .ezpkg, and import, check and install it elsewhere.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/extensions/exporting-with-ezpm.md

On this page

Exporting and importing with ezpm

This page is for designers who prefer the shell, or who build packages in a script. ezpm.php is the command-line front end of the package manager; all commands start in the installation root. php ezpm.php help lists the commands, php ezpm.php help <command> explains one.

The commands you need

CommandDoes
create NAME [SUMMARY [VERSION [INSTALLTYPE]]]An empty package (install by default, or import)
add PACKAGE ITEM [PARAMETERS]Adds classes (ezcontentclass with a comma-separated list of class identifiers), content (ezcontentobject), extensions (ezextension)
export PACKAGE -d DIRWrites the .ezpkg into a directory (--format=json for JSON)
import FILEImports an archive, with the same checks as the upload page
check PACKAGEWhat installing would meet here, by remote id; nothing is written
install PACKAGEInstalls it (--as-drafts for content as drafts)
validate SOURCEChecks an archive, directory or repository package without importing it
list, info PACKAGEWhat is there

Step by step: a class package for your theme

php ezpm.php create mytheme_classes 'Content classes of My Theme' 1.0.0 install
php ezpm.php add mytheme_classes ezcontentclass article,event
php ezpm.php export mytheme_classes -d var/tmp

Expected: var/tmp/mytheme_classes-1.0.0-1.ezpkg (the file name includes the release number the package opened).

Step by step: the theme itself as a package

php ezpm.php create mytheme_pkg 'My Theme' 1.0.0 install
php ezpm.php add mytheme_pkg ezextension mytheme
php ezpm.php export mytheme_pkg -d var/tmp

This needs extension exporting switched on and passes the secret check first (Exporting an extension as a package).

Step by step: on the receiving installation

php ezpm.php validate /path/to/mytheme_classes-1.0.0-1.ezpkg
php ezpm.php import /path/to/mytheme_classes-1.0.0-1.ezpkg
php ezpm.php check mytheme_classes
php ezpm.php install mytheme_classes

Read the output of check before install: it lists conflicts (an existing class, for instance).

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x