Skip to main content
ancha whoami says where the next command’s worlds will run and why. It follows the same order as every other command: --server-url, then server.url in ancha.yaml, then ANCHA_SERVER_URL, then the workspace saved by ancha login, else a server on this computer. See CLI overview.

Example

Output
A saved login names the workspace without moving the worlds there. When --server-url, server.url or ANCHA_SERVER_URL names the server, the last line reads ancha run: worlds in this workspace. Without a workspace:
Output
--verify sends one request to the server. When the key is accepted, the text ends with The server accepted the key.; when it is not, the command fails with AUTH_INVALID and exit 2. A server that cannot be reached fails with SERVER_UNREACHABLE and exit 3. There is nothing to verify for a local server.

JSON output

Exit codes

0. 2 for an invalid server URL, or with --verify a key the server rejects. 3 with --verify when the server cannot be reached.