Bitrix BPT CLI tool

Bitrix BPT CLI Tool

A .NET command-line tool that unpacks, rebuilds and inspects Bitrix business-process template files (*.bpt)

  • 1 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

Why this level

  • A .NET CLI unpacks and rebuilds .bpt business process files on disk
  • Does not connect to a Bitrix24 portal
All reasons and checks
Russian stack

bslie/bitrix-bpt-cli-tool

Install

Manual install

git clone https://github.com/bslie/bitrix-bpt-cli-tool.git && cd bitrix-bpt-cli-tool && dotnet build

Build from source; needs the .NET 9.0 SDK.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • A .NET CLI unpacks and rebuilds .bpt business process files on disk
  • Does not connect to a Bitrix24 portal

This is third-party code. Review the repository files before installing.

What it does

Bitrix .bpt files are PHP-serialized data compressed one of four ways: gzip, zlib, deflate or plain. The tool gives three commands: dump extracts the content to text (with --pretty you get a readable tree instead of the raw serialized text), build packs it back with a chosen compression method, and info shows a file summary and detects the packing format from its header. It supports stdin and stdout, so commands can be piped together, and build auto-creates missing output directories.

Who it is for. For Bitrix developers and administrators who need to edit or inspect business-process templates outside the visual editor.

Good fit when

  • You need to pull a business-process template's text out of a .bpt file to review or version in git
  • You need to rebuild a .bpt after manually editing its text
  • You need to detect how a given .bpt is compressed before repacking it

Not a fit when

  • You want to edit a process visually: Bitrix's built-in editor is the right tool for that
  • You need to validate internal references inside the process: this tool only packs and unpacks, with no validation

Example request

Unpack bp-179.bpt into a readable form and show which activities it uses

Limitations

Building from source needs the .NET 9.0 SDK, or you can use a prebuilt release for your platform. When editing text between dump and build, you cannot change string lengths inside s:<length>:"..." blocks or the rebuild will not match byte for byte. The tool does not validate references to activities or constants inside the process; that needs separate analysis. It has one star, and the README is bilingual in a single file.

How to disable. Delete the downloaded binary or the source folder; the tool does not install anything system-wide.

FAQ

How do I know how my .bpt is compressed?

Run info: it shows the header and the actual format that worked when unpacking.

Can I pipe data between dump and build?

Yes, both commands support stdin and stdout via the -o - flag or --in/--out -.

Discussion

No questions or reviews yet.

Russian stack

A CLI that turns Bitrix24's binary .bpt business-process files into readable JSON for git and diffing

CLIExtended access1Repository stars
Russian stack

A Claude Code skill that parses and validates Bitrix24 business process bpt templates and finds broken activity and constant references

SkillExtended access
Russian stack

A PowerShell CLI for safely exporting Bitrix24 companies and contacts to CSV via an inbound webhook

CLIExtended access1Repository stars
Russian stack

A Symfony Console adapter for 1C-Bitrix and Bitrix24: ready command-line commands for modules, cache, database, sites and users

CLIBroad access
Russian stack

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

CLIBroad access
Official

CLI for building, testing, linting and diagnosing Bitrix JS extensions with TypeScript support

CLIExtended access20Repository stars

README in short

The README lists the three commands with examples (dump, build, info), the four compression formats, the .NET 9.0 requirement, a link to prebuilt Releases, a warning about preserving serialized string lengths during manual edits, and where to find a .bpt file in on-premise Bitrix: Settings, Tools, Business Processes, Templates.

README badge

Report a problem