Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.14 KB

Usage.md

File metadata and controls

36 lines (29 loc) · 1.14 KB

Usage

  • Download the latest stable uspec executable (you need both phar and pubkey files to be able to automatically update to the latest version later)
  • chmod +x uspec.phar
  • Run uspec.phar

Generate upgrade spec

$ uspec.phar generate:spec [options] [--] <path> [<version>]

Arguments:
  path                                 Path to SugarCRM build we are going to upgrade
  version                              Version to upgrade to

Options:
  -D, --dump                           Save generated spec to file
  -U, --upgradeSource[=UPGRADESOURCE]  Path to a folder with SugarCRM upgrade packages

Self update / rollback

$ uspec.phar self:update [options]

Options:
  -s, --stability[=STABILITY]  Release stability (stable, unstable, any) [default: "any"]
  -r, --rollback               Rollback uspec update

As a docker container

docker build -t uspec-app .
docker run --rm -ti \
    -v /path/to/sugarcrm/build:/build \
    -v /path/to/upgrade/packages:/upgrade_packages \
    uspec-app generate:spec /build 7.8 --upgradeSource=/upgrade_packages