Skip to main content

workspace health

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

Command Format

pnpm exec workflow-code 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>
2WORKFLOW_SERVER_URL
3CLI Login state file
4http://localhost:7125

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 workflow-code workspace health
pnpm exec workflow-code workspace health --server http://localhost:7125

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.