PHPackages                             arokettu/torrent-file-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. arokettu/torrent-file-cli

ActiveProject[CLI &amp; Console](/categories/cli)

arokettu/torrent-file-cli
=========================

CLI tool to manipulate torrent files

1.5.0(6mo ago)3130[1 issues](https://github.com/arokettu/torrent-file-cli/issues)MITPHPPHP ^8.1

Since Aug 25Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/arokettu/torrent-file-cli)[ Packagist](https://packagist.org/packages/arokettu/torrent-file-cli)[ Docs](https://sandfox.dev/php/torrent-file-cli.html)[ RSS](/packages/arokettu-torrent-file-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (15)Used By (0)

Torrent File CLI
================

[](#torrent-file-cli)

[![Packagist](https://camo.githubusercontent.com/139eb79f29de483a5c0839038056d5c20323139d2c14e662adfa7524494ca4fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f746f7272656e742d66696c652d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/torrent-file-cli)[![PHP](https://camo.githubusercontent.com/c0b6b68538402ce118432cda08f71de7e6adb05a74aeec3bea9f53d71e816abd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726f6b657474752f746f7272656e742d66696c652d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/torrent-file-cli)[![License](https://camo.githubusercontent.com/461d7bc132e8a869f93889938942670c570c6fbaef9c484d71fe2c2cdd3d142e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61726f6b657474752f746f7272656e742d66696c652d636c692e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Gitlab CI](https://camo.githubusercontent.com/bbff44abe895ddd91a97cbb74b0dd256ab1e30da5e93555531cee5dafd98d2c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f746f7272656e742d66696c652d636c692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/torrent-file-cli/-/pipelines)[![Codecov](https://camo.githubusercontent.com/0633355337f652b010aad323fd3ca2f07596959e59da2409e1c0ef775d175372/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f676c2f73616e64666f782f746f7272656e742d66696c652d636c693f7374796c653d666c61742d737175617265)](https://codecov.io/gl/sandfox/torrent-file-cli/)

A CLI tool to manipulate torrent files.

Installation
------------

[](#installation)

Install for local user with composer:

```
composer global require arokettu/torrent-file-cli
```

Install globally by downloading prebuilt phar:

```
sudo wget https://github.com/arokettu/torrent-file-cli/releases/latest/download/torrent-file.phar -O /usr/local/bin/torrent-file
sudo chmod +x /usr/local/bin/torrent-file
```

Examples
--------

[](#examples)

Create file:

```
torrent-file create ~/build/myapptoupload -o ~/build/myapptoupload.torrent
```

Modify torrent fields:

```
torrent-file modify ~/build/myapptoupload.torrent --announce http://tracker
```

Inspect torrent file:

```
torrent-file show ~/build/myapptoupload.torrent
```

Export torrent file to a readable file and import it back:

```
torrent-file export ~/build/myapptoupload.torrent -o ~/build/myapptoupload.json
torrent-file import ~/build/myapptoupload.json -o ~/build/myapptoupload.torrent
```

Sign torrent file:

```
torrent-file sign torrent.torrent key.pem cert.pem
```

Documentation
-------------

[](#documentation)

Read full documentation here:

Also on Read the Docs:

Support
-------

[](#support)

Please file issues on our main repo at GitLab:

Feel free to ask any questions in our room on Gitter:

License
-------

[](#license)

The library is available as open source under the terms of the [MIT License](LICENSE.md).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance69

Regular maintenance activity

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~61 days

Recently: every ~28 days

Total

14

Last Release

193d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/963485?v=4)[Anton Smirnov](/maintainers/arokettu)[@arokettu](https://github.com/arokettu)

---

Top Contributors

[![arokettu](https://avatars.githubusercontent.com/u/963485?v=4)](https://github.com/arokettu "arokettu (124 commits)")

---

Tags

bittorentcliconsoletorrentbittorrent

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arokettu-torrent-file-cli/health.svg)

```
[![Health](https://phpackages.com/badges/arokettu-torrent-file-cli/health.svg)](https://phpackages.com/packages/arokettu-torrent-file-cli)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M285](/packages/nunomaduro-termwind)[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M191](/packages/helhum-typo3-console)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
