webCOMAND

COMAND CLI

The following package functionality is available from the command-line interface (CLI).

  • version - Get the COMAND software version number.
  • config - List or check the configuration files.
  • update - Update all packages to a specified version.

Version

Display the COMAND software version number.

php comand.php io_comand version

Config

Display the COMAND configurations, or check them for issues.

Options are:

  • -m <mode> where mode is:
    • list (default) - List all cascaded configuration options "flattened" into a single list.
    • check - Check the configuration for known issues, such as unrecognized options.
php comand.php io_comand config -m check

Update

Update all packages to a specified version.

Options are:

  • -v <version> or --version <version> - The specific version to update to in Major.Minor.Patch notation.  For example, 3.5.2.  If just the Major or Major.Minor version number is provided, the latest Minor.Patch or Patch will be used.  If not specified at all, will update to latest version.
  • -f or --force - Force the update if the package is already at or beyond the specified version.
  • -b or --backup - Create a database backup before performing the update.

To create a backup and update COMAND and all packages to the latest version:

php comand.php io_comand update --backup

To force update COMAND and all packages to a specific version:

php comand.php io_comand update -v 3.5 --force

To update to a new release candidate:

php comand.php io_comand update -v candidate-3.7.0