{% extends "docs/base.html" %} {% block docs_content %}
Create a one-off or recurring timer that emits an event carrying its message.
pearing-cli create-timer [<message>] [schedule flags] [--status <status>] [--team <slug> | --repo <locator>]
Pass the message positionally, or omit it to read from stdin. Omit --team and --repo for your own timers. Initial status is active by default and may be set to paused.
pearing-cli create-timer "Check the deployment" --run-in 5m
pearing-cli create-timer \
"Review the release checklist" \
--time-of-day 09:00 \
--days-of-week Mon,Tue,Wed,Thu,Fri \
--timezone America/New_York \
--team platform
pearing-cli create-timer \
"Poll the build" \
--every-seconds 300 \
--repo teams/platform/website
Prints the created timer JSON, including its UUID, normalized schedule, status, and next run time.
run_at must be in the future, and calendar schedules require a valid time and IANA timezone.Create a timer.
A timer emits an event carrying its message. Use --run-in or --run-at
for a one-off, or --every-seconds or --time-of-day to repeat.
The message defaults to stdin when omitted.
Examples:
create-timer "stand up" --run-in 5m
create-timer "daily standup" --time-of-day 09:00 --days-of-week Mon,Tue,Wed,Thu,Fri
echo "piped message" | create-timer --run-in 1h
Usage: pearing-cli create-timer [OPTIONS] [MESSAGE]
Arguments:
[MESSAGE]
Message delivered with the event. Defaults to stdin when omitted
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
--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
--status <STATUS>
Initial status: active or paused
-h, --help
Print help (see a summary with '-h')