Command Line Commands

Itworx4me

Well-known member
It would be nice to see a resource with all the command line functions in one place. (y)

Thanks,
Itworx4me
 
You can run php cmd.php list to get a list of available CLI commands.

How come the list does not show the -f option?

Here's an example of this option:

php cmd.php xf-addon:bump-version Andy/AffiliateManager -f --version-id 14 --version-string 1.4
 
The list only shows global options. That option is defined at the command level.

You can view the options (and other useful information) for a particular command with php cmd.php help [command]
 
You can view the options (and other useful information) for a particular command with php cmd.php help [command]

Lets say I would like to get command level options for this:

xf-addon:build-release

What would be the correct way to get that? I tried this, but it doesn't seem to work.

php cmd.php help xf-addon:build-release
 
Works for me:

Code:
$ xf help xf-addon:build-release
Usage:
  xf-addon:build-release [options] [--] <id>

Arguments:
  id                    Add-on ID

Options:
      --skip-hashes     Skips generating hashes and including them in the built release.
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Performs an export of the current XML data and saves a ZIP file to _releases
 
Thank you, Jeremy. Yes that is the same results I get with that command. But I don't see any mention of the -f command.
 
Back
Top Bottom