mcpField
B
bitrix-console-commands

bitrix-console-commands

github.com/bxmaximumDevelopment47272 installsUpdated 2w ago
Repository

About bitrix-console-commands

A skill reference for using Bitrix’s `bitrix.php` console, aimed at developers maintaining Bitrix sites. It documents command discovery, execution requirements, generators, and operational constraints for cron and CI.

Key features

  1. 01List and inspect console commands
  2. 02Run `make:*` generators
  3. 03Understand command registration
  4. 04Follow cron and CI requirements

Use cases

  1. 01Find available commands in a Bitrix site
  2. 02Generate a service with `make:service`
  3. 03Configure a custom command or cron task

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-console-commands

After installing, type/bitrix-console-commandsin Claude Code to confirm it loaded.

Bundled filesrules/custom-command.mdrules/generators.md

Details

From the project README

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
TaskRead
Generators make:*, which exist on 25.x, output pathsrules/generators.md
Kernel commands: orm:annotate, messenger:consume, update:*, translate:indexrules/generators.md
Own command, registration, cronrules/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.

Comments

Markdown supported