OnWorks favicon

btcli - Online in the Cloud

Run btcli in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command btcli that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



btcli - command line interface to btpd




btcli is a utility that interacts with a running btpd daemon. It has several different
modes of operation.


One of the following operations must be specified when running btcli:

add - Add torrents to btpd.

del - Remove torrents from btpd.

kill - Shut down btpd.

list - List torrents.

start - Activate torrents.

stat - Display stats for active torrents.

stop - Deactivate torrents.

--help OPERATION Show help for the specified operation.


-d dir Specifies the directory in which the files in the torrent will be downloaded; It
does not specify btpd's "work" directory. That is gathered from the environment
variable $HOME.

-N, --nostart
Do not start the torrent immediately after adding it.

-T, --topdir
Append the torrent top directory (if any) to the content path.

-n name
Specifies the name to be displayed for this torrent.


-a List active torrents.

-i List inactive torrents.

-f format
Specifies a custom format to use while displaying torrents. The following is a
list of the characters that can be used:

%n - torrent name
%# - torrent number
%h - torrent hash
%d - download directory
%t - state
%P - peer count

%^ - upload rate
%v - download rate

%D - downloaded bytes
%U - uploaded bytes
%g - bytes got
%u - bytes uploaded
%s - total size, (formatted: prints K, M, G)
%S - total size, in bytes

%A - available pieces
%T - total pieces
%H - have pieces

%p - percent have (formatted)
%r - ratio

%% - a percent symbol: '%'


-i Display individual lines for each torrent.

-n Display the name of each torrent. Implies '-i'.


-a Activate all non-active torrents.


-a Deactivate all torrents.


btpd must be started before btcli can be used. See btpd(1) for help with starting btpd.

To start sharing a torrent with btpd, the torrent needs to be added to btpd. This is done
with btcli add. Unless otherwise specified, btpd automatically starts to share the torrent
and download any missing data. If the content directory you specify when adding a torrent
does not exist, btpd will create it.

You can see which torrents have been added to btpd with btcli list. The list mode also
displays a number for each added torrent. This number can be used to specify the target
torrent for the btcli modes, so you don't have to keep the torrent file after adding it.

The up- and download progress can be followed by using the btcli stat mode. Both the list
and stat modes use the following indicators to display the state of a torrent:

+ The torrent is starting. This may take time if btpd needs to test the content of
this torrent or one started before it.

- The torrent is being stopped.

I The torrent is inactive.

S btpd is seeding the torrent.

L btpd is leeching the torrent.

You can stop an active torrent with btcli stop. You can start an inactive torrent by
using btcli start.

Note: Torrents can be specified either with its number or its file.

The btcli del mode should only be used when you're totally finished with sharing a
torrent. The mode will remove the torrent and its associated data from btpd. It is a bad
idea to remove a not fully downloaded torrent and then add it again, since btpd has lost
information on the not fully downloaded pieces and will need to download the data again.

To shut down btpd use btcli kill.


Display a list btpd's torrents and their number, size, status, etc.
$ btcli list

Same as above, but only for torrent 12 and my.little.torrent.
$ btcli list 12 my.little.torrent

Same as above but only for active torrents.
$ btcli list -a

Add foo.torrent, with content dir foo.torrent.d, and start it.
$ btcli add -d foo.torrent.d foo.torrent

Same as above without starting it.
$ btcli add --no-start -d foo.torrent.d foo.torrent

Start bar.torrent and torrent number 7.
$ btcli start bar.torrent 7

Stop torrent number 7.
$ btcli stop 7

Stop all active torrents.
$ btcli stop -a

Remove bar.torrent and it's associated information from btpd.
$ btcli del bar.torrent

Display a summary of up/download stats for the active torrents.
$ btcli stat

Display the summary once every five seconds.
$ btcli stat -w 5

Same as above, but also display individual stats for each active torrent.
$ btcli stat -w 5 -i

Shut down btpd.
$ btcli kill

Use btcli online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 2
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 3
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 4
    VoIP monitor
    VoIP monitor
    VoIPmonitor is open source network
    packet sniffer with commercial frontend
    protocols running on linux. VoIPmonitor
    is des...
    Download VoIP monitor
  • 5
    Gambas3* coding tools and examples for
    use in SMB or other organizations that
    make internal programs. E.g. from
    database fields to class sourcecode with
    Download garlic3
  • 6
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    Download Sardi
  • 7
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    Download LMMS Digital Audio Workstation
  • More »

Linux commands