dicer remote create
Add a daemon to talk to.
A daemon’s TCP listener, HOST:PORT, is reached with a token, which dicer token create makes on the daemon’s host, printing this command to run with it. Give it with --token, paste it when asked, or pipe it in. --token keeps it in the shell’s history, which the other two do not. The token is kept with the remote. It also says how to check that the daemon is the one that made it.
A unix:// socket takes no token. It is controlled by its file permissions: whoever can open it may do anything.
Usage
$ dicer remote create NAME ADDRESS [flags]
Also run as dicer remote new, dicer remote add.
Examples
$ dicer remote create prod dicer1.example.com:7443
$ echo "$DICER_PROD_TOKEN" | dicer remote create prod dicer1.example.com:7443
$ dicer remote create test unix:///run/dicer-test/dicer.sock
Flags
| Flag | Description |
|---|---|
--token string | The token to reach a TCP address with, instead of reading it. |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local). |
--request-timeout duration | Give up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded). |