exp:maintenance
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
Take the site offline for maintenance and back: on, off or status
Usage
./console exp:maintenance [options] php bin/php/maintenance.php [options]
Help
The output of ./console help exp:maintenance (the script run with --help), without the standard options:
Usage: bin/php/maintenance.php [OPTION]... [ACTION] Maintenance mode: take the site offline and back maintenance.php on|off|status [options] Options: --message=VALUE What the page says, instead of the default text --until=VALUE When the site is expected back: 30m, 2h, or a date and time --allow-ip=VALUE Addresses that still see the site, comma separated --allow-admin Keep the administration (/admin) reachable
Options
| Option | Value | Description |
|---|---|---|
| --message | required | What the page says, instead of the default text |
| --until | required | When the site is expected back: 30m, 2h, or a date and time |
| --allow-ip | required | Addresses that still see the site, comma separated |
| --allow-admin | - | Keep the administration (/admin) reachable |
Arguments
[action]
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/maintenance.php, kernel/private/classes/commands/maintenance.php
See also
Generated example: exp:maintenance
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment