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:upgradecode

Upgrade-Stufe 1, Code: die Git-Checkouts auf das Ziel-Release gebracht, nur Fast-Forward, über git_manager (Probelauf ohne --apply).

Download as PDF

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

On this page

This page is a translation. Read the English original

exp:upgradecode

Upgrade-Stufe 1, Code: die Git-Checkouts auf das Ziel-Release gebracht, nur Fast-Forward, über git_manager (Probelauf ohne --apply).

Skript bin/php/upgradecode.php, Code in kernel/private/classes/commands/upgradecode.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:upgradecode --help
./console exp:upgrade:code --help
php bin/php/upgradecode.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Upgrade stage 1: the code
Moves the installation's git checkout (and each --repos checkout) to --to (a tag, a branch or a
commit) or to the upstream of its branch, fast-forward only, through git_manager; the submodules
follow. Never over local changes, never when the checkout has commits the target lacks, and only
as the owner of the checkout. git_manager's backup is made first (unless --no-backup), and the
commits before the move are kept for exp:upgrade:rollback. The dry run fetches (remote-tracking
refs only). Dry run unless --apply.

./console exp:upgrade:code --to=v6.0.16
./console exp:upgrade:code --apply --to=v6.0.16 --repos=extension/myext
Guide: doc/eng-us/guides/upgrading-with-the-console.md

Optionen

OptionWertHilfe
--applyDie Änderungen vornehmen (ohne die Option ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, angenommen für Skripte, die ihn übergeben: auflisten, was sich ändern würde, nichts ändern
--onlyerforderlichNur diese Schritte (Schritt-IDs, als Komma-Liste oder wiederholt); ein optionaler Schritt läuft nur, wenn er hier genannt ist
--skiperforderlichDiese Schritte nie (Schritt-IDs, als Komma-Liste oder wiederholt)
--formaterforderlichtext (Standard) oder json (die Maschinenausgabe exp-upgrade/1)
--no-backupSchreiben, ohne vorher eine Sicherung zu machen
--backup-direrforderlichWohin die Sicherung geht (Standard var/backup/upgrade); darin wird ein Verzeichnis <Zeit> angelegt
--force-orderEine Stufe ausführen, obwohl eine frühere Stufe offene Schritte hat
--fail-on-pendingExit-Code 1, wenn noch Schritte offen sind (für CI)
--force-no-backupMit --no-backup auf einer Produktions-Installation: trotzdem ohne Sicherung schreiben
--no-captionSchreiben, ohne vorher einen Sicherungspunkt anzulegen (dasselbe wie --no-backup); auf Produktion ohne --force-no-caption verweigert
--force-no-captionMit --no-caption auf einer Produktions-Installation: trotzdem ohne Sicherungspunkt schreiben
--toerforderlichDie Code-Stufe bringt die Checkouts auf diesen Tag, Branch oder Commit (Standard: den Upstream des Branches)
--reposerforderlichWeitere Git-Checkouts, die die Code-Stufe bewegt, Pfade in der Installation (Komma-Liste oder wiederholt)

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/upgradecode.php, kernel/private/classes/commands/upgradecode.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

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