Bitrix Console CLI
A Symfony Console adapter for 1C-Bitrix and Bitrix24: ready command-line commands for modules, cache, database, sites and users
- 0 ★ on the repository
- Last commit
- MIT
Broad access
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
- Services
Manual install
composer require crasivo/bitrix-consoleInstalls the package into a 1C-Bitrix project; the executable appears at vendor/bin/console.
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- Includes commands to drop the database and truncate tables entirely
- Commands to deactivate or remove users and modules change the live site configuration
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.
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.
Discussion
No questions or reviews yet.
Related
All Bitrix24 toolsA Claude Code and Codex skill for 1C-Bitrix and on-premise Bitrix24 development: check the project core first, then answer
A React Ink terminal client for Bitrix24: tasks, comments, time tracking and kanban from the command line
Bitrix Framework code indexer
Bitrix MCP
A local, token-free MCP indexer for 1C-Bitrix projects: symbols, events, ORM, a dependency graph and optional DB access
AI toolkit for 1C-Bitrix development
bitrix-ai-toolkit
A set of rules, skills, linters and an MCP profile for AI development on 1C-Bitrix, with one core shared across Claude Code, Codex and Gemini CLI
Router skills with operational coding rules for 1C-Bitrix and Bitrix24: controllers, ORM, cache, routing
A CLI with full CRUD for Bitrix24 deals, leads, contacts and companies, every command supports --json for agents
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.