SuperAPI AI Directory

bitrix-console-commands

Deployment & operations

View repository

Updated 10-15 17:30

About this skill

Bitrix console (bitrix.php)

Baseline: main 23.0+ · Verified: main 26.800.0

cd /var/www/site && php bitrix/bitrix.php list        # or: cd bitrix && php bitrix.php list
php bitrix/bitrix.php help make:service
php bitrix/bitrix.php make:service Post -m vendor.blog -n   # -n: no questions
Task Read
Generators make:*, which exist on 25.x, output paths rules/generators.md
Kernel commands: orm:annotate, messenger:consume, update:*, translate:index rules/generators.md
Own command, registration, cron rules/custom-command.md

Invariants

  • Needs Symfony Console from Composer: composer.json with symfony/console and .settings.php composer.config_path (bitrix-settings); otherwise bitrix.php prints "Symfony Console is not installed".
  • DOCUMENT_ROOT is derived from getcwd() + script path: run from the site root or bitrix/, never php /abs/path/bitrix.php from another dir.
  • Commands come only from installed modules' .settings.php → console.commands; global /local/.settings.php is not a source.
  • The kernel does new $commandClass() — no constructor DI; resolve services in execute() (bitrix-framework).
  • Always -n/--no-interaction in cron and CI.