publier logout
Sign out and forget the stored sign-in.
Removes the stored sign-in at ~/.config/publier/auth.json. After logout, publier dev and publier build fail unless PUBLIER_TOKEN is set in the environment.
Usage
publier logoutWhat it removes
~/.config/publier/auth.json— the stored sign-in.~/.config/publier/cli-config.jsonand~/.config/publier/jwks.json— the cached sign-in configuration and public signing keys.- Leftovers in
~/.publier/, the directory older Publier releases used. Nothing reads them any more, and one of them was a private key, so logout deletes them rather than leaving them on disk.
Before deleting anything, publier logout asks the sign-in service to revoke the credential, so it stops working server-side rather than merely being forgotten locally. That call is best-effort and silent — a captive portal or an offline laptop must not turn “forget my credentials” into an error.
Details
Idempotent — exits 0 whether or not you were signed in:
Signed out. `publier dev` and `publier build` need a seat — run `publier login` before building.No stored sign-in found (already signed out).Only exits 1 on an unexpected filesystem error (e.g. a permission issue on the parent directory).
Exit codes
| Code | Meaning |
|---|---|
0 | Signed out (or was already signed out). |
1 | Unexpected filesystem error. |