pp-apartments
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseApartments.com — Printing Press CLI
Apartments.com — 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:
apartments-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install apartments --cli-only - Verify:
apartments-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.23+):
npxbash
go install github.com/mvanhorn/printing-press-library/library/other/apartments/cmd/apartments-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已安装。如果未安装,请先执行以下步骤:
apartments-pp-cli- 通过Printing Press安装器安装:
bash
npx -y @mvanhorn/printing-press install apartments --cli-only - 验证安装:
apartments-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果安装失败(比如没有Node环境、离线等),可以改用Go直接安装(需要Go 1.23及以上版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/other/apartments/cmd/apartments-pp-cli@latest如果安装后执行提示"command not found",说明安装程序未将二进制文件添加到中。在验证成功之前,请不要执行技能命令。
--version$PATHWhen to Use This CLI
何时使用本CLI
Use this CLI when an agent or human needs structured Apartments.com data and needs the workflows the website itself doesn't expose: cross-search diffs over time, $/sqft and total-cost-of-occupancy rankings, multi-slug union queries, side-by-side comparison, and digest-style summaries. Reach for it for relocation tracking, value-per-dollar screens across shortlists, leasing-agent weekly digests, and any rental-search scenario that needs JSON + offline composition. Skip it for one-off browsing — the apartments.com website is fine for that.
当智能体或用户需要结构化的Apartments.com数据,且需要官网未提供的工作流时,可使用本CLI:跨时间维度的搜索差异对比、每平方英尺价格与总居住成本排名、多搜索词联合查询、并列对比,以及摘要式汇总。适用于搬迁跟踪、候选房源的性价比筛选、租赁代理每周摘要,以及任何需要JSON格式数据+离线组合的租房搜索场景。如果只是单次浏览,直接使用apartments.com官网即可,无需本CLI。
When Not to Use This CLI
何时不应使用本CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿针对需要创建、更新、删除、发布、评论、点赞、邀请、下单、发送消息、预订、购买或修改远程状态的请求激活本CLI。本CLI仅提供用于查看、导出、同步和分析的只读命令。
Unique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
这些功能是其他同类API工具所不具备的。
Time-series intelligence
时间序列分析
-
— Re-run a stored search and surface what's NEW, REMOVED, or PRICE-CHANGED since the last sync.
watchPick this when an agent is tracking a relocation over time and needs a reproducible 'what changed since last week' digest, not a fresh search.bashapartments-pp-cli watch austin-2br --json --since 7d -
— List listings whose max-rent dropped by ≥N% within a time window.
dropsPick this when timing the market or watching for distressed listings.bashapartments-pp-cli drops --since 14d --min-pct 5 --json -
— Flag listings whose price and availability haven't changed in N days — often phantom or stuck.
stalePick this when a listing seems too good to be true; stale ones often are.bashapartments-pp-cli stale --days 30 --json --select url,maxrent,unchanged_days -
— Surface listings flagged by a three-signal join: 404 on re-fetch, dropped from saved-search results, or stale ≥45 days.
phantomsPick this when prepping a shortlist for tour scheduling — phantoms waste tour slots.bashapartments-pp-cli phantoms --json -
— Time-series of every observation of one listing — rent, availability, status.
historyPick this when reasoning about a single listing's price trajectory.bashapartments-pp-cli history https://www.apartments.com/example-property-1234 --json
-
— 重新执行已保存的搜索,展示自上次同步以来新增、移除或价格变动的房源。
watch当智能体需要跟踪搬迁进度,且需要可复现的「自上周以来的变化」摘要而非全新搜索结果时,使用该命令。bashapartments-pp-cli watch austin-2br --json --since 7d -
— 列出在指定时间窗口内最高租金降幅≥N%的房源。
drops当需要把握市场时机或关注降价房源时,使用该命令。bashapartments-pp-cli drops --since 14d --min-pct 5 --json -
— 标记价格和可用性连续N天未变化的房源——这类房源通常是虚假或已失效的。
stale当某个房源看起来过于优惠时,使用该命令;失效房源往往存在此类特征。bashapartments-pp-cli stale --days 30 --json --select url,maxrent,unchanged_days -
— 通过三重信号识别虚假房源:重新获取时返回404、从已保存搜索结果中消失、或连续≥45天无变化。
phantoms当准备候选房源用于预约看房时,使用该命令;虚假房源会浪费看房时间。bashapartments-pp-cli phantoms --json -
— 单个房源的所有历史记录——租金、可用性、状态的时间序列数据。
history当需要分析单个房源的价格走势时,使用该命令。bashapartments-pp-cli history https://www.apartments.com/example-property-1234 --json
Cross-market joins
跨区域联合搜索
-
— Fan out a search across multiple cities, zips, or neighborhoods and return one ranked, deduped list.
nearbyPick this when an agent needs a single ranked feed across multiple search slugs without writing a fan-out loop.bashapartments-pp-cli nearby austin-tx round-rock-tx pflugerville-tx --beds 2 --price-max 2500 --rank sqft --agent
-
— 在多个城市、邮编或社区范围内展开搜索,返回一个经过排名和去重的列表。
nearby当智能体需要在多个搜索范围内获取统一排名的结果,而无需编写循环逻辑时,使用该命令。bashapartments-pp-cli nearby austin-tx round-rock-tx pflugerville-tx --beds 2 --price-max 2500 --rank sqft --agent
Local-store math
本地存储数据分析
-
— Rank synced listings by 12-month total cost (rent + pet rent + pet deposit + pet fee), filtered to your hard budget.
valuePick this when budget is binding and pet fees might push a listing over the line.bashapartments-pp-cli value --budget 2800 --pet dog --months 12 --json --select rank,url,total_cost -
— Rank synced listings by ratio metrics — price per square foot or price per bedroom.
rankPick this when value-per-dollar is the goal, not 'best match' or 'lowest price'.bashapartments-pp-cli rank --by sqft --beds 2 --price-max 2500 --json --limit 10 -
— Rank per-floor-plan rent/sqft across synced listings — same building can yield 4 plans at different ratios.
floorplansPick this when a building has multiple floor plans and you want the cheap one specifically.bashapartments-pp-cli floorplans --rank price-per-sqft --beds 2 --json --limit 10 -
— Filter synced listings to those whose amenities array contains ALL listed terms via FTS5.
must-havePick this when the must-haves are free-text, not in apartments.com's amenity dropdown.bashapartments-pp-cli must-have "in-unit washer" "covered parking" "dishwasher" --json
-
— 根据12个月总居住成本(租金+宠物租金+宠物押金+宠物费用)对已同步房源进行排名,并筛选符合预算的房源。
value当预算有限,且宠物费用可能导致房源超出预算时,使用该命令。bashapartments-pp-cli value --budget 2800 --pet dog --months 12 --json --select rank,url,total_cost -
— 根据比率指标(每平方英尺价格或每卧室价格)对已同步房源进行排名。
rank当目标是性价比而非「最佳匹配」或「最低价格」时,使用该命令。bashapartments-pp-cli rank --by sqft --beds 2 --price-max 2500 --json --limit 10 -
— 根据每平方英尺租金对已同步房源的不同户型进行排名——同一建筑可能有4种不同性价比的户型。
floorplans当某建筑有多种户型,且您只想寻找性价比最高的户型时,使用该命令。bashapartments-pp-cli floorplans --rank price-per-sqft --beds 2 --json --limit 10 -
— 通过FTS5筛选出设施列表包含所有指定关键词的已同步房源。
must-have当您的必备设施是自由文本,且不在apartments.com的设施下拉选项中时,使用该命令。bashapartments-pp-cli must-have "in-unit washer" "covered parking" "dishwasher" --json
Shortlist workflows
候选房源工作流
-
— Pivot 2–8 listings into a wide table — one column per listing — with computed $/sqft and amenity overlap.
comparePick this when narrowing a shortlist; the wide table makes amenity-overlap deltas obvious.bashapartments-pp-cli compare austin-arboretum-1 austin-arboretum-2 austin-arboretum-3 --json -
— Single-shot composer: new + removed + price-drops + top-5 by $/sqft + stale + phantom flags for one saved search over N days.
digestPick this when an agent needs a Monday-morning summary in one call.bashapartments-pp-cli digest --saved-search austin-2br --since 7d --format md -
— Tag-based local shortlist table; add/show/remove listings with notes and tags.
shortlistPick this when an agent or user is curating a shortlist; downstream commands likeread from it.comparebashapartments-pp-cli shortlist add https://www.apartments.com/example-1234 --tag austin --note "liked the kitchen"
-
— 将2-8个房源转换为宽表格式——每列对应一个房源,并计算每平方英尺价格和设施重叠情况。
compare当需要缩小候选房源范围时,使用该命令;宽表格式可清晰展示设施差异。bashapartments-pp-cli compare austin-arboretum-1 austin-arboretum-2 austin-arboretum-3 --json -
— 一站式汇总工具:针对某一已保存搜索,展示指定天数内的新增、移除、降价房源,以及每平方英尺价格Top5房源、失效和虚假房源标记。
digest当智能体需要一键生成周一晨间摘要时,使用该命令。bashapartments-pp-cli digest --saved-search austin-2br --since 7d --format md -
— 基于标签的本地候选房源表;可添加、查看、移除房源,并添加备注和标签。
shortlist当智能体或用户正在整理候选房源时,使用该命令;后续命令如可读取该表数据。comparebashapartments-pp-cli shortlist add https://www.apartments.com/example-1234 --tag austin --note "liked the kitchen"
Aggregations
数据聚合
-
— Median, p10, p90 of rent and rent/sqft, pet-friendly share, by city/state and bed count.
marketPick this when an agent needs to anchor 'is this a fair price' against the local distribution.bashapartments-pp-cli market austin-tx --beds 2 --json
-
— 按城市/州和卧室数量统计租金及每平方英尺租金的中位数、10分位数、90分位数,以及宠物友好房源占比。
market当智能体需要参考本地市场价格分布来判断某房源价格是否合理时,使用该命令。bashapartments-pp-cli market austin-tx --beds 2 --json
HTTP Transport
HTTP传输
This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.
本CLI使用兼容Chrome的HTTP传输协议访问面向浏览器的端点。正常API调用无需常驻浏览器进程。
Discovery Signals
发现信号
This CLI was generated with browser-observed traffic context.
- Capture coverage: 0 API entries from 0 total network entries
- Protocols: html-ssr (95% confidence)
- Generation hints: use Surf with Chrome TLS fingerprint at runtime (UsesBrowserHTTPTransport), all responses are HTML/SSR — extract via html_extract mode: page, no clearance cookie capture; no resident browser sidecar, schema.org microdata (meta itemprop=streetAddress|addressLocality|addressRegion|postalCode) plus data-beds / data-baths / data-maxrent attributes are the primary extraction targets
- Candidate command ideas: rentals — Path-slug search is the primary entry point at apartments.com; listing — Listing detail page extracts schema.org microdata
- Caveats: protection-active: Apartments.com (CoStar) employs Akamai-style bot detection. stdlib HTTP returns 403; Surf with Chrome TLS fingerprint clears it. Watch for protection escalation that might require Chrome-clearance cookie import or full-browser fallback in future versions.
本CLI是基于浏览器捕获的流量上下文生成的:
- 捕获覆盖范围:0个API条目(共0个网络条目)
- 协议:html-ssr(95%置信度)
- 生成提示:运行时使用带有Chrome TLS指纹的Surf(UsesBrowserHTTPTransport),所有响应均为HTML/SSR——通过html_extract模式提取:页面,无需捕获验证Cookie;无需常驻浏览器进程,schema.org微数据(meta itemprop=streetAddress|addressLocality|addressRegion|postalCode)以及data-beds / data-baths / data-maxrent属性是主要提取目标
- 候选命令思路:rentals — 路径搜索词是apartments.com的主要入口;listing — 房源详情页提取schema.org微数据
- 注意事项:反机器人保护已激活:Apartments.com(CoStar)采用Akamai风格的机器人检测。标准库HTTP请求会返回403;使用带有Chrome TLS指纹的Surf可通过检测。未来版本需注意保护机制升级,可能需要导入Chrome验证Cookie或使用完整浏览器作为备选方案。
Command Reference
命令参考
listing — Fetch a single Apartments.com listing detail page by URL or property ID, parsing rent, beds/baths, address, amenities, and pet policy.
- — Fetch one Apartments.com listing detail page and parse schema.org microdata.
apartments-pp-cli listing <property_id>
rentals — Search Apartments.com rental listings by city, beds, baths, price, and pet policy. Returns parsed listing placards.
- — Run a path-slug search at apartments.com and return listing placards parsed from the HTML response.
apartments-pp-cli rentals
Hand-written commands
- — Run a saved search against apartments.com and snapshot placards into the local store.
apartments-pp-cli sync-search <saved-search> - — Diff the latest sync of a saved search against the previous; emit NEW / REMOVED / PRICE-CHANGED listings.
apartments-pp-cli watch <saved-search> - — Fan out a search across multiple city/zip/neighborhood slugs and return one ranked, deduped list.
apartments-pp-cli nearby <slug...> - — Rank synced listings by 12-month total cost of occupancy (rent + pet rent + pet deposit + pet fee).
apartments-pp-cli value - — Rank synced listings by ratio metrics — $/sqft or $/bed.
apartments-pp-cli rank - — Pivot 2–8 listings into a wide table — one column per listing — with computed $/sqft and amenity overlap.
apartments-pp-cli compare <url-or-id...> - — List listings whose max-rent dropped by ≥N% within a time window.
apartments-pp-cli drops - — Flag listings whose price and availability have not changed in N days — phantom or stuck signal.
apartments-pp-cli stale - — Surface listings flagged by a three-signal union: 404 on re-fetch, dropped from saved-search results, or stale ≥45...
apartments-pp-cli phantoms - — Aggregate synced listings: median, p10, p90 of rent and rent/sqft, plus pet-friendly share.
apartments-pp-cli market <city-state> - — Time-series of every observation of one listing — rent, availability, status.
apartments-pp-cli history <url-or-id> - — Weekly digest composer: new + removed + price-drops + top-by-sqft + stale + phantoms in one structured output.
apartments-pp-cli digest - — Rank per-floor-plan rent/sqft across synced listings.
apartments-pp-cli floorplans - — Filter synced listings to those whose amenities array contains ALL listed terms via FTS5.
apartments-pp-cli must-have <term...> - — Local shortlist table — add / show / remove listings with notes and tags.
apartments-pp-cli shortlist
listing — 通过URL或房源ID获取单个Apartments.com房源详情页,解析租金、卧室/浴室数量、地址、设施和宠物政策。
- — 获取单个Apartments.com房源详情页并解析schema.org微数据。
apartments-pp-cli listing <property_id>
rentals — 按城市、卧室数量、浴室数量、价格和宠物政策搜索Apartments.com租房房源,返回解析后的房源卡片。
- — 在apartments.com执行路径搜索词搜索,返回从HTML响应中解析的房源卡片。
apartments-pp-cli rentals
手动编写的命令
- — 针对apartments.com执行已保存的搜索,并将房源卡片快照保存到本地存储。
apartments-pp-cli sync-search <saved-search> - — 将已保存搜索的最新同步结果与上一次结果对比;输出新增/移除/价格变动的房源。
apartments-pp-cli watch <saved-search> - — 在多个城市/邮编/社区搜索词范围内展开搜索,返回一个经过排名和去重的列表。
apartments-pp-cli nearby <slug...> - — 根据12个月总居住成本(租金+宠物租金+宠物押金+宠物费用)对已同步房源进行排名。
apartments-pp-cli value - — 根据比率指标($/sqft或$/bed)对已同步房源进行排名。
apartments-pp-cli rank - — 将2-8个房源转换为宽表格式——每列对应一个房源,并计算每平方英尺价格和设施重叠情况。
apartments-pp-cli compare <url-or-id...> - — 列出在指定时间窗口内最高租金降幅≥N%的房源。
apartments-pp-cli drops - — 标记价格和可用性连续N天未变化的房源——虚假或已失效信号。
apartments-pp-cli stale - — 通过三重信号识别虚假房源:重新获取时返回404、从已保存搜索结果中消失、或连续≥45天无变化。
apartments-pp-cli phantoms - — 聚合已同步房源:租金及每平方英尺租金的中位数、10分位数、90分位数,以及宠物友好房源占比。
apartments-pp-cli market <city-state> - — 单个房源的所有历史记录——租金、可用性、状态的时间序列数据。
apartments-pp-cli history <url-or-id> - — 每周摘要工具:一键输出新增、移除、降价房源,以及每平方英尺价格Top5房源、失效和虚假房源标记。
apartments-pp-cli digest - — 根据每平方英尺租金对已同步房源的不同户型进行排名。
apartments-pp-cli floorplans - — 通过FTS5筛选出设施列表包含所有指定关键词的已同步房源。
apartments-pp-cli must-have <term...> - — 本地候选房源表——添加/查看/移除房源,并添加备注和标签。
apartments-pp-cli shortlist
Freshness Contract
新鲜度协议
This printed CLI owns bounded freshness only for registered store-backed read command paths. In mode, those paths check and may run a bounded refresh before reading local data. never refreshes. reads the API and does not mutate the local store. Set to skip the freshness hook without changing source selection.
--data-source autosync_state--data-source local--data-source liveAPARTMENTS_NO_AUTO_REFRESH=1When JSON output uses the generated provenance envelope, freshness metadata appears at . Treat it as current-cache freshness for the covered command path, not a guarantee of complete historical backfill or API-specific enrichment.
meta.freshness本CLI仅对已注册的基于存储的只读命令路径保证有限的新鲜度。在模式下,这些路径会检查,并可能在读取本地数据前执行有限刷新。模式从不刷新。模式读取API且不修改本地存储。设置可跳过新鲜度检查,无需更改数据源选择。
--data-source autosync_state--data-source local--data-source liveAPARTMENTS_NO_AUTO_REFRESH=1当JSON输出使用生成的来源信封时,新鲜度元数据会显示在字段中。将其视为对应命令路径的当前缓存新鲜度,而非完整历史回填或API特定增强的保证。
meta.freshnessFinding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
apartments-pp-cli which "<capability in your own words>"which02--help当您知道要执行的操作但不确定对应命令时,可直接询问CLI:
bash
apartments-pp-cli which "<用您自己的语言描述功能>"which02--helpRecipes
使用示例
Three-neighborhood relocation hunt
三社区搬迁搜索
bash
apartments-pp-cli nearby austin-tx round-rock-tx pflugerville-tx --beds 2 --price-max 2500 --pets dog --rank sqft --json --select url,addressLocality,maxrent,sqft,price_per_sqftSingle ranked feed across three target neighborhoods, deduped by listing URL, with keeping only the columns the agent needs.
--selectbash
apartments-pp-cli nearby austin-tx round-rock-tx pflugerville-tx --beds 2 --price-max 2500 --pets dog --rank sqft --json --select url,addressLocality,maxrent,sqft,price_per_sqft在三个目标社区范围内生成统一排名的房源列表,按房源URL去重,参数仅保留智能体需要的字段。
--selectWeekly leasing-agent digest
租赁代理每周摘要
bash
apartments-pp-cli digest --saved-search client-rachel --since 7d --format mdComposes new / removed / price-drops / top-5-by-sqft / stale / phantom flags for a single client search into a markdown report ready to paste into email.
bash
apartments-pp-cli digest --saved-search client-rachel --since 7d --format md针对单个客户的搜索,将新增、移除、降价房源,以及每平方英尺价格Top5房源、失效和虚假房源标记整合为Markdown报告,可直接粘贴到邮件中。
Total-cost screen with hard budget
总成本预算筛选
bash
apartments-pp-cli value --budget 2800 --pet dog --months 12 --json --select rank,url,maxrent,pet_rent,total_cost,price_per_sqftRanks the synced listings by 12-month total cost (rent + pet rent + pet deposit + pet fee), filtered to under-budget rows only.
bash
apartments-pp-cli value --budget 2800 --pet dog --months 12 --json --select rank,url,maxrent,pet_rent,total_cost,price_per_sqft根据12个月总居住成本(租金+宠物租金+宠物押金+宠物费用)对已同步房源进行排名,仅筛选符合预算的房源。
Phantom-detection sweep before tour scheduling
看房前虚假房源检测
bash
apartments-pp-cli phantoms --json --select url,reason,unchanged_daysThree-signal union — 404, dropped from saved search, stale ≥45 days. Filter your shortlist before booking tours so you don't drive across town to a leased unit.
bash
apartments-pp-cli phantoms --json --select url,reason,unchanged_days三重信号识别——404错误、从已保存搜索结果中消失、连续≥45天无变化。在预约看房前筛选候选房源,避免驱车前往已出租的房源。
Offline FTS amenity intersect
离线FTS设施交集筛选
bash
apartments-pp-cli must-have "in-unit washer" "covered parking" "dishwasher" --json --select url,addressLocality,maxrent,amenitiesPath filter for amenities apartments.com's filter dropdown doesn't expose. FTS5 AND-join over the synced amenities array.
bash
apartments-pp-cli must-have "in-unit washer" "covered parking" "dishwasher" --json --select url,addressLocality,maxrent,amenities筛选apartments.com设施下拉选项未涵盖的设施。通过FTS5对已同步房源的设施列表执行AND联合查询。
Auth Setup
认证设置
No authentication required.
Run to verify setup.
apartments-pp-cli doctor无需认证。
执行验证设置。
apartments-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:
--selectbashapartments-pp-cli listing example-property --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
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任何命令后添加参数。等效于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — 标准输出为JSON,错误信息输出到标准错误
-
可筛选 —参数保留指定字段。点路径可访问嵌套结构;数组可遍历元素。对于冗长的API,此参数对缩小上下文范围至关重要:
--selectbashapartments-pp-cli listing example-property --agent --select id,name,status -
可预览 —参数显示请求但不发送
--dry-run -
离线友好 — 同步/搜索命令可在可用时使用本地SQLite存储
-
非交互式 — 从不提示,所有输入均通过参数传递
-
只读 — 请勿使用本CLI执行创建、更新、删除、发布、评论、点赞、邀请、下单、发送或其他修改状态的请求
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>
}解析字段获取数据,字段表示数据来源是实时API还是本地存储。仅当标准输出为终端时,才会向标准错误输出人类可读的摘要;管道传输/Agent模式下,标准输出仅为纯JSON。
.results.meta.sourceN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
apartments-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
apartments-pp-cli feedback --stdin < notes.txt
apartments-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.
~/.apartments-pp-cli/feedback.jsonlAPARTMENTS_FEEDBACK_ENDPOINT--sendAPARTMENTS_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或智能体)发现本CLI存在问题时,可记录反馈:
apartments-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
apartments-pp-cli feedback --stdin < notes.txt
apartments-pp-cli feedback list --json --limit 10反馈条目存储在本地文件中。仅当设置了且传递了参数或设置时,才会发送反馈。默认行为仅存储在本地。
~/.apartments-pp-cli/feedback.jsonlAPARTMENTS_FEEDBACK_ENDPOINT--sendAPARTMENTS_FEEDBACK_AUTO_SEND=true请记录令您感到意外的内容,而非正式的错误报告。简短、具体、单行描述:这类反馈的价值最大。
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.
所有命令均支持参数。输出会发送到指定的接收端,同时(或替代)输出到标准输出,因此智能体无需手动管道即可路由命令结果。支持三种接收端:
--deliver <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.
apartments-pp-cli profile save briefing --json
apartments-pp-cli --profile briefing listing example-property
apartments-pp-cli profile list --json
apartments-pp-cli profile show briefing
apartments-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配置文件是一组保存的参数值,可在多次调用中复用。适用于定时任务智能体每次调用相同命令且使用相同配置的场景——即HeyGen的「Beacon」模式。
apartments-pp-cli profile save briefing --json
apartments-pp-cli --profile briefing listing example-property
apartments-pp-cli profile list --json
apartments-pp-cli profile show briefing
apartments-pp-cli profile delete briefing --yes显式参数始终优先于配置文件值;配置文件值优先于默认值。会在下列出所有可用配置文件,因此智能体可在运行时发现这些配置文件。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(等待后重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputapartments-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输出apartments-pp-cli --help - 以开头 → 以
install结尾 → MCP安装;否则 → 参见上方前提条件mcp - 其他情况 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
- Install the MCP server:
bash
go install github.com/mvanhorn/printing-press-library/library/other/apartments/cmd/apartments-pp-mcp@latest - Register with Claude Code:
bash
claude mcp add apartments-pp-mcp -- apartments-pp-mcp - Verify:
claude mcp list
- 安装MCP服务器:
bash
go install github.com/mvanhorn/printing-press-library/library/other/apartments/cmd/apartments-pp-mcp@latest - 注册到Claude Code:
bash
claude mcp add apartments-pp-mcp -- apartments-pp-mcp - 验证:
claude mcp list
Direct Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which apartments-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashapartments-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
apartments-pp-cli <command> --help
- 检查是否已安装:若未找到,提供安装选项(参见顶部前提条件)。
which apartments-pp-cli - 将用户查询与上方独特功能和命令参考中的最佳命令匹配。
- 添加参数执行:
--agentbashapartments-pp-cli <command> [subcommand] [args] --agent - 若存在歧义,查看子命令帮助:。
apartments-pp-cli <command> --help