Adding torrents using transmission-remote-cli

I’m running OSMC on a Raspberry Pi 1. I have installed transmission, transmission-cli and transmission-remote packages. The command line remote is working as

transmission-remote-cli

returns the current state of torrents from transmission. When I try to add a torrent using

transmission-remote-cli -a http://downloads.raspberrypi.org/NOOBS_latest.torrent

I get the following error:

Usage: transmission-remote-cli [options] [-- transmission-remote options]

transmission-remote-cli: error: no such option: -a

All commands have been run as su. What am I doing wrong? Should/can I use a magnet link instead?

Just as the cli output tells you, have you tried not adding the parameter -a but only

transmission-remote-cli http://downloads.raspberrypi.org/NOOBS_latest.torrent

I tried:

transmission-remote-cli http://downloads.raspberrypi.org/NOOBS_latest.torrent

but got another error message:

Command not found: transmission-remote

I have since updated all packages but I still get this error message.

Look closely, you typed transmission-remote-cli twice in the last statement. :smiley:

Just use

transmission-remote-cli http://downloads.raspberrypi.org/NOOBS_latest.torrent

This is also as it is explained on here in the section Add torrents.

Ops, that was a typo in the post not the command. I still get the same error. Is there something I can do to correct the error or is there an alternative way of adding torrents using the command line.

Did you type

transmission-remote

or

transmission-remote-cli

? Only the second one is correct.

Otherwise I don’t get why it can tell you that it’s an illegal parameter but when you enter it without then the command isn’t available. You can always try

man transmission-remote-cli

or

transmission-remote-cli --help
transmission-remote-cli -help
transmission-remote-cli /help

I typed:

   transmission-remote-cli

When I type:

transmission-remote-cli --help

the following is returned:

Usage: transmission-remote-cli [options] [-- transmission-remote options]

transmission-remote-cli 1.7.0

Options:
  -h, --help            show this help message and exit
  -v, --version         Show version number and supported Transmission
                        versions.
  -c CONNECTION, --connect=CONNECTION
                        Point to the server using pattern
                        [username:password@]host[:port]/[path]
  -s, --ssl             Connect to Transmission using SSL.
  -f CONFIGFILE, --config=CONFIGFILE
                        Path to configuration file.
  --create-config       Create configuration file CONFIGFILE with default
                        values.
  -n, --netrc           Get authentication info from your ~/.netrc file.
  --debug               Everything passed to the debug() function will be
                        added to the file debug.log.

Should the add torrent function be in this list?

Do you have a config file in ~/.config/transmission-remote-cli/settings.cfg or somewhere containing the transmission user name, password, IP / host name, port? ( connection information )

For the greater picture, are you on the same local network as the Pi? Do you need remote command line access for adding torrents, or could you just use a simple browser ( http://IPofyourPi:9091 ) or Transmission Remote GUI? Please explain a little.

Any reason you guys are not using the officially supported Transmission from the App Store?

I’m happy with exactly that and Transmission Remote GUI. :smile:

I have a a config.cfg file at ./etc/transmission-daemon/ containing password, username, port (9091), host (localhost) and path (/transmission/rpc). I access the Pi on the local network without authentication. I generally use the browser at IpAddress:9091 but am looking to use the command line for different reasons.

Any reason you guys are not using the officially supported Transmission from the App Store?

Just the way I set things up when I started.

it’s the wrong program you use…

transmission-remote-cli is ncurses program… you want “transmission-remote”.

transmission-remote -a torrent url/file

I removed transmission and associated packages and reinstall transmission, transmission-cli and transmission-remote-cli. Commands now working as needed. Thanks for the input everyone.