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
Manage the scheduled post queue
Inspect and control the persistent scheduled-post queue stored at ~/.agentkit/content/queue.json. Posts are added to the queue via ak content publish --at <RFC3339>.
Who it's for: Both: power devs scripting content pipelines (--json) and non-technical users reviewing scheduled posts.
When to use it: After scheduling posts with ak content publish --at, use these subcommands to list pending posts, cancel them before they fire, or manually trigger due posts.
What changes on disk: Reads ~/.agentkit/content/queue.json. Mutations (cancel, run-pending) write atomically.
Examples
ak content queue list
ak content queue list --json
ak content queue cancel <id>
ak content queue run-pendingFlags
| Flag | Description |
|---|---|
-h, --help | help for queue |
--json | Emit machine-readable JSON (implies --no-interactive) |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-y, --yes | Assume yes for all prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
1 | I/O error reading or writing queue |
2 | invalid flags or arguments |
Related commands
ak content— Publish content to channelsak content queue cancel— Cancel (remove) a scheduled post by IDak content queue list— List all pending scheduled postsak content queue run-pending— Fire all scheduled posts whose time has arrived