Skip to main content

workspace health

workspace health requests the /health interface of SteamHarness Server. This command does not require a token and is suitable for confirming whether the server is reachable before signing in, uploading, or downloading.

Command Format​

pnpm exec steamharness workspace health [--server <url>]

Parameter​

ParameterDescription
--server <url>Optional. If not passed, the server URL is resolved according to the configured priority.

Server URL Priority​

OrderSource
1--server <url>
2STEAMHARNESS_SERVER_URL
3CLI Login state file
4Channel default (dev: http://localhost:7126; alpha and main use their respective deployment sites)

Output​

SituationOutput
server reachableThe JSON returned by server /health.
The server returned a non-zero errCodeOutput JSON, exit code is 1.
Network or parse failureOutput error message with exit code 1.

Example​

pnpm exec steamharness workspace health
pnpm exec steamharness workspace health --server http://localhost:7126

Common uses​

SceneDescription
Pre-Release CheckVerify that the server is started and that the URL is correct.
Troubleshoot login failureDistinguish between server unreachability and invalid token.