pimalaya/calendula
حول
CLI to manage calendars
أدوات التطويرما يمكنك فعله
- Unified API for calendars and events, the same on every backend
- Protocol-specific APIs exposing the full surface of CalDAV, Google Calendar, Microsoft Graph and vdir
- Local stores: vdir and pimdir, the offline store Neverest syncs
- One query language to search the events of the pimdir store
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +١
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل📅 Calendula

CLI to manage calendars
$ calendula event list --json
{
"events": [
{
"id": "lunch",
"calendarId": "personal",
"etag": null,
"uid": "lunch",
"recurrenceId": null,
"summary": "Lunch with Ada",
"description": null,
"location": "Café de Flore",
"start": "2026-11-20T11:30:00Z",
"end": "2026-11-20T12:30:00Z",
"allDay": false,
"timeZone": "UTC",
"zoneAssumed": false,
"recurring": false,
"sequence": 0,
"status": null,
"transparency": null,
"busyStatus": null,
"organizer": null,
"attendees": [],
"onlineMeetingUrl": null,
"alarms": []
}
],
"nextPage": null,
"errors": []
}
Table of contents
- Features
- RFC coverage
- Installation
- Configuration
- Usage
- Alternatives
- AI policy
- License
- Social
- Contributing
- Sponsoring
Features
- Unified API for calendars and events, the same on every backend
- Protocol-specific APIs exposing the full surface of CalDAV, Google Calendar, Microsoft Graph and vdir
- Local stores: vdir and pimdir, the offline store Neverest syncs
- One query language to search the events of the pimdir store
- Agenda: a month or a year drawn as cal(1) does, the events of its days listed under it
- REPL and MCP server running commands over a connection kept for the session
- JSON output of every command, described by
calendula json-schema - TLS via Rustls (
rustls-ringdefault,rustls-aws) or Native TLS (native-tls), client certificates included
RFC coverage
| RFC | What is covered |
|---|---|
| 4791 | CalDAV: calendar collections, calendar object resources, and the calendar-query report with its time-range filter |
| 4918 | WebDAV: the PROPFIND, PROPPATCH, MKCOL, GET, PUT and DELETE methods CalDAV builds on |
| 5397 | Current-user-principal, the first step of the CalDAV discovery walk |
| 5545 | iCalendar: parsing and editing events, and carrying any other component a calendar holds |
| 6578 | Collection synchronization, whose sync token a CalDAV calendar listing reports |
| 6750 | HTTP Bearer authentication, for a provider-issued or broker-refreshed API token |
| 7617 | HTTP Basic authentication |
| 7986 | iCalendar extensions: the conference property an event's online meeting link is read from |
| 8620 | JMAP core: the session, its capabilities and the method calls the JMAP backend sends |
| 8984 | JSCalendar: the JMAP backend's events, converted to and from iCalendar |
Installation
Debian, Ubuntu
Calendula is not in the official repositories yet, but the signed APT repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions. Add the repository once:
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://pkg.pimalaya.org/pimalaya.asc | sudo tee /etc/apt/keyrings/pimalaya.asc >/dev/null
sudo tee /etc/apt/sources.list.d/pimalaya.sources >/dev/null <<EOF
Types: deb
URIs: https://pkg.pimalaya.org/apt
Suites: stable
Components: main
Signed-By: /etc/apt/keyrings/pimalaya.asc
EOF
sudo apt update
Then install Calendula:
sudo apt install calendula
Fedora, RHEL, Rocky Linux, AlmaLinux
Calendula is not in the official repositories yet, but the signed DNF repository of pkg.pimalaya.org ships the latest release with its man pages and shell completions:
sudo curl -fsSL -o /etc/yum.repos.d/pimalaya.repo https://pkg.pimalaya.org/pimalaya.repo
sudo dnf install calendula
Homebrew (macOS, Linux)
Calendula is not in homebrew-core yet, but the pimalaya/tap formula installs the latest release with its man pages and shell completions:
brew install pimalaya/tap/calendula
Pre-built binary
For other systems, Calendula can be installed with the installer:
As root:
curl -sSL https://raw.githubusercontent.com/pimalaya/calendula/master/install.sh | sudo sh
As a regular user:
curl -sSL https://raw.githubusercontent.com/pimalaya/calendula/master/install.sh | PREFIX=~/.local sh
These commands install the latest release, built with the default cargo features. For a build of master, check out the releases GitHub workflow and look for the Artifacts section.
Cargo
cargo install --locked calendula
For a build of master:
cargo install --locked --git https://github.com/pimalaya/calendula.git
Nix
nix profile install github:pimalaya/calendula
Sources
Requires Rust 1.89 or later:
git clone https://github.com/pimalaya/calendula
cd calendula
cargo build --release --locked
The binary lands at target/release/calendula.
Configuration
A TOML configuration is loaded from every existing path among the following, each one deep-merged on top of the ones before:
$XDG_CONFIG_HOME/calendula/config.toml$HOME/.config/calendula/config.toml$HOME/.calendularc
Override the path with -c <PATH>, repeated to merge several files.
[!TIP] See config.sample.toml for a complete configuration of one example account with commented fields; rename the account and uncomment what you need, or start from a provider below.
An account reads a vdir home, or the pimdir store Neverest syncs, with no server: point vdir.root or pimdir.root at it. Calendula never issues nor refreshes an OAuth 2.0 token, so Google and Microsoft accounts read theirs from Ortie.
Use the Google Calendar API, richer than Google's CalDAV bridge, with a token from Ortie's Google account. The primary calendar is named after your address, calendula calendar list naming the others.
[accounts.google]
gcal.auth.token.command = ["ortie", "token", "show", "-a", "google"]
calendar.default = "[email protected]"
Or Google's CalDAV, with the same token: it takes the full calendar scope, which Ortie's Google account asks. The primary calendar's CalDAV id is events.
[accounts.google-caldav]
caldav.server = "https://apidata.googleusercontent.com/caldav/v2/"
caldav.auth.bearer.token.command = ["ortie", "token", "show", "-a", "google"]
calendar.default = "events"
Microsoft
Microsoft serves calendars over Microsoft Graph alone, with a token from Ortie's Graph account.
[accounts.microsoft]
msgraph.auth.token.command = ["ortie", "token", "show", "-a", "microsoft-graph"]
Fastmail
Standard CalDAV with an app password, Fastmail's CalDAV taking no bearer token. calendula calendar list names the calendar ids calendar.default takes.
[accounts.fastmail]
caldav.server = "https://caldav.fastmail.com/dav/"
caldav.auth.basic.username = "[email protected]"
caldav.auth.basic.password.command = "pass show fastmail"
Posteo
Standard CalDAV with the account password.
[accounts.posteo]
caldav.server = "https://posteo.de:8443/"
caldav.auth.basic.username = "[email protected]"
caldav.auth.basic.password.command = "pass show posteo"
calendar.default = "default"
iCloud
Use an app-specific password, your account password being refused.
[accounts.icloud]
caldav.server = "https://caldav.icloud.com/"
caldav.auth.basic.username = "[email protected]"
caldav.auth.basic.password.command = "pass show icloud"
calendar.default = "home"
Usage
Step 1: once your first account is configured, check that every backend answers:
calendula account check
Step 2: list the calendars:
calendula calendar list
Step 3: draw the current month and its events:
calendula event agenda
Every command runs on the default account unless -a names another, and its --help details its flags, exit codes and JSON output. More use cases:
# List the events of one week
calendula event list --from 2026-11-16 --to 2026-11-22
# Add a one-hour event
calendula event add --summary Lunch --start 2026-11-20T12:00 --duration PT1H
# Edit an event in your editor
calendula event update -i <EVENT-ID>
# Search the events of a pimdir account
calendula pimdir search budget date:2026-11
# Serve the account to an AI agent, writes allowed
calendula mcp --allow-write
Alternatives
- khal: a calendar CLI and TUI over a vdir, a sync tool such as vdirsyncer reaching the server
- gcalcli: a CLI for Google Calendar alone
- calcurse: a terminal calendar and todo list in its own file format, CalDAV through a helper script
License
This project is licensed under either of:
Social
- Chat on Matrix
- News on Mastodon or RSS
- Mail at [email protected]
Sponsoring
Special thanks to the NLnet foundation and the European Commission that have been financially supporting the project for years:
- 2022 → 2023: NGI Assure
- 2023 → 2024: NGI Zero Entrust
- 2024 → 2026: NGI Zero Core
- 2026 → 2027: NGI Zero Commons Fund
This program is part of Pimalaya, free software funded entirely by grants and donations. If you find it useful, consider sponsoring its development:
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
