pp-beehiiv
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- GENERATED FILE — DO NOT EDIT.
This file is a verbatim mirror of library/marketing/beehiiv/SKILL.md,
regenerated post-merge by tools/generate-skills/. Hand-edits here are
silently overwritten on the next regen. Edit the library/ source instead.
See AGENTS.md "Generated artifacts: registry.json, cli-skills/". -->
<!-- 生成文件 — 请勿编辑。
此文件是library/marketing/beehiiv/SKILL.md的精确镜像,
由tools/generate-skills/在合并后重新生成。此处的手动编辑会在下次生成时被静默覆盖。请改为编辑library/源文件。
参见AGENTS.md中的"生成产物:registry.json, cli-skills/"。 -->
Beehiiv — Printing Press CLI
Beehiiv — Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
beehiiv-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install beehiiv --cli-only - Verify:
beehiiv-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
npxbash
go install github.com/mvanhorn/printing-press-library/library/marketing/beehiiv/cmd/beehiiv-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATH此技能驱动二进制文件。在调用此技能的任何命令之前,您必须确认CLI已安装。如果未安装,请先执行以下步骤:
beehiiv-pp-cli- 通过Printing Press安装程序安装:
bash
npx -y @mvanhorn/printing-press install beehiiv --cli-only - 验证:
beehiiv-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果npx安装失败(无Node环境、离线等),可以回退到直接通过Go安装(需要Go 1.26.3或更高版本):
bash
go install github.com/mvanhorn/printing-press-library/library/marketing/beehiiv/cmd/beehiiv-pp-cli@latest如果安装后执行提示“command not found”,说明安装步骤未将二进制文件添加到中。在验证成功前,请勿继续使用此技能的命令。
--version$PATHUnique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
这些功能是其他同类型API工具所不具备的。
Publication intelligence
出版物智能分析
-
— Summarize publication, subscriber, post, referral, and custom-field health in one read-only response.
insights growth-summaryUse this first when an agent needs a compact account-level picture before choosing a narrower Beehiiv endpoint.bashbeehiiv-pp-cli insights growth-summary pub_00000000-0000-0000-0000-000000000000 --agent -
— List recent posts with status, audience, publish timing, and any available expanded stats.
insights post-performanceUse this when an agent needs to inspect content output before drilling into one post.bashbeehiiv-pp-cli insights post-performance pub_00000000-0000-0000-0000-000000000000 --limit 25 --agent
-
— 在一个只读响应中汇总出版物、订阅者、帖子、推荐和自定义字段的健康状态。
insights growth-summary当Agent需要先获取账户级别的简洁概览,再选择更细分的Beehiiv接口时,请首先使用此命令。bashbeehiiv-pp-cli insights growth-summary pub_00000000-0000-0000-0000-000000000000 --agent -
— 列出近期帖子的状态、受众、发布时间及所有可用的扩展统计数据。
insights post-performance当Agent需要先检查内容输出情况,再深入分析单个帖子时,请使用此命令。bashbeehiiv-pp-cli insights post-performance pub_00000000-0000-0000-0000-000000000000 --limit 25 --agent
Audience intelligence
受众智能分析
-
— Group subscribers by UTM, channel, and referring-site fields to see where audience growth is coming from.
insights subscriber-sourcesUse this when the question is about acquisition channels rather than individual subscribers.bashbeehiiv-pp-cli insights subscriber-sources pub_00000000-0000-0000-0000-000000000000 --limit 100 --agent -
— Inspect custom-field definitions alongside subscriber sample size for enrichment planning.
insights field-coverageUse this before importing, enriching, or auditing subscriber metadata.bashbeehiiv-pp-cli insights field-coverage pub_00000000-0000-0000-0000-000000000000 --agent -
— Find one subscriber by email or subscription ID and return a compact subscriber record.
insights subscriber-lookupUse this when the task is about one subscriber and broad list calls would waste context.bashbeehiiv-pp-cli insights subscriber-lookup pub_00000000-0000-0000-0000-000000000000 --email reader@example.com --agent
-
— 按UTM参数、渠道和来源网站字段对订阅者进行分组,查看受众增长的来源。
insights subscriber-sources当问题聚焦于获客渠道而非单个订阅者时,请使用此命令。bashbeehiiv-pp-cli insights subscriber-sources pub_00000000-0000-0000-0000-000000000000 --limit 100 --agent -
— 查看自定义字段定义及对应的订阅者样本量,用于规划受众数据 enrichment。
insights field-coverage在导入、丰富或审核订阅者元数据之前,请使用此命令。bashbeehiiv-pp-cli insights field-coverage pub_00000000-0000-0000-0000-000000000000 --agent -
— 通过邮箱或订阅ID查找单个订阅者,并返回简洁的订阅者记录。
insights subscriber-lookup当任务仅针对单个订阅者,而调用宽泛的列表命令会浪费上下文时,请使用此命令。bashbeehiiv-pp-cli insights subscriber-lookup pub_00000000-0000-0000-0000-000000000000 --email reader@example.com --agent
Growth loops
增长循环管理
-
— Summarize referral-program configuration and subscriber referral-code coverage.
insights referral-healthUse this when an agent needs to check whether referral growth is configured and visible in subscriber data.bashbeehiiv-pp-cli insights referral-health pub_00000000-0000-0000-0000-000000000000 --agent
-
— 汇总推荐计划配置和订阅者推荐码覆盖情况。
insights referral-health当Agent需要检查推荐增长是否已配置,且在订阅者数据中可见时,请使用此命令。bashbeehiiv-pp-cli insights referral-health pub_00000000-0000-0000-0000-000000000000 --agent
Command Reference
命令参考
advertisement-opportunities — Manage advertisement opportunities
- — Get advertisement opportunities <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli advertisement-opportunities <publicationId>
authors — Manage authors
- — Retrieve a list of authors available for the publication.
beehiiv-pp-cli authors index - — Retrieve a single author from a publication.
beehiiv-pp-cli authors show
automations — Manage automations
- — List automations <Badge intent='info' minimal outlined>OAuth Scope: automations:read</Badge>
beehiiv-pp-cli automations index - — Get automation <Badge intent='info' minimal outlined>OAuth Scope: automations:read</Badge>
beehiiv-pp-cli automations show
bulk-subscription-updates — Manage bulk subscription updates
- — List subscription updates <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:read</Badge>
beehiiv-pp-cli bulk-subscription-updates index - — Get subscription update <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:read</Badge>
beehiiv-pp-cli bulk-subscription-updates show
bulk-subscriptions — Manage bulk subscriptions
- — Bulk create subscription <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli bulk-subscriptions <publicationId>
condition-sets — Manage condition sets
- — Retrieve all active condition sets for a publication. Condition sets define reusable audience segments for targeting...
beehiiv-pp-cli condition-sets index - — Retrieve a single active dynamic content condition set for a publication. Use
beehiiv-pp-cli condition-sets showto calculate and...expand[]=stats
custom-fields — Manage custom fields
- — Create custom field <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:write</Badge>
beehiiv-pp-cli custom-fields create - — Delete custom field <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:write</Badge>
beehiiv-pp-cli custom-fields delete - — List custom fields <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:read</Badge>
beehiiv-pp-cli custom-fields index - — Update custom field <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:write</Badge>
beehiiv-pp-cli custom-fields patch - — Update custom field <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:write</Badge>
beehiiv-pp-cli custom-fields put - — Get custom field <Badge intent='info' minimal outlined>OAuth Scope: custom_fields:read</Badge>
beehiiv-pp-cli custom-fields show
data-privacy — Manage data privacy
- — <Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for...
beehiiv-pp-cli data-privacy data-deletion-create - — <Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for...
beehiiv-pp-cli data-privacy data-deletion-index - — <Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for...
beehiiv-pp-cli data-privacy data-deletion-show
email-blasts — Manage email blasts
- — List email blasts <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli email-blasts index - — Get email blast <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli email-blasts show
engagements — Manage engagements
- — Retrieve email engagement metrics for a specific publication over a defined date range and granularity.<br><br> By...
beehiiv-pp-cli engagements <publicationId>
newsletter-lists — Manage newsletter lists
- — <Note title='Currently in beta' icon='b'> Newsletter Lists is currently in beta, the API is subject to change....
beehiiv-pp-cli newsletter-lists index - — <Note title='Currently in beta' icon='b'> Newsletter Lists is currently in beta, the API is subject to change....
beehiiv-pp-cli newsletter-lists show
polls — Manage polls
- — Retrieve all polls belonging to a specific publication. Poll choices are always included. Use
beehiiv-pp-cli polls indexto...expand[]=stats - — Retrieve detailed information about a specific poll belonging to a publication. Use
beehiiv-pp-cli polls showfor aggregate...expand[]=stats
post-templates — Manage post templates
- — Retrieve a list of post templates available for the publication.
beehiiv-pp-cli post-templates <publicationId>
posts — Manage posts
- — Get aggregate stats <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli posts aggregate-stats - — <Note title='Currently in beta' icon='b'> This feature is currently in beta, the API is subject to change, and...
beehiiv-pp-cli posts create - — Delete or Archive a post. Any post that has been confirmed will have it's status changed to
beehiiv-pp-cli posts delete. Posts in the...archived - — List posts <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli posts index - — Get post <Badge intent='info' minimal outlined>OAuth Scope: posts:read</Badge>
beehiiv-pp-cli posts show - — <Note title='Currently in beta' icon='b'> This feature is currently in beta, the API is subject to change, and...
beehiiv-pp-cli posts update
publications — Manage publications
- — List publications <Badge intent='info' minimal outlined>OAuth Scope: publications:read</Badge>
beehiiv-pp-cli publications index - — Get publication <Badge intent='info' minimal outlined>OAuth Scope: publications:read</Badge>
beehiiv-pp-cli publications show
referral-program — Manage referral program
- — Get referral program <Badge intent='info' minimal outlined>OAuth Scope: referral_program:read</Badge>
beehiiv-pp-cli referral-program <publicationId>
segments — Manage segments
- — Create a new segment.<br><br> Manual segments — Use
beehiiv-pp-cli segments createorsubscriptionsinput to create a segment from...emails - — Delete a segment. Deleting the segment does not effect the subscriptions in the segment.
beehiiv-pp-cli segments delete - — List segments <Badge intent='info' minimal outlined>OAuth Scope: segments:read</Badge>
beehiiv-pp-cli segments index - — Get segment <Badge intent='info' minimal outlined>OAuth Scope: segments:read</Badge>
beehiiv-pp-cli segments show
subscriptions — Manage subscriptions
- — Update subscriptions <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-patch - — Update subscriptions' status <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-patch-status - — Update subscriptions <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-put - — Update subscriptions' status <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-put-status - — Create subscription <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions create - — <Warning>This cannot be undone. All data associated with the subscription will also be deleted. We recommend...
beehiiv-pp-cli subscriptions delete - — <Info>Please note that this endpoint requires the email to be URL encoded. Please reference your language's...
beehiiv-pp-cli subscriptions get-by-email - — <Info>In previous versions of the API, another endpoint existed to retrieve a subscription by the subscriber ID....
beehiiv-pp-cli subscriptions get-by-id - — Get subscription by subscriber ID <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:read</Badge>
beehiiv-pp-cli subscriptions get-by-subscriber-id - — Retrieve all subscriptions belonging to a specific publication. <Info> New: This endpoint now supports...
beehiiv-pp-cli subscriptions index - — Update subscription by ID <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions patch - — Update subscription by ID <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions put - — Update subscription by email <Badge intent='info' minimal outlined>OAuth Scope: subscriptions:write</Badge>
beehiiv-pp-cli subscriptions update-by-email
tiers — Manage tiers
- — Create a tier <Badge intent='info' minimal outlined>OAuth Scope: tiers:write</Badge>
beehiiv-pp-cli tiers create - — List tiers <Badge intent='info' minimal outlined>OAuth Scope: tiers:read</Badge>
beehiiv-pp-cli tiers index - — Update a tier <Badge intent='info' minimal outlined>OAuth Scope: tiers:write</Badge>
beehiiv-pp-cli tiers patch - — Update a tier <Badge intent='info' minimal outlined>OAuth Scope: tiers:write</Badge>
beehiiv-pp-cli tiers put - — Get tier <Badge intent='info' minimal outlined>OAuth Scope: tiers:read</Badge>
beehiiv-pp-cli tiers show
users — Manage users
- — Identify user <Badge intent='info' minimal outlined>OAuth Scope: identify:read</Badge>
beehiiv-pp-cli users
webhooks — Manage webhooks
- — Create a webhook <Badge intent='info' minimal outlined>OAuth Scope: webhooks:write</Badge>
beehiiv-pp-cli webhooks create - — Delete a webhook <Badge intent='info' minimal outlined>OAuth Scope: webhooks:write</Badge>
beehiiv-pp-cli webhooks delete - — List webhooks <Badge intent='info' minimal outlined>OAuth Scope: webhooks:read</Badge>
beehiiv-pp-cli webhooks index - — Get webhook <Badge intent='info' minimal outlined>OAuth Scope: webhooks:read</Badge>
beehiiv-pp-cli webhooks show - — Update webhook <Badge intent='info' minimal outlined>OAuth Scope: webhooks:write</Badge>
beehiiv-pp-cli webhooks update
workspaces — Manage workspaces
- — Identify workspace <Badge intent='info' minimal outlined>OAuth Scope: identify:read</Badge>
beehiiv-pp-cli workspaces identify - — Retrieve all publications in the workspace that have a subscription for the specified email address. The workspace...
beehiiv-pp-cli workspaces publications-by-subscription-email
advertisement-opportunities — 管理广告投放机会
- — 获取广告投放机会 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli advertisement-opportunities <publicationId>
authors — 管理作者
- — 获取出版物可用的作者列表。
beehiiv-pp-cli authors index - — 获取出版物中单个作者的信息。
beehiiv-pp-cli authors show
automations — 管理自动化任务
- — 列出自动化任务 <Badge intent='info' minimal outlined>OAuth权限:automations:read</Badge>
beehiiv-pp-cli automations index - — 获取单个自动化任务信息 <Badge intent='info' minimal outlined>OAuth权限:automations:read</Badge>
beehiiv-pp-cli automations show
bulk-subscription-updates — 管理批量订阅更新
- — 列出订阅更新记录 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:read</Badge>
beehiiv-pp-cli bulk-subscription-updates index - — 获取单个订阅更新记录 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:read</Badge>
beehiiv-pp-cli bulk-subscription-updates show
bulk-subscriptions — 管理批量订阅
- — 批量创建订阅 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli bulk-subscriptions <publicationId>
condition-sets — 管理条件集合
- — 获取出版物的所有活跃条件集合。条件集合定义了可复用的受众细分群体,用于定向投放...
beehiiv-pp-cli condition-sets index - — 获取出版物中单个活跃动态内容条件集合。使用
beehiiv-pp-cli condition-sets show来计算并...expand[]=stats
custom-fields — 管理自定义字段
- — 创建自定义字段 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:write</Badge>
beehiiv-pp-cli custom-fields create - — 删除自定义字段 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:write</Badge>
beehiiv-pp-cli custom-fields delete - — 列出自定义字段 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:read</Badge>
beehiiv-pp-cli custom-fields index - — 更新自定义字段 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:write</Badge>
beehiiv-pp-cli custom-fields patch - — 更新自定义字段 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:write</Badge>
beehiiv-pp-cli custom-fields put - — 获取单个自定义字段信息 <Badge intent='info' minimal outlined>OAuth权限:custom_fields:read</Badge>
beehiiv-pp-cli custom-fields show
data-privacy — 管理数据隐私
- — <Warning>这是一项 gated 功能,需要启用权限。请联系支持团队以启用数据删除API访问权限...
beehiiv-pp-cli data-privacy data-deletion-create - — <Warning>这是一项 gated 功能,需要启用权限。请联系支持团队以启用数据删除API访问权限...
beehiiv-pp-cli data-privacy data-deletion-index - — <Warning>这是一项 gated 功能,需要启用权限。请联系支持团队以启用数据删除API访问权限...
beehiiv-pp-cli data-privacy data-deletion-show
email-blasts — 管理邮件群发
- — 列出邮件群发记录 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli email-blasts index - — 获取单个邮件群发记录 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli email-blasts show
engagements — 管理互动数据
- — 获取特定出版物在指定日期范围和粒度下的邮件互动指标。<br><br> 通过...
beehiiv-pp-cli engagements <publicationId>
newsletter-lists — 管理新闻通讯列表
- — <Note title='当前处于测试版' icon='b'> 新闻通讯列表当前处于测试版,API可能会发生变更....
beehiiv-pp-cli newsletter-lists index - — <Note title='当前处于测试版' icon='b'> 新闻通讯列表当前处于测试版,API可能会发生变更....
beehiiv-pp-cli newsletter-lists show
polls — 管理投票
- — 获取特定出版物的所有投票。投票选项会始终包含在内。使用
beehiiv-pp-cli polls index来...expand[]=stats - — 获取出版物中单个投票的详细信息。使用
beehiiv-pp-cli polls show获取汇总...expand[]=stats
post-templates — 管理帖子模板
- — 获取出版物可用的帖子模板列表。
beehiiv-pp-cli post-templates <publicationId>
posts — 管理帖子
- — 获取汇总统计数据 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli posts aggregate-stats - — <Note title='当前处于测试版' icon='b'> 此功能当前处于测试版,API可能会发生变更,且...
beehiiv-pp-cli posts create - — 删除或归档帖子。任何已确认的帖子状态会变为
beehiiv-pp-cli posts delete。处于...状态的帖子...archived - — 列出帖子 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli posts index - — 获取单个帖子信息 <Badge intent='info' minimal outlined>OAuth权限:posts:read</Badge>
beehiiv-pp-cli posts show - — <Note title='当前处于测试版' icon='b'> 此功能当前处于测试版,API可能会发生变更,且...
beehiiv-pp-cli posts update
publications — 管理出版物
- — 列出出版物 <Badge intent='info' minimal outlined>OAuth权限:publications:read</Badge>
beehiiv-pp-cli publications index - — 获取单个出版物信息 <Badge intent='info' minimal outlined>OAuth权限:publications:read</Badge>
beehiiv-pp-cli publications show
referral-program — 管理推荐计划
- — 获取推荐计划信息 <Badge intent='info' minimal outlined>OAuth权限:referral_program:read</Badge>
beehiiv-pp-cli referral-program <publicationId>
segments — 管理受众细分
- — 创建新的受众细分。<br><br> 手动细分 — 使用
beehiiv-pp-cli segments create或subscriptions输入参数,从...创建细分群体emails - — 删除受众细分。删除细分不会影响细分中的订阅者。
beehiiv-pp-cli segments delete - — 列出受众细分 <Badge intent='info' minimal outlined>OAuth权限:segments:read</Badge>
beehiiv-pp-cli segments index - — 获取单个受众细分信息 <Badge intent='info' minimal outlined>OAuth权限:segments:read</Badge>
beehiiv-pp-cli segments show
subscriptions — 管理订阅
- — 更新订阅 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-patch - — 更新订阅状态 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-patch-status - — 更新订阅 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-put - — 更新订阅状态 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions bulk-updates-put-status - — 创建订阅 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions create - — <Warning>此操作不可撤销。与订阅相关的所有数据也会被删除。我们建议...
beehiiv-pp-cli subscriptions delete - — <Info>请注意,此接口要求邮箱地址进行URL编码。请参考您使用的语言的...
beehiiv-pp-cli subscriptions get-by-email - — <Info>在API的早期版本中,存在另一个通过订阅者ID获取订阅信息的接口....
beehiiv-pp-cli subscriptions get-by-id - — 通过订阅者ID获取订阅信息 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:read</Badge>
beehiiv-pp-cli subscriptions get-by-subscriber-id - — 获取特定出版物的所有订阅信息。<Info> 新增:此接口现在支持...
beehiiv-pp-cli subscriptions index - — 通过ID更新订阅信息 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions patch - — 通过ID更新订阅信息 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions put - — 通过邮箱更新订阅信息 <Badge intent='info' minimal outlined>OAuth权限:subscriptions:write</Badge>
beehiiv-pp-cli subscriptions update-by-email
tiers — 管理订阅层级
- — 创建订阅层级 <Badge intent='info' minimal outlined>OAuth权限:tiers:write</Badge>
beehiiv-pp-cli tiers create - — 列出订阅层级 <Badge intent='info' minimal outlined>OAuth权限:tiers:read</Badge>
beehiiv-pp-cli tiers index - — 更新订阅层级 <Badge intent='info' minimal outlined>OAuth权限:tiers:write</Badge>
beehiiv-pp-cli tiers patch - — 更新订阅层级 <Badge intent='info' minimal outlined>OAuth权限:tiers:write</Badge>
beehiiv-pp-cli tiers put - — 获取单个订阅层级信息 <Badge intent='info' minimal outlined>OAuth权限:tiers:read</Badge>
beehiiv-pp-cli tiers show
users — 管理用户
- — 识别用户 <Badge intent='info' minimal outlined>OAuth权限:identify:read</Badge>
beehiiv-pp-cli users
webhooks — 管理Webhook
- — 创建Webhook <Badge intent='info' minimal outlined>OAuth权限:webhooks:write</Badge>
beehiiv-pp-cli webhooks create - — 删除Webhook <Badge intent='info' minimal outlined>OAuth权限:webhooks:write</Badge>
beehiiv-pp-cli webhooks delete - — 列出Webhook <Badge intent='info' minimal outlined>OAuth权限:webhooks:read</Badge>
beehiiv-pp-cli webhooks index - — 获取单个Webhook信息 <Badge intent='info' minimal outlined>OAuth权限:webhooks:read</Badge>
beehiiv-pp-cli webhooks show - — 更新Webhook <Badge intent='info' minimal outlined>OAuth权限:webhooks:write</Badge>
beehiiv-pp-cli webhooks update
workspaces — 管理工作区
- — 识别工作区 <Badge intent='info' minimal outlined>OAuth权限:identify:read</Badge>
beehiiv-pp-cli workspaces identify - — 获取工作区中包含指定邮箱订阅的所有出版物。工作区...
beehiiv-pp-cli workspaces publications-by-subscription-email
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
beehiiv-pp-cli which "<capability in your own words>"which02--help当您知道要执行的操作,但不确定对应的命令时,可以直接询问CLI:
bash
beehiiv-pp-cli which "<用您自己的语言描述功能>"which02--helpAuth Setup
认证设置
Store your access token:
bash
beehiiv-pp-cli auth set-token YOUR_TOKEN_HEREOr set as an environment variable.
BEEHIIV_BEARER_AUTHRun to verify setup.
beehiiv-pp-cli doctor存储您的访问令牌:
bash
beehiiv-pp-cli auth set-token YOUR_TOKEN_HERE或者将设置为环境变量。
BEEHIIV_BEARER_AUTH执行来验证设置是否正确。
beehiiv-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashbeehiiv-pp-cli advertisement-opportunities mock-value --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Explicit retries — useonly when an already-existing create should count as success, and
--idempotentonly when a missing delete target should count as success--ignore-missing
在任何命令后添加参数。此参数等价于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — JSON输出到标准输出,错误信息输出到标准错误
-
可过滤 —参数保留指定字段子集。点路径可深入嵌套结构;数组可遍历每个元素。对于输出冗长的API,这是缩小上下文范围的关键:
--selectbashbeehiiv-pp-cli advertisement-opportunities mock-value --agent --select id,name,status -
可预览 —参数显示请求内容但不发送
--dry-run -
离线友好 — 同步/搜索命令在可用时可使用本地SQLite存储
-
非交互式 — 从不提示输入,所有输入均通过标志参数传递
-
显式重试 — 仅当已存在的创建操作应被视为成功时使用,仅当缺失的删除目标应被视为成功时使用
--idempotent--ignore-missing
Response envelope
响应信封
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
.results.meta.sourceN results (live)从本地存储或API读取数据的命令会将输出包装在来源信封中:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}解析获取数据,通过判断数据是实时的还是本地的。只有当标准输出是终端时,才会向标准错误输出人类可读的摘要 — 管道/Agent消费者只会在标准输出获取纯JSON数据。
.results.meta.sourceN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
beehiiv-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
beehiiv-pp-cli feedback --stdin < notes.txt
beehiiv-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.beehiiv-pp-cli/feedback.jsonlBEEHIIV_FEEDBACK_ENDPOINT--sendBEEHIIV_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或Agent)发现此CLI存在问题时,可以记录反馈:
beehiiv-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
beehiiv-pp-cli feedback --stdin < notes.txt
beehiiv-pp-cli feedback list --json --limit 10反馈条目会存储在本地文件中。除非设置了且传递了参数或设置了,否则反馈不会被POST发送。默认行为仅存储在本地。
~/.beehiiv-pp-cli/feedback.jsonlBEEHIIV_FEEDBACK_ENDPOINT--sendBEEHIIV_FEEDBACK_AUTO_SEND=true请记录您感到意外的内容,而非正式的bug报告。简短、具体、单行描述:这样的反馈才最有价值。
Output Delivery
输出交付
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
每个命令都支持参数。输出会发送到指定的sink,同时(或替代)输出到标准输出,因此Agent无需手动管道即可路由命令结果。支持三种sink:
--deliver <sink>| Sink | 效果 |
|---|---|
| 默认值;仅输出到标准输出 |
| 原子性地将输出写入 |
| 将输出体POST到指定URL(当使用 |
不支持的协议会返回结构化错误,并列出支持的协议集合。Webhook失败会返回非零退出码,并在标准错误输出中记录URL和HTTP状态码。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
beehiiv-pp-cli profile save briefing --json
beehiiv-pp-cli --profile briefing advertisement-opportunities mock-value
beehiiv-pp-cli profile list --json
beehiiv-pp-cli profile show briefing
beehiiv-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的标志值,可在多次调用中复用。当定时Agent每次运行都使用相同配置调用同一命令时,请使用此功能 — 即HeyGen的"Beacon"模式。
beehiiv-pp-cli profile save briefing --json
beehiiv-pp-cli --profile briefing advertisement-opportunities mock-value
beehiiv-pp-cli profile list --json
beehiiv-pp-cli profile show briefing
beehiiv-pp-cli profile delete briefing --yes显式标志参数始终优先于配置文件中的值;配置文件中的值优先于默认值。会在下列出所有可用配置文件,因此自省Agent可在运行时发现这些配置文件。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 4 | 需要认证 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputbeehiiv-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析的规则:
$ARGUMENTS- 为空、或
help→ 显示--help输出beehiiv-pp-cli --help - 以开头 → 以
install结尾 → MCP安装;否则 → 参见上方的前提条件mcp - 其他情况 → 直接使用(以标志执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add beehiiv-pp-mcp -- beehiiv-pp-mcpVerify:
claude mcp list从该CLI的已发布公共库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add beehiiv-pp-mcp -- beehiiv-pp-mcp验证:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which beehiiv-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashbeehiiv-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
beehiiv-pp-cli <command> --help
- 检查是否已安装:如果未找到,提供安装选项(参见顶部的前提条件)。
which beehiiv-pp-cli - 将用户查询与上方独特功能和命令参考中最匹配的命令对应。
- 使用标志执行命令:
--agentbashbeehiiv-pp-cli <command> [subcommand] [args] --agent - 如果存在歧义,查看子命令帮助:。
beehiiv-pp-cli <command> --help