Skip to content

Commit

Permalink
docs: Document --url and --unix-socket on the rc page
Browse files Browse the repository at this point in the history
This page started talking about what commands you can send, without
explaining how to actually send them.

Fixes rclone#8252.
  • Loading branch information
ttencate authored and ncw committed Dec 19, 2024
1 parent 0ce2e12 commit 9218b69
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/content/rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ User-specified template.
Rclone itself implements the remote control protocol in its `rclone
rc` command.

You can use it like this
You can use it like this:

```
$ rclone rc rc/noop param1=one param2=two
Expand All @@ -190,8 +190,23 @@ $ rclone rc rc/noop param1=one param2=two
}
```

Run `rclone rc` on its own to see the help for the installed remote
control commands.
If the remote is running on a different URL than the default
`http://localhost:5572/`, use the `--url` option to specify it:

```
$ rclone rc --url http://some.remote:1234/ rc/noop
```

Or, if the remote is listening on a Unix socket, use the `--unix-socket` option
instead:

```
$ rclone rc --unix-socket /tmp/rclone.sock rc/noop
```

Run `rclone rc` on its own, without any commands, to see the help for the
installed remote control commands. Note that this also needs to connect to the
remote server.

## JSON input

Expand Down

0 comments on commit 9218b69

Please sign in to comment.