/usr/share/.composer/" /> /usr/share/.composer/" /> /usr/share/.composer/"/>

How to get the ZFTool working?

84 Views Asked by At

The ZFTool isn't working (anymore) on my Debian VM.

$ which zf
/usr/local/bin/zf
$ ls -lia /usr/local/bin/ | grep "zf"
... zf -> /usr/share/.composer/vendor/bin/zf.php
$ cd /usr/share/.composer
$ composer info | grep "zftool"
zendframework/zftool  v0.1.0  Utility module for Zend Framework 2 applications.
$ echo $COMPOSER_HOME
/usr/share/.composer

Now when I start it:

$ zf create module Foo
OR
$ $COMPOSER_HOME/vendor/bin/zf.php create module Foo
OR
$ php $COMPOSER_HOME/vendor/bin/zf.php create module Foo

I get this error:

Reason for failure: Invalid arguments or no arguments provided

So I cannot run the ZFTool jobs like config, classmap generate etc.

What is the issues caused by and how to get the ZFTool working?

1

There are 1 best solutions below

6
Andrew On

You're simply providing incorrect arguments as it says. That error is coming from withing ZF2 so you're triggering it, but there's There's no -h option.

try

./vendor/zendframework/zftool/zf.php

or

./vendor/bin/zf.php

no arguments and from within your root directory, you'll get a list of options.