CLI commands
Ai3 Core ships two Symfony console commands registered with TYPO3's CLI dispatcher.
ai3_core:credits
Queries the Zak_ai credits endpoint and dumps the raw response.
Query available credits
vendor/bin/typo3 ai3_core:credits
Copied!
Output: A var_ of the decoded JSON response from
GET /. Useful for verifying that ZAKAI_ is set
correctly and the API is reachable.
ai3_core:process_tasks
Fetches up to 100 pending Generation records (ordered by UID
ascending) and processes each one by calling the registered capability
endpoint.
Process all pending generation tasks
vendor/bin/typo3 ai3_core:process_tasks
Copied!
Processing logic per task:
- Look up the capability identified by
task.in the CapabilityRegistry.capability - Call
capability->endpoint->generate.( ['image' => image, 'caption' => prompt, 'language' => language]) - If a result is returned, set
task., mark the task as Done, and storeresult task..generated_ timestamp - Persist all changes.
Tip
Run this command periodically via a TYPO3 scheduler task or a system cron job to keep the task queue drained.