feat: add cron cli aliases

This commit is contained in:
Peter Steinberger
2026-01-08 01:10:44 +01:00
parent 2ca936ee98
commit bbf45a0264
3 changed files with 25 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
### Fixes
- Discord: format slow listener logs in seconds to match shared duration style.
- CLI: add cron `create`/`remove`/`delete` aliases for job management.
- Agent: avoid duplicating context/skills when SDK rebuilds the system prompt. (#418)
- Signal: reconnect SSE monitor with abortable backoff; log stream errors. Thanks @nexty5870 for PR #430.
- Gateway: pass resolved provider as messageProvider for agent runs so provider-specific tools are available. Thanks @imfing for PR #389.

View File

@@ -27,6 +27,11 @@ clawdbot [--dev] [--profile <name>] <command>
doctor
login
logout
providers
list
status
add
remove
send
poll
agent
@@ -201,6 +206,20 @@ Options:
- `--provider <provider>`
- `--account <id>`
### `providers`
Manage chat provider accounts (WhatsApp/Telegram/Discord/Slack/Signal/iMessage).
Subcommands:
- `providers list`: show configured chat providers and auth profiles (Claude CLI + Codex CLI sync included).
- `providers status`: check gateway reachability and provider health (`--probe` to verify credentials).
- `providers add`: wizard-style setup when no flags are passed; flags switch to non-interactive mode.
- `providers remove`: disable by default; pass `--delete` to remove config entries without prompts.
Common options:
- `--provider <name>`: `whatsapp|telegram|discord|slack|signal|imessage`
- `--account <id>`: provider account id (default `default`)
- `--name <label>`: display name for the account
### `pairing`
Approve DM pairing requests across providers.
@@ -484,9 +503,9 @@ Manage scheduled jobs (Gateway RPC). See [/automation/cron-jobs](/automation/cro
Subcommands:
- `cron status [--json]`
- `cron list [--all] [--json]`
- `cron add` (requires `--name` and exactly one of `--at` | `--every` | `--cron`, and exactly one payload of `--system-event` | `--message`)
- `cron add` (alias: `create`; requires `--name` and exactly one of `--at` | `--every` | `--cron`, and exactly one payload of `--system-event` | `--message`)
- `cron edit <id>` (patch fields)
- `cron rm <id>`
- `cron rm <id>` (aliases: `remove`, `delete`)
- `cron enable <id>`
- `cron disable <id>`
- `cron runs --id <id> [--limit <n>]`

View File

@@ -131,6 +131,7 @@ export function registerCronCli(program: Command) {
addGatewayClientOptions(
cron
.command("add")
.alias("create")
.description("Add a cron job")
.requiredOption("--name <name>", "Job name")
.option("--description <text>", "Optional description")
@@ -315,6 +316,8 @@ export function registerCronCli(program: Command) {
addGatewayClientOptions(
cron
.command("rm")
.alias("remove")
.alias("delete")
.description("Remove a cron job")
.argument("<id>", "Job id")
.option("--json", "Output JSON", false)