Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:upgraderollback

Upgrade rollback: put the database, storage, settings, libraries and code back to a caption (dry run unless --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/upgraderollback.md

On this page

exp:upgraderollback

Upgrade rollback: put the database, storage, settings, libraries and code back to a caption (dry run unless --apply).

Script bin/php/upgraderollback.php, code in kernel/private/classes/commands/upgraderollback.php. Run it from the installation root, as the user the web server runs as:

./console exp:upgraderollback --help
./console exp:upgrade:rollback --help
php bin/php/upgraderollback.php --help

Help text

Upgrade rollback
Without a caption id: the captions, newest first (as exp:upgrade:captions). With one: what a
rollback to it restores, and with --apply: a safety caption of the current state first (so the
rollback can be undone), then the parts: the database (tables made later are dropped), the
storage (var/), settings/override, composer.lock with composer install, the git checkouts
(git reset --keep), then the verification of exp:upgrade:verify --after. Never automatic.
Afterwards run ./console exp:upgrade:finish --apply.

./console exp:upgrade:rollback
./console exp:upgrade:rollback 2026-10-29_10-15-00
./console exp:upgrade:rollback 2026-10-29_10-15-00 --apply --parts=database,settings

Options

OptionValueHelp
--applyMake the changes (the default is a dry run that lists them and changes nothing)
--dry-runThe default, accepted for scripts that pass it: list what would change, change nothing
--partsrequiredOnly these parts, a comma list of database, storage, settings, libraries, code (default: what the caption has)
--backup-dirrequiredWhere the backup goes (default var/backup/upgrade); a directory <time> is made in it
--formatrequiredtext (default) or json (the machine output exp-upgrade/1)
--no-captionWrite without taking a caption first (the same as --no-backup); refused on production without --force-no-caption
--force-no-captionWith --no-caption on a production installation: write without a caption all the same
--no-verifySkip the verification after the upgrade (exp:upgrade:verify --after)
--urlrequiredThe addresses the smoke check requests after the deploy (a comma list or repeated); default the front page of SiteURL
--no-testsLeave the test suite upgrade-smoke out of the verification
--allow-vendor-changesInstall the libraries although Composer reports local changes in vendor/

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Arguments: [CAPTION].


Generated by ./console exp:help:examples from bin/php/upgraderollback.php, kernel/private/classes/commands/upgraderollback.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x