Seeming problem with documentation: rclone rc

This page says:

Use "rclone rc" to see a list of all possible commands.

rclone rc commands parameter [flags]

What does that mean? rclone rc produces an error message.

hi,

best to use the help and support template instead of site feedback

that means you must specify a command and perhaps some optional parameters/flags. for example,
rclone rc vfs/refresh recursive=true

perhaps you are using an old version of rclone, as that works for me and outputs help text, for which i have included a snippet below.

rclone rc
### backend/command: Runs a backend command. {#backend-command}

This takes the following parameters:

- command - a string with the command name
- fs - a remote name string e.g. "drive:"
- arg - a list of arguments for the backend command
- opt - a map of string to string of options

Returns:

- result - result from the backend command

Example:

    rclone rc backend/command command=noop fs=. -o echo=yes -o blue -a path1 -a path2

Returns

{
        "result": {
                "arg": [
                        "path1",
                        "path2"
                ],
                "name": "noop",
                "opt": {
                        "blue": "",
                        "echo": "yes"
                }
        }
}

Thank you for the speedy, full reply.

Here is why I used the template that I did. 1) I did not want to have to enter the details required by help and support - they seemed irrelevant here. 2) I did suspect a problem with documentation.

that means you must specify a command and perhaps some optional parameters/flags. for example, rclone rc vfs/refresh recursive=true

Ah. But the documentation's

Use "rclone rc" to see a list of all possible commands.

suggests that typing rclone rc (sic) will yield a list of all possible commands.

perhaps you are using an old version of rclone, as that works for me and outputs help text

$ rclone version
rclone v1.57.0
- os/version: linuxmint 20.2 (64 bit)
- os/kernel: 5.11.0-41-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
$ rclone rc
2021/12/22 00:09:00 Failed to rc: failed to list: connection failed: Post "http://localhost:5572/rc/list": dial tcp 127.0.0.1:5572: connect: connection refused

Perhaps there is a prerequisite to running rclone rc. If so, perhaps the documentation page should make that clear.

ok, i see your point,

after your post, i ran rclone rc and got
rc.txt (34.8 KB)
but now i run rclone rc

rclone rc
2021/12/21 19:36:12 Failed to rc: failed to list: connection failed: Post "http://localhost:5572/rc/list": dial tcp 127.0.0.1:5572: connectex: No connection could be made because the target machine actively refused it.

edit:
for Use "rclone rc" to see a list of all possible commands to work,
there must already be a running rclone rc command

Feel free to submit a pull request to suggest any changes to make things more clear.

Thanks all.

Feel free to submit a pull request to suggest any changes to make things more clear.

I do not understand the relevant matters well enough.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.