Tokens
How Publier license tokens work — where to put them, precedence, and rotation.
A Publier license token is required by both publier dev and publier build. Missing, expired, or invalid tokens cause an immediate exit 1 — there is no dev-only fallback.
Where Publier looks
Publier resolves a token in this order:
PUBLIER_TOKENenvironment variable — takes precedence over all other sources.~/.publier/auth.json— written bypublier login.
Set PUBLIER_TOKEN in your CI environment so you don’t need to commit a token file to the repository.
Getting a token
Email [email protected] with your intended use, or sign up via the website.
Rotation and revocation
To rotate or revoke a token, email [email protected]. After a rotation:
- Local: run
publier login --token <new-token>to update the cached file. - CI: update the
PUBLIER_TOKENsecret.
The next invocation picks up the new token immediately.