Skip to main content

workspace logout

workspace logout deletes the server URL, API Key, and user information from the CLI login status file. It does not request a server, nor does it delete remote workflow or local project files.

Command Format​

pnpm exec steamharness workspace logout

Parameter​

ParameterDescription
NoneThe command does not read positional parameters.

Behavior​

StepsDescription
Locate Configuration DirectoryUse STEAMHARNESS_CLI_AUTH_DIR or the system default directory.
Clean ConfigurationDelete workflow-auth.json.
Output statusOutput { loggedIn: false }.

Output​

SituationOutput
Success{ errCode: 0, errMessage: "", data: { loggedIn: false } }
File write failedOutput error message with exit code 1.

Example​

pnpm exec steamharness workspace logout
pnpm exec steamharness workspace status

Precautions​

SceneDescription
STEAMHARNESS_SERVER_ADMIN_KEY setThe environment variables are still read by subsequent commands.
Need to switch accounts completelyClean up the shell environment variables and the CLI login state at the same time.