# Cronitor CLI

Cronitor CLI is the official command-line companion to the Cronitor monitoring service.

Canonical page: https://ourlocalhost.com/app/8003/cronitor-cli

## Description

Cronitor CLI is the official command-line companion to the Cronitor monitoring service. It imports and syncs your cron jobs with Cronitor, lets you manage them from a web-based control panel, and provides power tools for cron job monitoring. It ships as a single executable for Linux, macOS and Windows, and is aimed at sysadmins and homelabbers who want alerting and visibility into scheduled tasks.

## Platform availability

Available on 4 of 10 platforms: Mac, Windows, Linux, Any server.

## Desktop and other devices

Mac, Windows, Linux, Other (freebsd).

## Health score

74/100 (Good), based on 4 of 5 factors.
- Maintained: 91 (last commit 15 days ago)
- Popular: 55 (561 GitHub stars)
- Easy to install: 65 (5 install platforms, install notes)
- Security check: 75 (no serious findings, CI, tests, OpenSSF Scorecard 3.8/10)

## Links

- GitHub: https://github.com/cronitorio/cronitor-cli
- desktop: https://github.com/cronitorio/cronitor-cli/releases/latest
- Official website: https://cronitor.io
- Documentation: https://cronitor.io/docs

## Common questions

### How do I authenticate the Cronitor CLI on a remote server without a browser?

Run `cronitor auth login --no-browser` in an interactive terminal and keep it running while you open the displayed authorization URL in a browser elsewhere. Copy the full resulting callback URL from the browser address bar and paste it into the waiting CLI prompt; no SSH tunnel is needed.

### Why does browser login fail or the callback port matter?

Local login listens only on 127.0.0.1:8319 to receive the callback; if that port is occupied, close the other login attempt or use --no-browser. Browser login also requires CLI version 33.7 or later, since 33.6 used an incompatible device flow.

### How do I handle config file permissions on a fresh Linux/macOS install?

Use a writable config owned by the OS user running the CLI, for example by creating ~/.config/cronitor and setting CRONITOR_CONFIG to that path. Keep using that config path (via CRONITOR_CONFIG or --config) for subsequent commands.

### How long is the login authorization code valid?

The CLI waits 30 minutes by default for you to open the authorization URL, and you must finish signing in within about 5 minutes of opening it. Pass --timeout (e.g. --timeout 2h) to wait longer; starting a new login replaces the previous URL.

### How do I import my existing cron jobs into Cronitor?

Use the CLI to import and sync all of your cron jobs with Cronitor, then manage them from the web-based control panel. The CLI provides automatic integration with the Cronitor service.

## Alternatives

- CronTool: Sometimes even one cron is hard to visualise in the span of months.
- Cronhub: Cronhub helps you to easily monitor all your cron jobs in a beautiful dashboard.
- Crontab Tech: Crontab Tech is a user-friendly editor for crontab schedules.
- EasyCron: Get frustrated with Cron on your server?
- Healthchecks.io: Healthchecks.io is a service for monitoring cron jobs and similar periodic processes:
- Loopr: Loopr is an open-source, cloud-native URL monitoring and uptime tracking platform.
- corntab

---
Source: Our Local Host (https://ourlocalhost.com/app/8003/cronitor-cli), the self-hosted and open-source app directory.
