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
CLI

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
All reasons and checks
Russian stack

crasivo/bitrix-console

Install

Manual install

composer require crasivo/bitrix-console

Installs the package into a 1C-Bitrix project; the executable appears at vendor/bin/console.

Access and checks

How we review

Broad 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 cache

Limitations

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.

Russian stack

A Claude Code and Codex skill for 1C-Bitrix and on-premise Bitrix24 development: check the project core first, then answer

SkillExtended access22Repository stars
Russian stack

A React Ink terminal client for Bitrix24: tasks, comments, time tracking and kanban from the command line

CLIExtended access2Repository stars
Russian stack

A local, token-free MCP indexer for 1C-Bitrix projects: symbols, events, ORM, a dependency graph and optional DB access

MCP serverBroad access2Repository stars
Russian stack

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

PluginExtended access3Repository stars
Official

Router skills with operational coding rules for 1C-Bitrix and Bitrix24: controllers, ORM, cache, routing

SkillMinimal access27Repository stars
Russian stack

A CLI with full CRUD for Bitrix24 deals, leads, contacts and companies, every command supports --json for agents

CLIBroad access

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.

README badge

Report a problem