Bitrix Console
A Symfony Console adapter for 1C-Bitrix and Bitrix24: ready command-line commands for modules, cache, database, sites and users
High risk
We rate an entry high when the tool writes to external systems, handles money, production databases or secrets, or runs arbitrary commands. The CLI installs it only with your consent.
Why this level
- Includes commands to drop the database and truncate tables entirely
- Commands to deactivate or remove users and modules change the live site configuration
Install
Manual install
composer require crasivo/bitrix-consoleInstalls the package into a 1C-Bitrix project; the executable appears at vendor/bin/console.
This is third-party code. Review the repository files before installing.
What it does
The library wires Symfony Console into the 1C-Bitrix core and gives a ready vendor/bin/console executable with commands for: modules (list, register, unregister, version), settings via ConfigurationGet/Set/Delete and Option, clearing various cache types, database operations (table and database size, table list, indexes, columns, dropping a table or database), running agents, and managing users and sites. Custom commands register through CommandLocator from .settings.php config, including automatic loading from installed modules. Creating commands works exactly like standard Symfony Console.
Who it is for. For PHP developers and devops engineers on 1C-Bitrix and Bitrix24 who need command-line automation instead of clicking through the admin panel.
Good fit when
- You want to script routine work: cache clearing, module registration, database connection checks in CI or crontab
- You need custom console commands for a Bitrix project compatible with Symfony Console
- You want quick access to Bitrix database table sizes and structure without a SQL client
Not a fit when
- Your 1C-Bitrix kernel is older than v20.5.400 or PHP is older than 7.2
- You need an AI agent tool rather than a general console utility: the library is about site automation, not agents
Example request
Show the list of all Bitrix modules and clear the managed cacheLimitations
Needs at minimum a 1C-Bitrix kernel v20.5.400, PHP 7.2 and Symfony Console 5.0. Some commands are destructive: dropping a database, truncating a table, deactivating a user or module, so they should only be run deliberately and with a backup. The library has nothing to do with AI agents; it is a plain CLI for administering Bitrix.
How to disable. Remove the package with composer remove crasivo/bitrix-console.
Security check
- Includes commands to drop the database and truncate tables entirely
- Commands to deactivate or remove users and modules change the live site configuration
README in short
The README gives the minimum kernel, PHP and Symfony Console versions, the Composer install command and an example of listing commands. The command-creation section explains the process is identical to plain Symfony Console, and the registration section shows CommandLocator and three ways to define a command in config: by class name, the classic way, and via a constructor. The full list of built-in commands is visible from the source tree: modules, cache, database, configuration, agents, users, sites. MIT license.
FAQ
Can I add my own commands?
Yes, any Symfony Console command class registers in the console.commands section of .settings.php, and commands from installed modules load automatically.
Are there data-deleting commands?
Yes, for example DbDatabaseDropCommand and DbTableTruncateCommand, which should be run carefully and with a database backup.
Related
An MCP server built into the Netdata agent: metrics, logs, alerts and live process, service and container data for an AI assistant
GitHub's official MCP server: code, issues, pull requests, Actions and security alerts straight from the agent
Agent Skills for Google products
Agent Skills for Google products and technologies
Official Google skill collection for working with Google Cloud, BigQuery, GKE, ads and analytics from an agent
AWS's official MCP server suite: docs, IaC, containers, serverless, databases, cost and monitoring