返回顶部
c

caldav-cli

Manage CalDAV calendars (iCloud, Google, Yandex) from the command line. Supports OAuth2 and Basic auth, multi-account, table/JSON output.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.5
安全检测
已通过
1,457
下载量
1
收藏
概述
安装方式
版本历史

caldav-cli

# caldav-cli A CalDAV CLI client. Manages multiple accounts with secure OS keychain storage. Supports iCloud, Google (OAuth2), Yandex and any custom CalDAV server. ## Installation Requires Node.js >= 18. ```bash npm install -g caldav-cli ``` After installation the `caldav-cli` command is available globally. ## Quick Start ```bash caldav-cli account add # Interactive wizard: pick provider, enter credentials caldav-cli events list # Show events for the next 7 days caldav-cli events create # Interactive wizard: create a new event ``` ## Account Management Add account (interactive wizard — prompts for provider, credentials, tests connection): ```bash caldav-cli account add ``` List configured accounts: ```bash caldav-cli account list ``` Remove an account: ```bash caldav-cli account remove <name> ``` ## View Events ```bash caldav-cli events list # Next 7 days (default) caldav-cli events list --from 2026-02-10 --to 2026-02-20 caldav-cli events list -a work # Specific account caldav-cli events list -c "Team Calendar" # Filter by calendar name caldav-cli events list -a work -c Personal --from 2026-03-01 --to 2026-03-31 ``` JSON output (for scripting): ```bash caldav-cli events list --json caldav-cli events list --json --from 2026-02-10 --to 2026-02-20 ``` ## Create Events Interactive wizard (prompts for all fields): ```bash caldav-cli events create ``` Non-interactive (all options via flags): ```bash caldav-cli events create \ --title "Team standup" \ --start "2026-02-10T10:00" \ --end "2026-02-10T10:30" \ --account work \ --calendar "Team Calendar" \ --description "Daily sync" \ --location "Room 42" ``` Partial flags (wizard prompts for the rest): ```bash caldav-cli events create --title "Lunch" --account work ``` JSON output after creation: ```bash caldav-cli events create --json --title "Event" --start "2026-02-10T10:00" --end "2026-02-10T11:00" ``` ## Supported Providers | Provider | Auth | Server URL | |----------|------|------------| | Apple iCloud | Basic (app-specific password) | `https://caldav.icloud.com` | | Google Calendar | OAuth2 (Client ID + Secret) | `https://apidata.googleusercontent.com/caldav/v2` | | Yandex Calendar | Basic (app password) | `https://caldav.yandex.ru` | | Custom | Basic | User provides URL | ## Google Calendar Setup Google requires OAuth2. Before running `caldav-cli account add`: 1. Go to https://console.cloud.google.com/ 2. Create a project, enable CalDAV API 3. Create OAuth client ID (Desktop app type) 4. Note the Client ID and Client Secret The wizard will ask for these, then open a browser for authorization. The refresh token is stored securely in the OS keychain. ## Data Storage - **Passwords, OAuth2 refresh tokens, and OAuth2 client credentials** (Client ID, Client Secret, Token URL): OS keychain (macOS Keychain, Linux libsecret, Windows Credential Vault) via `@napi-rs/keyring`. Never written to disk in plaintext. - **Account metadata** (name, provider ID, username, server URL): `~/.config/caldav-cli/config.json` (file permissions `0600`). No secrets are stored on disk. Existing installations that stored OAuth2 client credentials in `config.json` are automatically migrated to the keychain on first run. ## Flag Reference ### `events list` | Flag | Short | Description | Default | |------|-------|-------------|---------| | `--account <name>` | `-a` | Account name | default account | | `--from <date>` | | Start date (YYYY-MM-DD) | today | | `--to <date>` | | End date (YYYY-MM-DD) | today + 7 days | | `--calendar <name>` | `-c` | Filter by calendar name | all calendars | | `--json` | | Output as JSON | false | ### `events create` | Flag | Short | Description | |------|-------|-------------| | `--title <title>` | `-t` | Event title | | `--start <datetime>` | `-s` | Start (YYYY-MM-DDTHH:mm) | | `--end <datetime>` | `-e` | End (YYYY-MM-DDTHH:mm) | | `--account <name>` | `-a` | Account name | | `--calendar <name>` | `-c` | Calendar name | | `--description <text>` | `-d` | Event description | | `--location <text>` | `-l` | Event location | | `--json` | | Output as JSON | All `events create` flags are optional. Omitted values trigger interactive prompts.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 caldav-cli-1776419962 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 caldav-cli-1776419962 技能

通过命令行安装

skillhub install caldav-cli-1776419962

下载 Zip 包

⬇ 下载 caldav-cli v0.1.5

文件大小: 2.42 KB | 发布时间: 2026-4-17 19:28

v0.1.5 最新 2026-4-17 19:28
- Metadata updated to document new requirements: path to config file (`~/.config/caldav-cli/config.json`) and keychain usage.
- No changes to commands, features, or usage; documentation update only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部