arokettu / torrent-file-cli
CLI tool to manipulate torrent files
1.1.2
2024-04-03 22:02 UTC
Requires
- php: ^8.1
- composer-runtime-api: ^2.2
- arokettu/bencode: ^4.0
- arokettu/kilo-mega: ^1.1
- arokettu/torrent-file: ^5.2
- symfony/console: ^6.2 | ^7.0
- symfony/polyfill-intl-icu: ^1.28
- symfony/var-dumper: ^6.2 | ^7.0
Requires (Dev)
- ext-openssl: *
- sandfox.dev/code-standard: ^1.2022.06.29
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.15
Suggests
- ext-openssl: for signature logic
README
A CLI tool to manipulate torrent files.
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
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
Dump raw torrent file structure:
torrent-file dump ~/build/myapptoupload.torrent
Sign torrent file:
torrent-file sign torrent.torrent key.pem cert.pem
Documentation
Read full documentation here: https://sandfox.dev/php/torrent-file-cli.html
Also on Read the Docs: https://torrent-file-cli.readthedocs.io/
Support
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/torrent-file/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
License
The library is available as open source under the terms of the MIT License.