- transmission status : List all torrents and show basic info.
- transmission add [magnet_link]: Add the magnet link to transmission.
- transmission file : Add torrent file.
Edit transmission settings.json
To add file torrents, first you need to edit transmission settings config.
- Edit incomplete-dir and watch-dir properties with same path.
- Edit incomplete-dir-enabled and watch-dir-enabled properties to true.
Now you can add files and automatically will be load.
If you need to change settings of transmission you can set it by this ways:
- Set TRANSMISSION_PATH enviroment variable with the absolute path to json config.
- Set TRANSMISSION_CONFIG enviroment variable with the configure. (not recommended)
The interface of configure is:
Only the keys in configure will be overwrite.
interface ITransmissionConfig {
host?: string;
port?: number;
username?: string;
password?: string;
ssl?: boolean;
url?: string;
}