arokettu/torrent-file-cli

用于操作种子文件的命令行工具

1.1.2 2024-04-03 22:02 UTC

This package is auto-updated.

Last update: 2024-08-28 10:54:41 UTC


README

Packagist PHP License

一个用于操作种子文件的命令行工具。

安装

使用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