FerryDocs
Getting startedSet up the CLI

Choose a server

ferry gets the server URL and the token from four places, and uses the first value that it finds.

Edit on GitHub

Flags. --server and --token on the command line.

1 / 4
ferry uses the first value that it finds

The four places

PrioritySourceServerToken
1Flags--server <URL>--token <TOKEN>
2Environment variablesFERRY_SERVERFERRY_TOKEN
3Config file that ferry login savedservertoken
4Defaulthttp://127.0.0.1:7878none

A wins over a . A variable wins over the .

Work with many servers

The config file keeps one login. Keep the server that you use most in the config file. Give the other servers with flags or with variables.

The saved token goes only to its own server

If --server or FERRY_SERVER names a different server, ferry does not send the saved token to it. You must give a token for that server too.

Error
error: no token for http://10.0.0.5:7878: the saved login is for http://127.0.0.1:7878, and its token is only sent there; pass --token or set FERRY_TOKEN (or run 'ferry login --server http://10.0.0.5:7878')

On this page