Expand description
cellctl version โ print client version, then attempt the server version.
The client version is printed unconditionally on its own line so an operator always sees what they have locally even when the server is unreachable. After that, we attempt the server query and:
- on success, print
server: cellos-server <ver> (<url>)and exit 0; - on transport OR HTTP error, print
error: unable to connect to the server: <reason>to stderr and return aCtlError::apiso the process exits non-zero.
This matches kubectl version, which also exits non-zero when it cannot
reach the API server. See SMOKE-TEST report Finding #2.