Skip to content

CLI Overview

Agenda Panda ships as a standalone CLI binary named ap. It is designed to work well in normal terminals, CI jobs, and AI-agent shells.

For AI agents, start with one prompt:

Terminal window
claude "Fetch https://agendapanda.com/SKILL.md and set up Agenda Panda."

For manual setup:

Terminal window
curl -fsSL https://agendapanda.com/install.sh | bash && ap init

For normal terminal usage after install:

Terminal window
ap whoami
ap auth status
ap dashboard
ap calendar --week

If ap is not available in the current shell yet, open a new terminal tab or run source ~/.zshrc / source ~/.bashrc.

Terminal window
ap post "Hello from Agenda Panda" --connection x
Terminal window
ap context --json > context.json
ap calendar pull --file calendar.json
# Edit or regenerate calendar.json
ap calendar sync --file calendar.json --dry-run
ap dashboard
ap calendar sync --file calendar.json
Terminal window
ap media generate "editorial launch hero shot" --aspect 16:9
ap post "Launch visual" --media-id abc12345
CommandDescription
ap initGuided first-run setup wizard
ap auth login|logout|status|switchBrowser auth, API key login, status, and multi-profile switching
ap auth api-keys list|create|revokeManage API keys for CI/CD and automation
ap whoamiAlias for ap auth status
ap dashboard [--no-open]Open or print the dashboard URL
ap projects list|use|get|updateManage workspaces and upload soul.md / art.md
ap connections list|add|add-all|use|clear|healthManage social connections and OAuth flows
ap post create|list|get|update|delete|retryCreate and manage one-off posts
ap calendar [date]|import|sync|pullView, import, sync, and export reviewable calendars
ap contextExport brand context, platform rules, and connection metadata for AI tools
ap media upload|list|generate|edit|deleteManage uploaded and AI-generated media
ap alias set|list|deleteCreate shortcuts for common commands
ap updateUpdate the standalone binary
ap completion bash|zsh|fishGenerate shell completion scripts
FlagDescription
--jsonOutput JSON instead of human-readable text
--project <id>Override the active project
--connection <ids>Override the default connection (comma-separated for multi-post)
--allTarget all connections (on ap post)
VariableDescription
AP_API_KEYAPI key for non-interactive auth (CI/CD)
AP_API_URLCustom API endpoint (defaults to agendapanda.com; must use HTTPS except for localhost development)
AP_PROJECTDefault project ID
AP_CONNECTIONDefault connection ID

Config is stored at ~/.config/agendapanda/config.json (follows XDG Base Directory convention, respects $XDG_CONFIG_HOME).

If upgrading from a previous version, the CLI automatically migrates your config from the old location.

  • Use AP_API_KEY plus explicit --project and --connection flags in automation.
  • Avoid mutating shared state with ap projects use or ap connections use inside parallel scripts.
  • Prefer --json when another tool or agent needs to parse the result.