Skip to main content

workspace versions

workspace versions requests Workflow Server to return a list of remote versions of the specified workflow. It is often used to confirm the latest point, release results and version online status.

Command Format

pnpm exec workflow-code workspace versions <workflow>

Parameter

ParameterDescription
<workflow>The remote workflow name.

API

StepsEndpoint
Query VersionGET /api/workflows/{workflow}/versions

Output

SituationOutput
Query succeedsServer versions API JSON.
workflow does not existThe server returned an error JSON, with exit code 1.
Not logged inOutput error message with exit code 1.

Example

pnpm exec workflow-code workspace versions hello

Common uses

SceneDescription
Confirmation after releaseCheck whether a new version is generated.
Run the specified versionCopy the version number from the version of status: "online" to run --target.
Download the specified versionCopy the version number from the list to download --target.

Version Status

Each version returned contains the status, activation, online, runnable, and latest fields. preparing indicates that the release process is preparing dependencies and runtime, and latest will not be switched for the time being;online can be run, Embed or Webhook can be accessed;offline still retains the database and object storage backup, but the running entry will deny access. The management terminal can re-launch the offline version, and the version that is manually launched will not be automatically offline by the default "last three automatic online versions" policy.