aboutsummaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli.1
blob: 3f57ebc1768a21d5f2faead9b27e678f6f7eada0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
.Dd Oct 25, 2011
.Dt TRANSMISSION-REMOTE-CLI 1
.Os
.Sh NAME
.Nm transmission-remote-cli
.Nd a console client for the Transmission BitTorrent client
.Sh SYNOPSIS
.Nm
.Op OPTION
.Op Ar filename-or-URL
.Sh DESCRIPTION
.Nm
is a console client for the Transmission BitTorrent client
.Sh OPTIONS
.Bl -tag -with Ds
.It Fl -version
Show version number and exit
.It Fl h Fl -help
Show this help message and exit
.It Fl "c \fICONNECTION\fR" Fl -connect=\fICONNECTION\fR
Point to the server using pattern: [username:password@]host[:port]/[path]
.It Fl s Fl -ssl
Connect to Transmission via SSL
.It Fl "f \fICONFIGFILE\fR" Fl -config=\fICONFIGFILE\fR
Path to configuration file
.It Fl -create-config
Create configuration file \fICONFIGFILE\fR
.It Fl n Fl -netrc
Get authentication info from your ~/.netrc file
.It Fl -
Forward options after '--' and auth info to transmission-remote
.Sh FILES
Settings can be saved in ~/.config/transmission-remote-cli/settings.cfg, authentication settings in ~/.netrc
.Sh EXAMPLES
Connection information

.Ed
Authentication and host/port can be set via command line with one of these patterns:
.Bd -literal -offset indent
$ transmission-remote-cli \-c homeserver
$ transmission-remote-cli \-c homeserver:1234
$ transmission-remote-cli \-c johndoe:secretbirthday@homeserver
$ transmission-remote-cli \-c johndoe:secretbirthday@homeserver:1234

.Ed
Configuration file

.Ed
You can write this (and other settings) to a configuration file:
.Bd -literal -offset indent
$ transmission-remote-cli.py \-c johndoe:secretbirthday@homeserver:1234 \-\-create-config

.Ed
No configuration file is created automatically, you have to do this somehow. However, if the file exists, it is re-written when trcli exits to remember some settings. This means you shouldn't have trcli running when editing your configuration file.

.Ed
If you don't like the default configuration file path ~/.config/transmission-remote-cli/settings.cfg, change it:
.Bd -literal -offset indent
$ transmission-remote-cli.py -f ~/.trclirc --create-config

.Ed
Calling transmission-remote

.Ed
transmission-remote-cli forwards all arguments after '--' to transmission-remote. This is useful if your daemon requires authentication and/or doesn't listen on the default localhost:9091 for instructions. transmission-remote-cli reads HOST:PORT and authentication from the config file and forwards them on to transmission-remote, along with your arguments.

.Ed
Some examples:
.Bd -literal -offset indent
$ transmission-remote-cli.py -- -l
$ transmission-remote-cli.py -- -t 2 -i
$ transmission-remote-cli.py -- -as

.Ed
Add torrents

.Pp
If you provide only one command line argument and it doesn't start with '-', it's treated like a torrent file/URL and submitted to the daemon via transmission-remote.
This is useful because you can instruct Firefox to open torrent files with transmission-remote-cli.py.
.Bd -literal -offset indent
$ transmission-remote-cli.py http://link/to/file.torrent
$ transmission-remote-cli.py path/to/some/torrent-file
.El
.Sh AUTHOR
.An -nosplit
.An Benjamin (fagga),
.An contributors .
.Sh SEE ALSO
.Xr transmission-create 1 ,
.Xr transmission-daemon 1 ,
.Xr transmission-edit 1 ,
.Xr transmission-gtk 1 ,
.Xr transmission-qt 1 ,
.Xr transmission-remote 1 ,
.Xr transmission-show 1
.Sh COPYRIGHT
Copyright (C) 2011 Ben Thompson.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License" <\fBhttp://www.gnu.org/copyleft/fdl.html\fR>.