Skip to the content
Documentation

exp:expmigrationrecorddiscard

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Discard a recording of changes: the recording and every event it captured are removed (a running one stops recording); a dry run unless --apply

Usage

./console exp:expmigrationrecorddiscard [options]
php bin/php/expmigrationrecorddiscard.php [options]
./console exp:migration:record:discard [options]

Aliases

exp:migration:record:discard

Help

The output of ./console help exp:expmigrationrecorddiscard (the script run with --help), without the standard options:

Usage: bin/php/expmigrationrecorddiscard.php [OPTION]... [RECORDING]
Discard a recording of changes
Removes the recording and every event it captured; a recording that runs stops. What was changed
while it recorded stays changed: only the record of it goes. Without --apply it says what it would
remove.

./console exp:migration:record:discard 20261101-120000-a1b2c3
./console exp:migration:record:discard 20261101-120000-a1b2c3 --apply


Options:
  --apply         Make the changes (the default is a dry run that lists them and changes nothing)
  --dry-run       The default, accepted for scripts that pass it: list what would change, change nothing
  --format=VALUE  text (default) or json (the machine output exp-migration/1)

Options

Option Value Description
--apply - Make the changes (the default is a dry run that lists them and changes nothing)
--dry-run - The default, accepted for scripts that pass it: list what would change, change nothing
--format required text (default) or json (the machine output exp-migration/1)

Arguments

[recording]

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/expmigrationrecorddiscard.php, kernel/private/classes/commands/expmigrationrecorddiscard.php

See also

Generated example: exp:expmigrationrecorddiscard

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.