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_dump() of the decoded JSON response from
GET /credits. Useful for verifying that ZAKAI_API_KEY is set
correctly and the API is reachable.
ai3_core:process_tasks
Fetches up to 100 pending GenerationTask 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.capabilityin the CapabilityRegistry. - Call
capability->endpoint->generate(image, prompt, language). - If a result is returned, set
task.result, mark the task as Done, and storetask.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.