FerryDocs

Not logged in, or the token is wrong

The CLI has no API token, or the server refuses the token.

Edit on GitHub

What you see

ferry
error: not logged in: run 'ferry login --server <URL>' first (or set FERRY_SERVER and FERRY_TOKEN)
ferry
error: invalid API token (unauthorized)
hint: the token was refused (revoked or expired?): log in again with 'ferry login --server <URL>'

Why it occurs

MessageCause
not logged inThe has no saved login, and no --token or FERRY_TOKEN.
invalid API tokenThe server refuses the .

The server refuses a token for three reasons:

  • You revoked it in the dashboard.
  • It expired.
  • It belongs to another server. For example, the server now runs with another data directory.

How to repair it

Log in again. Then approve the request in the .

Terminal
ferry login --server <URL>

For and scripts, create a new API token in Server → Account. Put it in FERRY_TOKEN. See Set up the CLI.

On this page