exp:expstaticrollback
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Roll a static publishing target back to an earlier publish: a new commit with the files of that tag, tagged and pushed; the history stays
Usage
./console exp:expstaticrollback [options] php bin/php/expstaticrollback.php [options] ./console exp:static:rollback [options]
Aliases
exp:static:rollback
Help
The output of ./console help exp:expstaticrollback (the script run with --help), without the standard options:
Usage: bin/php/expstaticrollback.php [OPTION]... [TARGET] [TO] Roll a static site back to an earlier publish Names an earlier publish by its number or its tag static/<target>/<n> (exp:static:status lists them) and lists what would change. With --apply it makes a new commit that holds the files of that publish, tags it with the next number and pushes it: nothing is deleted from the history, no tag is moved and the push is never forced, so a rollback can itself be rolled back. ./console exp:static:rollback github-public 4 what would change ./console exp:static:rollback github-public 4 --apply ./console exp:static:rollback github-public static/github-public/4 --apply --no-push Options: --apply Make the rollback commit; without it the command only lists what would change --message=VALUE The commit message (default: what was published, or which publish is restored) --no-push Commit and tag, but do not push (exp:static:push pushes later) --format=VALUE text (default) or json (the machine output exp-static/1) --login=VALUE Run as this user (the administration starts its jobs so); recorded as who ran it --run-id=VALUE The id of the run (date-time-6 hex digits) instead of a new one (the administration passes its job's id) --progress=VALUE Also append the progress, one JSON object per line, to this file (the administration follows it)
Options
| Option | Value | Description |
|---|---|---|
| --apply | - | Make the rollback commit; without it the command only lists what would change |
| --message | required | The commit message (default: what was published, or which publish is restored) |
| --no-push | - | Commit and tag, but do not push (exp:static:push pushes later) |
| --format | required | text (default) or json (the machine output exp-static/1) |
| --login | required | Run as this user (the administration starts its jobs so); recorded as who ran it |
| --run-id | required | The id of the run (date-time-6 hex digits) instead of a new one (the administration passes its job's id) |
| --progress | required | Also append the progress, one JSON object per line, to this file (the administration follows it) |
Arguments
[target][to]
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/expstaticrollback.php, kernel/private/classes/commands/expstaticrollback.php
See also
Generated example: exp:expstaticrollback
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment