-
Notifications
You must be signed in to change notification settings - Fork 3
Console commands
Johannes Ahrndt edited this page May 26, 2020
·
10 revisions
Retrieve all past, active and scheduled maintenance periods by using the following command:
./craft ohdear/maintenance/list
![CLI](https://github.com/webhubworks/craft-ohdear/raw/master/resources/img/screenshots/cli.jpg)
Start a maintenance period by using the the following command:
# Stops automatically after the default duration of 1 hour
./craft ohdear/maintenance/start
# Passing a number in seconds stops the maintenance periods after that amount of time
./craft ohdear/maintenance/start 1800
Stop a maintenance period by using the the following command:
./craft ohdear/maintenance/stop
This command sets the end date of the currently active maintenance period to now. (It doesn't delete it.)
Pro tip: You may use these commands during deployment in order to avoid Oh Dear notifications.
Enable and disable all or individual checks by using the following commands:
# Enable all available check types
./craft ohdear/check/enable
# Enable the Uptime check
./craft ohdear/check/enable -t uptime
# Or disable multiple checks
./craft ohdear/check/disable -t uptime,broken-links,mixed-content
Request new check runs by using the following command:
# Request new runs for all check types
./craft ohdear/check/request-run
# Request new Uptime check run
./craft ohdear/check/request-run -t uptime
# Request multiple check runs
./craft ohdear/check/request-run -t uptime,broken-links,mixed-content
Brought to you by webhub
Craft Oh Dear
Usage