2018-03-19 11:06:13 +01:00
|
|
|
---
|
2019-10-26 12:04:54 +02:00
|
|
|
date: 2019-10-26T11:04:03+01:00
|
2018-03-19 11:06:13 +01:00
|
|
|
title: "rclone rc"
|
|
|
|
slug: rclone_rc
|
|
|
|
url: /commands/rclone_rc/
|
|
|
|
---
|
|
|
|
## rclone rc
|
|
|
|
|
|
|
|
Run a command against a running rclone.
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
|
2018-11-24 14:44:25 +01:00
|
|
|
|
|
|
|
This runs a command against a running rclone. Use the --url flag to
|
|
|
|
specify an non default URL to connect on. This can be either a
|
|
|
|
":port" which is taken to mean "http://localhost:port" or a
|
|
|
|
"host:port" which is taken to mean "http://host:port"
|
|
|
|
|
|
|
|
A username and password can be passed in with --user and --pass.
|
|
|
|
|
|
|
|
Note that --rc-addr, --rc-user, --rc-pass will be read also for --url,
|
|
|
|
--user, --pass.
|
2018-03-19 11:06:13 +01:00
|
|
|
|
|
|
|
Arguments should be passed in as parameter=value.
|
|
|
|
|
|
|
|
The result will be returned as a JSON object by default.
|
|
|
|
|
2018-11-24 14:44:25 +01:00
|
|
|
The --json parameter can be used to pass in a JSON blob as an input
|
|
|
|
instead of key=value arguments. This is the only way of passing in
|
|
|
|
more complicated values.
|
|
|
|
|
2019-06-15 13:01:29 +02:00
|
|
|
Use --loopback to connect to the rclone instance running "rclone rc".
|
|
|
|
This is very useful for testing commands without having to run an
|
|
|
|
rclone rc server, eg:
|
|
|
|
|
|
|
|
rclone rc --loopback operations/about fs=/
|
|
|
|
|
2018-06-16 19:21:09 +02:00
|
|
|
Use "rclone rc" to see a list of all possible commands.
|
2018-03-19 11:06:13 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
rclone rc commands parameter [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
2018-11-24 14:44:25 +01:00
|
|
|
-h, --help help for rc
|
|
|
|
--json string Input JSON - use instead of key=value args.
|
2019-06-15 13:01:29 +02:00
|
|
|
--loopback If set connect to this rclone instance not via HTTP.
|
2018-11-24 14:44:25 +01:00
|
|
|
--no-output If set don't output the JSON result.
|
|
|
|
--pass string Password to use to connect to rclone remote control.
|
|
|
|
--url string URL to connect to rclone remote control. (default "http://localhost:5572/")
|
|
|
|
--user string Username to use to rclone remote control.
|
2018-03-19 11:06:13 +01:00
|
|
|
```
|
|
|
|
|
2019-06-20 17:18:02 +02:00
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
2018-03-19 11:06:13 +01:00
|
|
|
### SEE ALSO
|
|
|
|
|
2018-10-15 12:03:08 +02:00
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-03-19 11:06:13 +01:00
|
|
|
|