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

Start a recording of changes: one user's own changes (a session recording) or every change of the site (--site-wide), kept as the steps of a YAML migration; a dry run unless --apply.

Download as PDF

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

On this page

exp:expmigrationrecordstart

Start a recording of changes: one user's own changes (a session recording) or every change of the site (--site-wide), kept as the steps of a YAML migration; a dry run unless --apply.

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

./console exp:expmigrationrecordstart --help
./console exp:migration:record:start --help
php bin/php/expmigrationrecordstart.php --help

Help text

Start a recording of changes
From now until exp:migration:record:stop, what is changed is recorded at the kernel's operation level
(content published, moved, hidden, removed or translated, classes stored, roles, policies and their
assignments, sections, users and groups, URL aliases, settings written, workflow triggers), as the
steps of a YAML migration with remote ids and identifiers instead of numeric ids. A session recording
keeps the changes of one user (--user, by login; in the administration: the signed-in user), made
anywhere: the administration, the website sidebar, or a command run as that user. --site-wide opens
the site-wide window instead: every change of every user and of the console. One session recording
per user and one site-wide window at a time. The account of a user (login, e-mail, password) and the
fields of user objects are never recorded. --for=<minutes> or --until=<time> gives the recording a
window: it stops by itself when the window ends (at most 31 days). Without --apply it says what it
would start.

./console exp:migration:record:start --label="news section" --apply
./console exp:migration:record:start --user=editor --apply
./console exp:migration:record:start --site-wide --label="release 2.4 setup" --apply
./console exp:migration:record:start --site-wide --for=120 --label="editors' afternoon" --apply
./console exp:migration:record:start --site-wide --until="2026-11-20 18:00" --apply

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
--formatrequiredtext (default) or json (the machine output exp-migration/1)
--site-wideThe site-wide recording: every change of every user and of the console (without it: one user's own changes)
--labelrequiredThe label of the caption or of the recording (a caption without one: "manual caption" with the time)
--userrequiredThe user, by login, whose own changes a session recording keeps (default: [RunSettings] RunAsUser of migration.ini)
--forrequiredA window of this many minutes: the recording stops by itself when it ends
--untilrequiredA window until this time (2026-11-20 18:00, the server's time zone): the recording stops by itself then

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 ...).


Generated by ./console exp:help:examples from bin/php/expmigrationrecordstart.php, kernel/private/classes/commands/expmigrationrecordstart.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