preciseactions

CLI

Use the gh-scheduler command-line tool to create, list, pause, and run schedules.

CLI

Use the gh-scheduler CLI to create, list, pause, and run schedules from your terminal.

Installation

curl -fsSL https://raw.githubusercontent.com/manascb1344/preciseactions/master/install.sh | sh

Binaries are available for Linux and macOS on amd64 and arm64.

Authenticate

gh-scheduler auth login

This opens a browser to complete GitHub OAuth and stores a JWT session locally.

Commands

CommandDescription
gh-scheduler auth loginAuthenticate via GitHub OAuth
gh-scheduler addCreate a new schedule
gh-scheduler listList all schedules
gh-scheduler get <id>Get schedule details
gh-scheduler update <id>Update a schedule (cron, name, ref, timezone, active)
gh-scheduler delete <id>Delete a schedule
gh-scheduler pause <id>Pause a schedule
gh-scheduler resume <id>Resume a paused schedule
gh-scheduler run <id>Trigger an immediate manual dispatch
gh-scheduler history <id>Show execution history for a schedule

Examples

Create a schedule that runs ci.yml every 15 minutes:

gh-scheduler add --repo owner/repo --workflow ci.yml --cron "*/15 * * * *"

Create a schedule with timezone and custom name:

gh-scheduler add --repo owner/repo --workflow deploy.yml \
  --cron "0 9 * * 1-5" \
  --timezone "America/New_York" \
  --name "Weekday morning deploy"

Update a cron expression:

gh-scheduler update <schedule-id> --cron "0 */2 * * *"

Global flags

FlagDefaultDescription
--api-urlhttp://localhost:8080Override the API server URL

On this page