✨ Publier v1 is live — a polished docs platform built for the open web.
Skip to content

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:

  1. PUBLIER_TOKEN environment variable — takes precedence over all other sources.
  2. ~/.publier/auth.json — written by publier 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_TOKEN secret.

The next invocation picks up the new token immediately.