{"id":15690443,"url":"https://github.com/bpazy/qbt-cli","last_synced_at":"2025-05-07T23:43:55.529Z","repository":{"id":62472895,"uuid":"558756759","full_name":"Bpazy/qbt-cli","owner":"Bpazy","description":"A cli to manage qBittorrent","archived":false,"fork":false,"pushed_at":"2023-09-14T09:20:02.000Z","size":139,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:43:45.201Z","etag":null,"topics":["cli","qbittorrent"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bpazy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"Bpazy/qbt-cli","otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-10-28T08:18:45.000Z","updated_at":"2024-12-24T01:50:34.000Z","dependencies_parsed_at":"2024-10-09T13:45:18.682Z","dependency_job_id":null,"html_url":"https://github.com/Bpazy/qbt-cli","commit_stats":{"total_commits":73,"total_committers":1,"mean_commits":73.0,"dds":0.0,"last_synced_commit":"15f1e56c46ce9eeae001b51dd3210dd049a9cf58"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fqbt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fqbt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fqbt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bpazy%2Fqbt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bpazy","download_url":"https://codeload.github.com/Bpazy/qbt-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973617,"owners_count":21834105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","qbittorrent"],"created_at":"2024-10-03T18:09:35.693Z","updated_at":"2025-05-07T23:43:55.512Z","avatar_url":"https://github.com/Bpazy.png","language":"Rust","funding_links":["https://issuehunt.io/r/Bpazy/qbt-cli"],"categories":[],"sub_categories":[],"readme":"# qbt-cli\n[![Build And Test](https://github.com/Bpazy/qbt-cli/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/Bpazy/qbt-cli/actions/workflows/build-and-test.yml)\n![LICENSE](https://img.shields.io/github/license/Bpazy/qbt-cli)\n\nA cli to manage qBittorrent.\n\n## Installing qbt-cli\n### Install from package\n#### Windows\n```ps1\nscoop install https://raw.githubusercontent.com/Bpazy/qbt-cli/master/qbt-cli.json\n```\n\n### Install from cargo\n```sh\ncargo install qbt\n```\n\n### Install from download\nDownload latest stable release version from [release page](https://github.com/Bpazy/qbt-cli/releases). And put it under the `$PATH`.\n\nLinux example:\n```\nwget -O /usr/local/bin/qbt https://github.com/Bpazy/qbt-cli/releases/latest/download/qbt-${REPLACE_ME_WITH_VERSION}-linux-amd64\nchmod +x /usr/local/bin/qbt\n```\n\n## Exmaple\n### 1. Example: List all magnets\n```sh\n$ qbt list\n36ef3f773e0916beea0946913462c32f5b927635  0.0%      metaDL 0.00MiB/s 神探伽利略禁断的魔术.mkv\n```\n\n### 2. Example: Delete all magnets\n```sh\nqbt list | awk '{print $1}' | xargs -n 1 qbt delete\n```\n\n## Usage\n### 1. Usage: Overview\n```ps1\nPS C:\\\u003e qbt -h\nUsage: qbt.exe [OPTIONS] \u003cCOMMAND\u003e\n\nCommands:\n  add   Add new torrent\n  list  Get torrent list\n  help  Print this message or the help of the given subcommand(s)\n\nOptions:\n      --verbose  Use verbose output\n  -h, --help     Print help information\n  -V, --version  Print version information\n```\n### 2. Usage: Add new torrent\n```ps1\nPS C:\\\u003e qbt add -h\nAdd new torrent\n\nUsage: qbt.exe add [OPTIONS] \u003cURI\u003e\n\nArguments:\n  \u003cURI\u003e  URLs separated with newlines\n\nOptions:\n      --savepath \u003cSAVEPATH\u003e\n          Download folder\n      --cookie \u003cCOOKIE\u003e\n          Cookie sent to download the .torrent file\n  -c, --category \u003cCATEGORY\u003e\n          Category for the torrent\n  -t, --tags \u003cTAGS\u003e\n          Tags for the torrent, split by ','\n      --skip-checking \u003cSKIP_CHECKING\u003e\n          Skip hash checking. Possible values are true, false (default)\n      --paused \u003cPAUSED\u003e\n          Add torrents in the paused state. Possible values are true, false (default)\n      --root-folder \u003cROOT_FOLDER\u003e\n          Create the root folder. Possible values are true, false, unset (default)\n  -r, --rename \u003cRENAME\u003e\n          Rename torrent\n      --up-limit \u003cUP_LIMIT\u003e\n          Set torrent upload speed limit. Unit in bytes/second\n      --dl-limit \u003cDL_LIMIT\u003e\n          Set torrent download speed limit. Unit in bytes/second\n      --ratio-limit \u003cRATIO_LIMIT\u003e\n          Set torrent share ratio limit\n      --seeding-time-limit \u003cSEEDING_TIME_LIMIT\u003e\n          Set torrent seeding time limit. Unit in minutes\n      --auto-tmm\n          Whether Automatic Torrent Management should be used\n      --sequential-download \u003cSEQUENTIAL_DOWNLOAD\u003e\n          Enable sequential download. Possible values are true, false (default)\n      --first-last-piece-prio \u003cFIRST_LAST_PIECE_PRIO\u003e\n          Prioritize download first last piece. Possible values are true, false (default)\n  -h, --help\n          Print help information\n```\n### 3. Usage: Get torrent list\n```ps1\nPS C:\\\u003e qbt list -h\nGet torrent list\n\nUsage: qbt.exe list [OPTIONS]\n\nOptions:\n  -f, --filter \u003cFILTER\u003e      Filter torrent list by state. Allowed state filters: all, downloading, seeding, completed, paused, active, inactive, resumed, stalled, stalled_uploading, stalled_downloading, errored\n  -c, --category \u003cCATEGORY\u003e  Get torrents with the given category (empty string means \"without category\"; no \"category\" parameter means \"any category\". Remember to URL-encode the category name. For example, My category becomes My%20category\n  -t, --tag \u003cTAG\u003e            Get torrents with the given tag (empty string means \"without tag\"; no \"tag\" parameter means \"any tag\". Remember to URL-encode the category name. For example, My tag becomes My%20tag\n  -s, --sort \u003cSORT\u003e          Sort torrents by given key. They can be sorted using any field of the response's JSON array (which are documented below) as the sort key\n  -r, --reverse \u003cREVERSE\u003e    Enable reverse sorting. Defaults to false [possible values: true, false]\n  -l, --limit \u003cLIMIT\u003e        Limit the number of torrents returned\n  -o, --offset \u003cOFFSET\u003e      Set offset (if less than 0, offset from end)\n      --hashes \u003cHASHES\u003e      Filter by hashes. Can contain multiple hashes separated by |\n      --age \u003cAGE\u003e            Filter by age. Number + 'd' for days, 'h' for hours. Prefix with \"\u003c\" for newer than, \"\u003e\" (or no prefix) for older than. Examples: \"7d\", \"\u003c16h\"\n  -h, --help                 Print help information\n```\n\n### 4. Usage: Delete torrent\n```\nPS C:\\\u003e qbt delete -h\nDelete torrent\n\nUsage: qbt.exe delete [OPTIONS] \u003cHASHES\u003e\n\nArguments:\n  \u003cHASHES\u003e  The hashes of the torrents you want to delete. `hashes` can contain multiple hashes separated by `|`, to delete multiple torrents, or set to all, to delete all torrents\n\nOptions:\n  -f, --delete-files  If set to true, the downloaded data will also be deleted, otherwise has no effect\n  -h, --help          Print help information\n```\n\n## Configure\n`$HOME/.config/qbt/config.toml`:\n```toml\nqbittorrent_host=\"http://qbittorrent.example.host\"\nusername=\"YOUR_USERNAME\"\npassword=\"YOUR_PASSWORD\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fqbt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpazy%2Fqbt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpazy%2Fqbt-cli/lists"}