AgentKit
ReferenceCLI commands
BetaYou are reading docs for the beta channel (2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →

CLI commands

ak content queue run-pending

Fire all scheduled posts whose time has arrived

Publish every queued post whose ScheduledAt is in the past or now. Idempotent: re-running will not double-publish entries already marked published. An advisory lockfile prevents concurrent double-publish from two processes.

Who it's for: Both: automated cron/timer callers (--json) and manual one-shot execution.

When to use it: Use in a cron job or call manually to flush due posts without starting the daemon.

What changes on disk: Reads and writes ~/.agentkit/content/queue.json atomically. Creates a transient lock file alongside the queue while running.

Usage

ak content queue run-pending [flags]

Examples

ak content queue run-pending
ak content queue run-pending --json

Flags

FlagDescription
-h, --helphelp for run-pending
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)

On this page