Skip to content

setaur/tribler-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tribler-bash - command line interface for Tribler torrent client
	Provides all basic functionalites needed for command line usage
Usage:
	 tribler-bash [PAR1]... [COMMAND]

Without any arguments - the same as 'list' command

COMMANDS:
  list                                                 Show current Tribler torrents with some human readable data
  list-full                                            More extended view
                                                       Parameter '--no-headline' disables headline. 
                                                       ___
  start TORRENT_ID [TORRENT_ID]...                     Start downloading chosen torrent(s) 
  stop,pause TORRENT_ID [ TORRENT_ID]...               Stop downloading chosen torrent(s)
  recheck TORRENT_ID [TORRENT_ID]...                   Recheck chosen torrent(s)
  add LINK|MAGNETLINK [LINK|MAGNETLINK]...             Add and start download new torrent(s) provided 
                                                       by MAGNETLINK or LINK (or path) to torrent file.
                                                       ___
  remove TORRENT_ID [TORRENT_ID]...                    Remove chosen torrent(s) from tribler. 
  remove-data TORRENT_ID [TORRENT_ID]...               Remove chosen torrent(s) from tribler
                                                        alongside with disk data.
                                                       ___
  hops HOPS_NUMBER TORRENT_ID [TORRENT_ID]...          Change hop number of chosen torrent(s).
                                                       HOP_NUMBER can be integer in range 0 - 3.
                                                       0 - no anonymity, 3 - best anonymity.
                                                       ___
  show FIELD1[,FIELD2]... TORRENT_ID [TORRENT_ID]...   Show specific raw data about chosen torrent(s).
                                                       In example name, eta, size, infohash in a tabulator separated
                                                       table. Multiple fields must be separated by single comma ','
                                                       Parameter '--no-headline' disables headline.
                                                       ___
  field-names                                          Print names of all fields, which can be used 
                                                       in 'show' command. There must be at least one
                                                       torrent in tribler for this command to run.
                                                       ___
  shutdown                                             Shutdown Tribler application
                                                       ___
  help                                                 Show this help.

 TORRENT_ID is an index or infohash or a special keyword 'all', which will match all torrents. 
 Index is a first column of a 'list' command output. Infohash is a hash atributed by tribler 
 to a specific torrent. Can be viewed using command 'list-full' or i.e.:
 	 'tribler-bash show name,infohash all

PARAMETERS:
 -h, --help          Show this help
 -d, --debug         Enable debug, verbose mode
 -n, --no-headline   disables headline for 'list' and 'show' commands
 --api-key APIKEY    Provide Tribler API Key
 --api-port PORT     Provide Tribler API Port

CONNECTION:
 To connect to Tribler tribler-bash uses Tribler REST API. For this reason it needs to know
 Tribler API port and API Key. They can be provided via parameters '--api-key' '--api-port'.
 If they are not provided via parameters, tribler-bash will try to find tribler config file
 triblerd.conf in directory ~/.Tribler and read relevant values from it. This config file is in ini format,
 so to read it tribler-bash will ask and try to download tool bash_ini_parser from github 
 into script directory.

RELEVANT LINKS:
https://github.com/setaur/tribler-bash
https://github.com/Tribler/tribler
https://tribler.readthedocs.io/en/latest/restapi/introduction.html
https://github.com/rudimeier/bash_ini_parser

About

Simple command line client for Tribler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages