Skip to main content

publinker-cli

Command line for Publinker: your sites, ad revenue reports, pricing floors and site config, from the terminal and from AI assistants like Claude Code and Codex.

You need a Publinker account. The CLI only sees the sites you can see on publinker.com.

Install

Needs Python 3.10+ and pipx.

pipx install publinker-cli
publinker skill install   # teaches Claude Code and Codex to use publinker
publinker login           # opens a browser to confirm a one-time code

Update with pipx upgrade publinker-cli.

Use

publinker site list                 # sites you can access
publinker use example.com           # set your active site
publinker site report get --help    # every command has --help
publinker site pricing get

Commands that change data are blocked by default. Allow one command at a time by prefixing it with PUBLINKER_ALLOW_WRITES=1 and naming the site explicitly:

PUBLINKER_ALLOW_WRITES=1 publinker site pricing adjust --site example.com ...

Nothing stays unlocked afterwards. Don't export the variable.

Servers and CI

On a machine where you are logged in, run publinker token, then on the server set PUBLINKER_TOKEN to that value. Treat it like a password; mint a new one when it expires.

AI assistants

publinker skill install copies a skill to ~/.claude/skills/publinker and ~/.agents/skills/publinker. For any other assistant, point it at the file that publinker skill path prints.

Metadata

Release files for publinker-cli 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for publinker-cli 0.6.2
File Interpreter ABI Platform
publinker_cli-0.6.2-py3-none-any.whl Python 3 none any Details

Release files / publinker_cli-0.6.2-py3-none-any.whl

Download URL publinker_cli-0.6.2-py3-none-any.whl
Size 43.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9c3194767313d9cecc9102b37b7e35048a8b997b5aa4c4de86a5dac993fb2f
BLAKE2b-256 checksum
How to use checksums
ef90b206d16c08f55406d478cd65de30071266d98d5ea82b170136a0e11ce45a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for publinker-cli 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 1 file in this release has been uploaded with provenance metadata.

Attestation for publinker_cli-0.6.2-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.2 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page