bitrix-console-commands
Используй для CLI Битрикса bitrix.php: генерация make:*, orm:annotate, свои команды Symfony Console, cron и JSON-вывод. Регистрация в .settings.php и DI по версиям ядра.
How do I install this agent skill?
npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-console-commandsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides technical documentation and usage patterns for the Bitrix CMS command-line interface (bitrix.php). It includes instructions for code generation, custom command registration, and background task scheduling via cron. The skill demonstrates good security practices by warning users about commands that expose secrets and advising against enabling high-risk administrative features.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Консоль Битрикса (bitrix.php)
Baseline: main 23.0+ · Verified: main 26.1000.0
Перед PHP-кодом прочитай bitrix-framework, если ещё не читал его в этой задаче.
В таблице выбери только нужный rules/*.md; пути относительны каталогу скилла.
cd /var/www/site && php bitrix/bitrix.php list # или: 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: без вопросов
| Задача | Читать |
|---|---|
Генераторы make:*, наличие в 25.x, пути результата | rules/generators.md |
Команды ядра: orm:annotate, messenger:consume, update:*, main:* | rules/generators.md |
| Своя команда, регистрация, cron | rules/custom-command.md |
Обязательные правила
- Нужен Symfony Console из Composer:
composer.jsonсsymfony/consoleиcomposer.config_pathв.settings.php(bitrix-settings); иначеbitrix.phpвыводит "Symfony Console is not installed". DOCUMENT_ROOTопределяется изgetcwd()и пути скрипта: запускай из корня сайта илиbitrix/, а неphp /abs/path/bitrix.phpиз другого каталога.- Команды берутся только из
.settings.phpустановленных модулей →console.commands; глобальный/local/.settings.phpих не регистрирует. - Since main 26.900 команды создаются через
ServiceLocator::getInstance()->get($commandClass): доступен DI конструктора. На старом ядре используетсяnew $commandClass(); получай сервис вexecute()(bitrix-framework). - В cron и CI всегда указывай
-n/--no-interaction.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-console-commands">View bitrix-console-commands on skillZs</a>