Steps to reproduce
At the root of your ezpublish_legacy folder, run the following commands. Use an existing nodeId on your setup and make sure it has children and grandchildren.
- Create the package
php -C ezpm.php create test_package2 "Test Package Creation2"
- Add subtree
php -C ezpm.php add test_package2 ezcontentobject --exclude-templates --exclude-classes --siteaccess=eng 74
- Export package on the file system
php -C ezpm.php export test_package2 --output -d /your/folder
Grandchildren won't be included in the package.