logout

Remove the stored SPLENT marketplace token and revoke it on the server.


Usage

splent logout [--registry URL]

Options

Option Description
--registry URL Marketplace to log out of. Defaults to SPLENT_MARKETPLACE_URL, then https://marketplace.splent.io.

Description

Revoking on the server is best effort, deleting locally is guaranteed. A marketplace that is down must not leave a token wedged on the laptop, so a failed revoke is reported and the local delete happens anyway. When the revoke fails for a reason other than a dead token, the command tells you to remove it from the marketplace by hand if it is still listed there.

Having nothing stored is not an error, so scripts can call logout unconditionally.

Only the entry for that one registry is removed. Other registries in the file are left alone.

splent logout

  Token revoked on the server.
  Logged out of https://marketplace.splent.io
  Removed the stored token from /workspace/.splent/credentials.json

The environment variable is not managed here

A token coming from SPLENT_MARKETPLACE_TOKEN does not belong to the CLI, so it is reported rather than revoked.

  A token is still coming from SPLENT_MARKETPLACE_TOKEN.
  Unset it to finish logging out.

That line appears whether or not anything was stored, because until the variable is unset the next command is still authenticated.


See also

  • login. Authenticate and store the token
  • whoami. Which credential is in use right now

Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es