2

looking at the output of mage shell script it seems that it is possible to build a module via the command line. Does anyone have and idea how i can do it?

Connect commands available:
===========================
.....

package              Build Package       
package-dependencies Show package dependencies
package-prepare      Show installation information of package

......

Thanks in advance.

5
  • What do you mean by "build"? Commented Aug 23, 2013 at 13:55
  • Create an archive. Commented Aug 23, 2013 at 13:59
  • Have a look at github.com/netz98/n98-magerun
    – pspahn
    Commented Aug 23, 2013 at 19:05
  • No, you can't. And there is no such functionality in n98-magerun too. Commented Aug 23, 2013 at 23:08
  • Ok, i've tried Mavento(mavento.bbe-consulting.de/‎), but it looks like it is not capable of assembling an archive either.Does anybody knows a tool that might do trick? Commented Aug 26, 2013 at 6:49

2 Answers 2

4

Evgeni,

Currently there is no way of packaging an extension directly from the command line, also regarding the ./mage package command

Connect commands available:
===========================
.....

package              Build Package       
package-dependencies Show package dependencies
package-prepare      Show installation information of package

......

The command names can be misleading the package in particular is designed to be ran on the package.xml which contains a module information, it basically has the opposite effect of what you are trying achieve.

Currently I don't think there is any solution to package extensions directly from the command line, I supposed that you could create a script that does this but it would be hard to specify all the extension files, dependencies and information that is required to generated a valid Connect extension package.

1
  • 1
    Thank you, Allan!I will try to write a bash script for this kind of task. Commented Aug 28, 2013 at 12:47
1

It's necessary to have a prepared package.xml in var/connect folder for your package. After that it's possible to run command

./mage package /absolute/path/to/your/magento/var/connect/package.xml

That command will create tgz package under var/connect.

I'm myself aiming for creating packages with Bamboo CI. It means I need to add package.xml to git and prepare package info in Magento backend (updated version, release notes etc). After that I commit package.xml and push it. Bamboo CI would pick it up and create a package. I can try it out shortly. I'll let you know if it works fine this way.

1
  • Now I've written a whole long blog post about making Bamboo creating tgz packages for you. Please see here measure9.varkel.net/2014/07/…
    – Sven
    Commented Jul 3, 2014 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.