arokettu / torrent-file-cli
用于操作种子文件的命令行工具
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
一个用于操作种子文件的命令行工具。
安装
使用composer为本地用户安装
composer global require arokettu/torrent-file-cli
通过下载预构建的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
示例
创建文件
torrent-file create ~/build/myapptoupload -o ~/build/myapptoupload.torrent
修改种子文件字段
torrent-file modify ~/build/myapptoupload.torrent --announce http://tracker
检查种子文件
torrent-file show ~/build/myapptoupload.torrent
导出原始种子文件结构
torrent-file dump ~/build/myapptoupload.torrent
签名种子文件
torrent-file sign torrent.torrent key.pem cert.pem
文档
在这里阅读完整文档: https://sandfox.dev/php/torrent-file-cli.html
也在Read the Docs上: https://torrent-file-cli.readthedocs.io/
支持
请在GitLab的我们主仓库中提交问题: https://gitlab.com/sandfox/torrent-file/-/issues
在Gitter的我们的房间中随时提问: https://gitter.im/arokettu/community
许可证
此库在MIT许可证的条款下作为开源库提供:MIT License。