{% extends "docs/base.html" %} {% block docs_content %}
Update a timer's message, lifecycle status, or complete schedule.
pearing-cli update-timer <timer-uuid> [<message>] [--status <status>] [schedule flags] [--team <slug> | --repo <locator>]
Omitted values are preserved. Allowed statuses are active, paused, and cancelled.
pearing-cli update-timer 8f7a2ba9-8a67-4a56-a8e8-0fe9f26717f6 "Review the updated checklist"
pearing-cli update-timer 8f7a2ba9-8a67-4a56-a8e8-0fe9f26717f6 --status paused
pearing-cli update-timer 8f7a2ba9-8a67-4a56-a8e8-0fe9f26717f6 \
--run-in 2h \
--status active \
--repo teams/platform/website
Supplying any schedule flag replaces the whole schedule. Reactivating a completed or cancelled timer requires a new schedule.
Prints the updated timer JSON.
Update a timer.
Schedule flags replace the whole schedule, because the one-off and
repeating shapes are mutually exclusive.
Examples:
update-timer abc-123 "new message"
update-timer abc-123 --status paused
echo "piped" | update-timer abc-123 -
Usage: pearing-cli update-timer [OPTIONS] <TIMER_UUID> [MESSAGE]
Arguments:
<TIMER_UUID>
Timer uuid
[MESSAGE]
New message. Pass '-' to read from stdin
Options:
--team <TEAM>
Address a team's timers. Requires team ownership
--repo <REPO>
Address a repo's timers. Read access is enough to list or fetch; create, update, and delete require maintainer access
--status <STATUS>
New status: active, paused, or cancelled
--run-in <RUN_IN>
Fire once after this duration, for example 5m or 2h
--run-at <RUN_AT>
Fire once at this RFC 3339 instant
--every-seconds <EVERY_SECONDS>
Repeat on a fixed period in seconds
--time-of-day <TIME_OF_DAY>
Repeat at this local time of day, as HH:MM. Requires --days-of-week
--days-of-week <DAYS_OF_WEEK>
Days to repeat on: Sun, Mon, Tue, Wed, Thu, Fri, Sat, or all
--timezone <TIMEZONE>
IANA timezone the time of day is evaluated in. Defaults to UTC
-h, --help
Print help (see a summary with '-h')