pp-pokeapi
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePokéAPI — Printing Press CLI
PokéAPI — 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:
pokeapi-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install pokeapi --cli-only - Verify:
pokeapi-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/media-and-entertainment/pokeapi/cmd/pokeapi-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工具已安装。 如果未安装,请先执行以下步骤安装:
pokeapi-pp-cli- 通过Printing Press安装器安装:
bash
npx -y @mvanhorn/printing-press install pokeapi --cli-only - 验证安装:
pokeapi-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果安装失败(如无Node环境、离线等情况),可改用Go直接安装(要求Go 1.23及以上版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/pokeapi/cmd/pokeapi-pp-cli@latest如果执行时提示“command not found”,说明安装程序未将可执行文件添加到中。请在验证安装成功后再执行技能命令。
--version$PATHWhen to Use This CLI
何时使用本CLI工具
Reach for this CLI when you want a fully-local, fully-queryable Pokédex. It is ideal for agents answering Pokémon questions without spending live API calls, for battle-planning workflows that combine type math and learnset filtering, and for any reverse-search question (find the move, the ability, the form, the requirement) that the live REST surface doesn't natively answer. Skip it for purely image-driven workflows where another tool already handles sprite rendering.
当你需要一个完全本地化、可自由查询的宝可梦图鉴时,即可使用本CLI工具。它非常适合智能体在不调用在线API的情况下回答宝可梦相关问题,也适用于结合属性克制计算和技能学习列表筛选的对战规划工作流,以及在线REST接口无法原生支持的反向搜索问题(查找技能、特性、形态、进化条件等)。若你的工作流仅涉及图像展示,且已有其他工具处理精灵渲染,则无需使用本工具。
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的工具所不具备的。
Local store that compounds
可累积的本地存储
-
— Find every Pokémon with a given ability. Live API has no reverse index — this is a single SQL query against the local store.
pokemon by-abilityReach for this when an agent needs to enumerate Pokémon by trait without making thousands of API calls.bashpokeapi-pp-cli pokemon by-ability levitate --json --select name,types -
— Find moves by status effect, damage class, type, or target — e.g. all moves that paralyze a Steel-type.
move findUse this for battle planning questions framed by effect rather than by move name.bashpokeapi-pp-cli move find --effect paralyze --type-target steel --json -
— Given an in-progress team, score every remaining Pokémon by how well it covers the team's typing gaps. Returns top candidates.
team suggestBest for team-building agents that need objective gap-coverage scoring rather than vibes-based recommendations.bashpokeapi-pp-cli team suggest pikachu,charizard --slots 6 --json --select name,types,score -
— Compare the move learnsets of two Pokémon (often regional forms or megas) and surface what each can learn that the other cannot.
pokemon diff-learnsetUseful when an agent needs to argue 'why pick form X over form Y' with concrete move evidence.bashpokeapi-pp-cli pokemon diff-learnset charizard charizard-mega-x --json -
— Show how a Pokémon has changed over generations: type changes, stat changes, ability changes, and which generation it was introduced in.
pokemon historyReach for this when answering historical Pokémon questions ('was Clefairy always a Fairy type?').bashpokeapi-pp-cli pokemon history clefairy --json -
— List every form for a species (e.g. Vulpix vs Alolan Vulpix) with type, stat, and ability deltas inline.
pokemon formsUse when an agent needs a species-wide answer rather than a single-form payload.bashpokeapi-pp-cli pokemon forms vulpix --json -
— Given a target Pokémon, surface the species you would need to evolve and the conditions (item, level, friendship, time of day) to get there.
evolve intoPick this when the user knows the Pokémon they want and needs the path to it, not the inverse.bashpokeapi-pp-cli evolve into umbreon --json -
— List which of the 18 types your in-progress team has neither defensive resistance nor offensive super-effectiveness against.
team gapsUse when answering 'what would a hostile team most likely exploit on this lineup?'bashpokeapi-pp-cli team gaps pikachu,charizard,blastoise --json -
— Render a region-level encounter table joining locations, areas, encounters, and species — every Pokémon you can find in (e.g.) Kanto.
encounters by-regionWhen the question is regional ('what catches in Kanto?') rather than per-Pokémon.bashpokeapi-pp-cli encounters by-region kanto --version red --json
-
— 查找拥有指定特性的所有宝可梦。在线API没有反向索引,而本工具只需对本地存储执行一次SQL查询即可完成。
pokemon by-ability当智能体需要枚举具有特定特性的宝可梦,且无需调用数千次API时,可使用此命令。bashpokeapi-pp-cli pokemon by-ability levitate --json --select name,types -
— 按状态效果、伤害类型、属性或目标查找技能,例如所有能使钢属性宝可梦麻痹的技能。
move find适用于以效果而非技能名称为核心的对战规划问题。bashpokeapi-pp-cli move find --effect paralyze --type-target steel --json -
— 基于已有的队伍,对剩余所有宝可梦进行评分,找出最能弥补队伍属性短板的候选宝可梦,并返回排名靠前的结果。
team suggest最适合需要客观属性短板覆盖评分而非主观推荐的队伍构建智能体。bashpokeapi-pp-cli team suggest pikachu,charizard --slots 6 --json --select name,types,score -
— 比较两只宝可梦(通常是地区形态或超级进化形态)的技能学习列表,展示各自独有的技能。
pokemon diff-learnset当智能体需要用具体的技能证据论证“为何选择形态X而非形态Y”时,可使用此命令。bashpokeapi-pp-cli pokemon diff-learnset charizard charizard-mega-x --json -
— 展示宝可梦在各世代中的变化:属性变更、种族值变更、特性变更以及它首次登场的世代。
pokemon history适用于回答宝可梦历史相关问题(如“胖丁一直是妖精属性吗?”)。bashpokeapi-pp-cli pokemon history clefairy --json -
— 列出某一宝可梦物种的所有形态(如六尾与阿罗拉六尾),并附带属性、种族值和特性的差异信息。
pokemon forms当智能体需要获取某一物种的整体信息而非单一形态数据时,可使用此命令。bashpokeapi-pp-cli pokemon forms vulpix --json -
— 给定目标宝可梦,展示需要进化的初始物种以及进化所需的条件(道具、等级、亲密度、时间等)。
evolve into当用户知道想要的宝可梦,需要获取进化路径而非反向查询时,可使用此命令。bashpokeapi-pp-cli evolve into umbreon --json -
— 列出当前队伍既无防御抗性也无攻击克制的18种属性。
team gaps适用于回答“敌方队伍最可能利用我方队伍的哪些弱点?”这类问题。bashpokeapi-pp-cli team gaps pikachu,charizard,blastoise --json -
— 生成区域级别的遭遇表,整合地点、区域、遭遇信息和宝可梦物种,展示在指定地区(如关都)可捕获的所有宝可梦。
encounters by-region适用于以地区为核心的问题(如“关都地区能捕获哪些宝可梦?”),而非针对单个宝可梦的查询。bashpokeapi-pp-cli encounters by-region kanto --version red --json
Agent-native plumbing
智能体原生支持
-
— Full-text search across Pokémon, moves, abilities, items, and locations — names plus flavor text — with relevance ranking.
searchAgent fallback when names are partial or fuzzy; replaces multiple list calls + grep.bashpokeapi-pp-cli search "flame" --type move --limit 10 --json -
— Read-only SQL access to the local store. Power users and agents can compose joins the CLI doesn't expose directly.
sqlReach for this when a one-off question doesn't have a dedicated subcommand.bashpokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon' ORDER BY id LIMIT 10" --json
-
— 对宝可梦、技能、特性、道具和地点进行全文搜索,涵盖名称和描述文本,并按相关性排序。
search当名称不完整或模糊时,智能体可使用此命令作为备选方案,替代多次列表调用和grep操作。bashpokeapi-pp-cli search "flame" --type move --limit 10 --json -
— 对本地存储的只读SQL访问权限。高级用户和智能体可编写CLI未直接提供的关联查询。
sql当遇到一次性问题且没有对应的专用子命令时,可使用此命令。bashpokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon' ORDER BY id LIMIT 10" --json
Battle math
对战计算
-
— Compute expected damage range for a move from one Pokémon to another, factoring in STAB, type effectiveness, level, and base stats.
damageReach for this on every battle-planning question framed as 'will it KO?' or 'how hard does X hit Y?'bashpokeapi-pp-cli damage charizard blastoise hydro-pump --level1 50 --level2 50 --json -
— Rank Pokémon by a base stat (attack, special-attack, speed, hp, etc.), optionally filtered by type. Returns the top N.
pokemon topUse when learning the meta or filling a role on a team where the question is 'who's the best X-type at Y?'bashpokeapi-pp-cli pokemon top --by special-attack --type ghost --limit 10 --json
-
— 计算一只宝可梦使用某技能攻击另一只宝可梦的预期伤害范围,考虑本属性加成(STAB)、属性克制、等级和基础种族值。
damage适用于所有以“能否一击必杀?”或“X攻击Y的伤害有多高?”为核心的对战规划问题。bashpokeapi-pp-cli damage charizard blastoise hydro-pump --level1 50 --level2 50 --json -
— 按基础种族值(攻击、特攻、速度、HP等)对宝可梦进行排名,可按属性筛选,返回排名前N的结果。
pokemon top适用于了解对战环境或为队伍填充特定角色的场景,例如“谁是最佳的幽灵属性特攻手?”bashpokeapi-pp-cli pokemon top --by special-attack --type ghost --limit 10 --json
Command Reference
命令参考
ability — Manage ability
- — Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible...
pokeapi-pp-cli ability list - — Abilities provide passive effects for Pokémon in battle or in the overworld. Pokémon have multiple possible...
pokeapi-pp-cli ability retrieve
berry — Manage berry
- — Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage...
pokeapi-pp-cli berry list - — Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage...
pokeapi-pp-cli berry retrieve
berry-firmness — Manage berry firmness
- — Berries can be soft or hard. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmne...
pokeapi-pp-cli berry-firmness list - — Berries can be soft or hard. Check out [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmne...
pokeapi-pp-cli berry-firmness retrieve
berry-flavor — Manage berry flavor
- — Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their nature. Check out...
pokeapi-pp-cli berry-flavor list - — Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their nature. Check out...
pokeapi-pp-cli berry-flavor retrieve
characteristic — Manage characteristic
- — Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by...
pokeapi-pp-cli characteristic list - — Characteristics indicate which stat contains a Pokémon's highest IV. A Pokémon's Characteristic is determined by...
pokeapi-pp-cli characteristic retrieve
contest-effect — Manage contest effect
- — Contest effects refer to the effects of moves when used in contests.
pokeapi-pp-cli contest-effect list - — Contest effects refer to the effects of moves when used in contests.
pokeapi-pp-cli contest-effect retrieve
contest-type — Manage contest type
- — Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests. Check out...
pokeapi-pp-cli contest-type list - — Contest types are categories judges used to weigh a Pokémon's condition in Pokémon contests. Check out...
pokeapi-pp-cli contest-type retrieve
egg-group — Manage egg group
- — Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one...
pokeapi-pp-cli egg-group list - — Egg Groups are categories which determine which Pokémon are able to interbreed. Pokémon may belong to either one...
pokeapi-pp-cli egg-group retrieve
encounter-condition — Manage encounter condition
- — Conditions which affect what pokemon might appear in the wild, e.g., day or night.
pokeapi-pp-cli encounter-condition list - — Conditions which affect what pokemon might appear in the wild, e.g., day or night.
pokeapi-pp-cli encounter-condition retrieve
encounter-condition-value — Manage encounter condition value
- — Encounter condition values are the various states that an encounter condition can have, i.e., time of day can be...
pokeapi-pp-cli encounter-condition-value list - — Encounter condition values are the various states that an encounter condition can have, i.e., time of day can be...
pokeapi-pp-cli encounter-condition-value retrieve
encounter-method — Manage encounter method
- — Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. Check out...
pokeapi-pp-cli encounter-method list - — Methods by which the player might can encounter Pokémon in the wild, e.g., walking in tall grass. Check out...
pokeapi-pp-cli encounter-method retrieve
evolution-chain — Manage evolution chain
- — Evolution chains are essentially family trees. They start with the lowest stage within a family and detail evolution...
pokeapi-pp-cli evolution-chain list - — Evolution chains are essentially family trees. They start with the lowest stage within a family and detail evolution...
pokeapi-pp-cli evolution-chain retrieve
evolution-trigger — Manage evolution trigger
- — Evolution triggers are the events and conditions that cause a Pokémon to evolve. Check out...
pokeapi-pp-cli evolution-trigger list - — Evolution triggers are the events and conditions that cause a Pokémon to evolve. Check out...
pokeapi-pp-cli evolution-trigger retrieve
gender — Manage gender
- — Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual...
pokeapi-pp-cli gender list - — Genders were introduced in Generation II for the purposes of breeding Pokémon but can also result in visual...
pokeapi-pp-cli gender retrieve
generation — Manage generation
- — A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each...
pokeapi-pp-cli generation list - — A generation is a grouping of the Pokémon games that separates them based on the Pokémon they include. In each...
pokeapi-pp-cli generation retrieve
growth-rate — Manage growth rate
- — Growth rates are the speed with which Pokémon gain levels through experience. Check out...
pokeapi-pp-cli growth-rate list - — Growth rates are the speed with which Pokémon gain levels through experience. Check out...
pokeapi-pp-cli growth-rate retrieve
item — An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area.
- — An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have...
pokeapi-pp-cli item list - — An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have...
pokeapi-pp-cli item retrieve
item-attribute — Manage item attribute
- — Item attributes define particular aspects of items, e.g.'usable in battle' or 'consumable'.
pokeapi-pp-cli item-attribute list - — Item attributes define particular aspects of items, e.g.'usable in battle' or 'consumable'.
pokeapi-pp-cli item-attribute retrieve
item-category — Manage item category
- — Item categories determine where items will be placed in the players bag.
pokeapi-pp-cli item-category list - — Item categories determine where items will be placed in the players bag.
pokeapi-pp-cli item-category retrieve
item-fling-effect — Manage item fling effect
- — The various effects of the move'Fling' when used with different items.
pokeapi-pp-cli item-fling-effect list - — The various effects of the move'Fling' when used with different items.
pokeapi-pp-cli item-fling-effect retrieve
item-pocket — Manage item pocket
- — Pockets within the players bag used for storing items by category.
pokeapi-pp-cli item-pocket list - — Pockets within the players bag used for storing items by category.
pokeapi-pp-cli item-pocket retrieve
language — Manage language
- — Languages for translations of API resource information.
pokeapi-pp-cli language list - — Languages for translations of API resource information.
pokeapi-pp-cli language retrieve
location — Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes.
- — Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes.
pokeapi-pp-cli location list - — Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes.
pokeapi-pp-cli location retrieve
location-area — Manage location area
- — Location areas are sections of areas, such as floors in a building or cave. Each area has its own set of possible...
pokeapi-pp-cli location-area list - — Location areas are sections of areas, such as floors in a building or cave. Each area has its own set of possible...
pokeapi-pp-cli location-area retrieve
machine — Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine.
- — Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is...
pokeapi-pp-cli machine list - — Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is...
pokeapi-pp-cli machine retrieve
meta — Manage meta
- — Returns metadata about the current deployed version of the API, including the git commit hash, deploy date, and tag...
pokeapi-pp-cli meta
move — Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.
- — Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including...
pokeapi-pp-cli move list - — Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including...
pokeapi-pp-cli move retrieve
move-ailment — Manage move ailment
- — Move Ailments are status conditions caused by moves used during battle. See...
pokeapi-pp-cli move-ailment list - — Move Ailments are status conditions caused by moves used during battle. See...
pokeapi-pp-cli move-ailment retrieve
move-battle-style — Manage move battle style
- — Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Fronti...
pokeapi-pp-cli move-battle-style list - — Styles of moves when used in the Battle Palace. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Fronti...
pokeapi-pp-cli move-battle-style retrieve
move-category — Manage move category
- — Very general categories that loosely group move effects.
pokeapi-pp-cli move-category list - — Very general categories that loosely group move effects.
pokeapi-pp-cli move-category retrieve
move-damage-class — Manage move damage class
- — Damage classes moves can have, e.g. physical, special, or non-damaging.
pokeapi-pp-cli move-damage-class list - — Damage classes moves can have, e.g. physical, special, or non-damaging.
pokeapi-pp-cli move-damage-class retrieve
move-learn-method — Manage move learn method
- — Methods by which Pokémon can learn moves.
pokeapi-pp-cli move-learn-method list - — Methods by which Pokémon can learn moves.
pokeapi-pp-cli move-learn-method retrieve
move-target — Manage move target
- — Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
pokeapi-pp-cli move-target list - — Targets moves can be directed at during battle. Targets can be Pokémon, environments or even other moves.
pokeapi-pp-cli move-target retrieve
nature — Manage nature
- — Natures influence how a Pokémon's stats grow. See Bulbapedia for...
pokeapi-pp-cli nature list - — Natures influence how a Pokémon's stats grow. See Bulbapedia for...
pokeapi-pp-cli nature retrieve
pal-park-area — Manage pal park area
- — Areas used for grouping Pokémon encounters in Pal Park. They're like habitats that are specific to Pal Park.
pokeapi-pp-cli pal-park-area list - — Areas used for grouping Pokémon encounters in Pal Park. They're like habitats that are specific to Pal Park.
pokeapi-pp-cli pal-park-area retrieve
pokeathlon-stat — Manage pokeathlon stat
- — Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions...
pokeapi-pp-cli pokeathlon-stat list - — Pokeathlon Stats are different attributes of a Pokémon's performance in Pokéathlons. In Pokéathlons, competitions...
pokeapi-pp-cli pokeathlon-stat retrieve
pokedex — Manage pokedex
- — A Pokédex is a handheld electronic encyclopedia device; one which is capable of recording and retaining information...
pokeapi-pp-cli pokedex list - — A Pokédex is a handheld electronic encyclopedia device; one which is capable of recording and retaining information...
pokeapi-pp-cli pokedex retrieve
pokemon — Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See Bulbapedia for greater detail.
- — Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and...
pokeapi-pp-cli pokemon list - — Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and...
pokeapi-pp-cli pokemon retrieve
pokemon-color — Manage pokemon color
- — Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent...
pokeapi-pp-cli pokemon-color list - — Colors used for sorting Pokémon in a Pokédex. The color listed in the Pokédex is usually the color most apparent...
pokeapi-pp-cli pokemon-color retrieve
pokemon-form — Manage pokemon form
- — Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For...
pokeapi-pp-cli pokemon-form list - — Some Pokémon may appear in one of multiple, visually different forms. These differences are purely cosmetic. For...
pokeapi-pp-cli pokemon-form retrieve
pokemon-habitat — Manage pokemon habitat
- — Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or...
pokeapi-pp-cli pokemon-habitat list - — Habitats are generally different terrain Pokémon can be found in but can also be areas designated for rare or...
pokeapi-pp-cli pokemon-habitat retrieve
pokemon-shape — Manage pokemon shape
- — Shapes used for sorting Pokémon in a Pokédex.
pokeapi-pp-cli pokemon-shape list - — Shapes used for sorting Pokémon in a Pokédex.
pokeapi-pp-cli pokemon-shape retrieve
pokemon-species — Manage pokemon species
- — A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all...
pokeapi-pp-cli pokemon-species list - — A Pokémon Species forms the basis for at least one Pokémon. Attributes of a Pokémon species are shared across all...
pokeapi-pp-cli pokemon-species retrieve
region — Manage region
- — A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species...
pokeapi-pp-cli region list - — A region is an organized area of the Pokémon world. Most often, the main difference between regions is the species...
pokeapi-pp-cli region retrieve
stat — Manage stat
- — Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels...
pokeapi-pp-cli stat list - — Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels...
pokeapi-pp-cli stat retrieve
super-contest-effect — Manage super contest effect
- — Super contest effects refer to the effects of moves when used in super contests.
pokeapi-pp-cli super-contest-effect list - — Super contest effects refer to the effects of moves when used in super contests.
pokeapi-pp-cli super-contest-effect retrieve
type — Manage type
- — Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is...
pokeapi-pp-cli type list - — Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is...
pokeapi-pp-cli type retrieve
version — Manage version
- — Versions of the games, e.g., Red, Blue or Yellow.
pokeapi-pp-cli version game-list - — Versions of the games, e.g., Red, Blue or Yellow.
pokeapi-pp-cli version game-retrieve
version-group — Manage version group
- — Version groups categorize highly similar versions of the games.
pokeapi-pp-cli version-group list - — Version groups categorize highly similar versions of the games.
pokeapi-pp-cli version-group retrieve
ability — 管理特性
- — 特性可为宝可梦在对战或野外提供被动效果。一只宝可梦可能拥有多种可选...
pokeapi-pp-cli ability list - — 特性可为宝可梦在对战或野外提供被动效果。一只宝可梦可能拥有多种可选...
pokeapi-pp-cli ability retrieve
berry — 管理树果
- — 树果是小型果实,可用于恢复HP、解除状态、提升种族值,甚至造成伤害...
pokeapi-pp-cli berry list - — 树果是小型果实,可用于恢复HP、解除状态、提升种族值,甚至造成伤害...
pokeapi-pp-cli berry retrieve
berry-firmness — 管理树果硬度
- — 树果有软硬之分。详情可查看[Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmne...
pokeapi-pp-cli berry-firmness list - — 树果有软硬之分。详情可查看[Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Category:Berries_by_firmne...
pokeapi-pp-cli berry-firmness retrieve
berry-flavor — 管理树果口味
- — 口味决定宝可梦食用树果后是受益还是受损,这取决于宝可梦的性格。详情可查看...
pokeapi-pp-cli berry-flavor list - — 口味决定宝可梦食用树果后是受益还是受损,这取决于宝可梦的性格。详情可查看...
pokeapi-pp-cli berry-flavor retrieve
characteristic — 管理个体值特征
- — 个体值特征用于指示宝可梦哪项种族值拥有最高的个体值(IV)。宝可梦的个体值特征由...
pokeapi-pp-cli characteristic list - — 个体值特征用于指示宝可梦哪项种族值拥有最高的个体值(IV)。宝可梦的个体值特征由...
pokeapi-pp-cli characteristic retrieve
contest-effect — 管理华丽大赛效果
- — 华丽大赛效果指技能在华丽大赛中使用时产生的效果。
pokeapi-pp-cli contest-effect list - — 华丽大赛效果指技能在华丽大赛中使用时产生的效果。
pokeapi-pp-cli contest-effect retrieve
contest-type — 管理华丽大赛类型
- — 华丽大赛类型是评委在宝可梦华丽大赛中评估宝可梦状态的分类标准。详情可查看...
pokeapi-pp-cli contest-type list - — 华丽大赛类型是评委在宝可梦华丽大赛中评估宝可梦状态的分类标准。详情可查看...
pokeapi-pp-cli contest-type retrieve
egg-group — 管理蛋群
- — 蛋群是用于确定宝可梦能否繁殖的分类。一只宝可梦可能属于一个或两个...
pokeapi-pp-cli egg-group list - — 蛋群是用于确定宝可梦能否繁殖的分类。一只宝可梦可能属于一个或两个...
pokeapi-pp-cli egg-group retrieve
encounter-condition — 管理遭遇条件
- — 影响野生宝可梦出现的条件,例如白天或黑夜。
pokeapi-pp-cli encounter-condition list - — 影响野生宝可梦出现的条件,例如白天或黑夜。
pokeapi-pp-cli encounter-condition retrieve
encounter-condition-value — 管理遭遇条件值
- — 遭遇条件值是遭遇条件可能存在的各种状态,例如时间可分为...
pokeapi-pp-cli encounter-condition-value list - — 遭遇条件值是遭遇条件可能存在的各种状态,例如时间可分为...
pokeapi-pp-cli encounter-condition-value retrieve
encounter-method — 管理遭遇方式
- — 玩家在野外遭遇宝可梦的方式,例如在草丛中行走。详情可查看...
pokeapi-pp-cli encounter-method list - — 玩家在野外遭遇宝可梦的方式,例如在草丛中行走。详情可查看...
pokeapi-pp-cli encounter-method retrieve
evolution-chain — 管理进化链
- — 进化链本质上是宝可梦的家族树。从家族中最低进化阶段开始,详细描述进化...
pokeapi-pp-cli evolution-chain list - — 进化链本质上是宝可梦的家族树。从家族中最低进化阶段开始,详细描述进化...
pokeapi-pp-cli evolution-chain retrieve
evolution-trigger — 管理进化触发条件
- — 进化触发条件是导致宝可梦进化的事件和条件。详情可查看...
pokeapi-pp-cli evolution-trigger list - — 进化触发条件是导致宝可梦进化的事件和条件。详情可查看...
pokeapi-pp-cli evolution-trigger retrieve
gender — 管理性别
- — 性别在第二世代引入,主要用于宝可梦繁殖,也可能导致外观差异...
pokeapi-pp-cli gender list - — 性别在第二世代引入,主要用于宝可梦繁殖,也可能导致外观差异...
pokeapi-pp-cli gender retrieve
generation — 管理世代
- — 世代是宝可梦游戏的分组,根据游戏包含的宝可梦进行划分。在每个...
pokeapi-pp-cli generation list - — 世代是宝可梦游戏的分组,根据游戏包含的宝可梦进行划分。在每个...
pokeapi-pp-cli generation retrieve
growth-rate — 管理成长率
- — 成长率是宝可梦通过经验值升级的速度。详情可查看...
pokeapi-pp-cli growth-rate list - — 成长率是宝可梦通过经验值升级的速度。详情可查看...
pokeapi-pp-cli growth-rate retrieve
item — 道具是游戏中玩家可以拾取、放入背包并使用的物品,用途多样,包括恢复HP、提升能力、帮助捕获宝可梦或解锁新区域。
- — 道具是游戏中玩家可以拾取、放入背包并使用的物品,用途多样,包括...
pokeapi-pp-cli item list - — 道具是游戏中玩家可以拾取、放入背包并使用的物品,用途多样,包括...
pokeapi-pp-cli item retrieve
item-attribute — 管理道具属性
- — 道具属性定义了道具的特定方面,例如“可在对战中使用”或“可消耗”。
pokeapi-pp-cli item-attribute list - — 道具属性定义了道具的特定方面,例如“可在对战中使用”或“可消耗”。
pokeapi-pp-cli item-attribute retrieve
item-category — 管理道具分类
- — 道具分类决定了道具在玩家背包中的存放位置。
pokeapi-pp-cli item-category list - — 道具分类决定了道具在玩家背包中的存放位置。
pokeapi-pp-cli item-category retrieve
item-fling-effect — 管理投掷道具效果
- — 使用“投掷”技能时,不同道具产生的各种效果。
pokeapi-pp-cli item-fling-effect list - — 使用“投掷”技能时,不同道具产生的各种效果。
pokeapi-pp-cli item-fling-effect retrieve
item-pocket — 管理道具背包栏
- — 玩家背包中用于按分类存放道具的栏位。
pokeapi-pp-cli item-pocket list - — 玩家背包中用于按分类存放道具的栏位。
pokeapi-pp-cli item-pocket retrieve
language — 管理语言
- — API资源信息的翻译语言。
pokeapi-pp-cli language list - — API资源信息的翻译语言。
pokeapi-pp-cli language retrieve
location — 游戏中可访问的地点,构成了地区的主要部分,例如城市或道路。
- — 游戏中可访问的地点,构成了地区的主要部分,例如城市或道路。
pokeapi-pp-cli location list - — 游戏中可访问的地点,构成了地区的主要部分,例如城市或道路。
pokeapi-pp-cli location retrieve
location-area — 管理区域地点
- — 区域地点是大区域的子部分,例如建筑或洞穴的楼层。每个区域都有自己的可能...
pokeapi-pp-cli location-area list - — 区域地点是大区域的子部分,例如建筑或洞穴的楼层。每个区域都有自己的可能...
pokeapi-pp-cli location-area retrieve
machine — 机器是代表可教授宝可梦技能的道具,不同版本的游戏中机器可能不同,因此无法确定某个特定的TM或HM对应唯一的机器。
- — 机器是代表可教授宝可梦技能的道具,不同版本的游戏中机器可能不同,因此无法...
pokeapi-pp-cli machine list - — 机器是代表可教授宝可梦技能的道具,不同版本的游戏中机器可能不同,因此无法...
pokeapi-pp-cli machine retrieve
meta — 管理元数据
- — 返回当前部署的API版本的元数据,包括Git提交哈希、部署日期和标签...
pokeapi-pp-cli meta
move — 技能是宝可梦在对战中的招式。对战中,每只宝可梦每回合可使用一个技能。部分技能(包括秘传学习器技能)也可在对战外使用,通常用于清除障碍物或探索新区域。
- — 技能是宝可梦在对战中的招式。对战中,每只宝可梦每回合可使用一个技能。部分技能(包括...
pokeapi-pp-cli move list - — 技能是宝可梦在对战中的招式。对战中,每只宝可梦每回合可使用一个技能。部分技能(包括...
pokeapi-pp-cli move retrieve
move-ailment — 管理技能异常状态
- — 技能异常状态是对战中使用技能导致的状态条件。详情可查看...
pokeapi-pp-cli move-ailment list - — 技能异常状态是对战中使用技能导致的状态条件。详情可查看...
pokeapi-pp-cli move-ailment retrieve
move-battle-style — 管理对战宫殿技能风格
- — 技能在对战宫殿中使用时的风格。详情可查看[Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Fronti...
pokeapi-pp-cli move-battle-style list - — 技能在对战宫殿中使用时的风格。详情可查看[Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Battle_Fronti...
pokeapi-pp-cli move-battle-style retrieve
move-category — 管理技能分类
- — 用于大致归类技能效果的通用分类。
pokeapi-pp-cli move-category list - — 用于大致归类技能效果的通用分类。
pokeapi-pp-cli move-category retrieve
move-damage-class — 管理技能伤害类型
- — 技能可拥有的伤害类型,例如物理、特殊或无伤害。
pokeapi-pp-cli move-damage-class list - — 技能可拥有的伤害类型,例如物理、特殊或无伤害。
pokeapi-pp-cli move-damage-class retrieve
move-learn-method — 管理技能学习方式
- — 宝可梦学习技能的方式。
pokeapi-pp-cli move-learn-method list - — 宝可梦学习技能的方式。
pokeapi-pp-cli move-learn-method retrieve
move-target — 管理技能目标
- — 对战中技能可指向的目标,包括宝可梦、环境甚至其他技能。
pokeapi-pp-cli move-target list - — 对战中技能可指向的目标,包括宝可梦、环境甚至其他技能。
pokeapi-pp-cli move-target retrieve
nature — 管理性格
- — 性格影响宝可梦种族值的成长。详情可查看Bulbapedia...
pokeapi-pp-cli nature list - — 性格影响宝可梦种族值的成长。详情可查看Bulbapedia...
pokeapi-pp-cli nature retrieve
pal-park-area — 管理乐园区域
- — 用于在乐园中分组宝可梦遭遇的区域,类似于乐园专属的栖息地。
pokeapi-pp-cli pal-park-area list - — 用于在乐园中分组宝可梦遭遇的区域,类似于乐园专属的栖息地。
pokeapi-pp-cli pal-park-area retrieve
pokeathlon-stat — 管理宝可梦大赛属性
- — 宝可梦大赛属性是宝可梦在宝可梦大赛中的不同表现属性。在宝可梦大赛中,比赛...
pokeapi-pp-cli pokeathlon-stat list - — 宝可梦大赛属性是宝可梦在宝可梦大赛中的不同表现属性。在宝可梦大赛中,比赛...
pokeapi-pp-cli pokeathlon-stat retrieve
pokedex — 管理图鉴
- — 宝可梦图鉴是一种手持电子百科设备,能够记录和保存宝可梦的信息...
pokeapi-pp-cli pokedex list - — 宝可梦图鉴是一种手持电子百科设备,能够记录和保存宝可梦的信息...
pokeapi-pp-cli pokedex retrieve
pokemon — 宝可梦是栖息在宝可梦游戏世界中的生物,可通过精灵球捕获,并通过与其他宝可梦对战进行训练。每只宝可梦属于特定的物种,但可能存在变种,使其与同物种的其他宝可梦在基础种族值、可用特性和属性上有所不同。详情可查看Bulbapedia。
- — 宝可梦是栖息在宝可梦游戏世界中的生物,可通过精灵球捕获,并...
pokeapi-pp-cli pokemon list - — 宝可梦是栖息在宝可梦游戏世界中的生物,可通过精灵球捕获,并...
pokeapi-pp-cli pokemon retrieve
pokemon-color — 管理宝可梦颜色
- — 用于在图鉴中对宝可梦进行分类的颜色,通常是宝可梦最明显的颜色...
pokeapi-pp-cli pokemon-color list - — 用于在图鉴中对宝可梦进行分类的颜色,通常是宝可梦最明显的颜色...
pokeapi-pp-cli pokemon-color retrieve
pokemon-form — 管理宝可梦形态
- — 部分宝可梦可能有多种外观不同的形态,这些差异仅为 cosmetic(外观)层面。详情可查看...
pokeapi-pp-cli pokemon-form list - — 部分宝可梦可能有多种外观不同的形态,这些差异仅为 cosmetic(外观)层面。详情可查看...
pokeapi-pp-cli pokemon-form retrieve
pokemon-habitat — 管理宝可梦栖息地
- — 栖息地通常是宝可梦可出现的不同地形,也可能是稀有宝可梦的专属区域...
pokeapi-pp-cli pokemon-habitat list - — 栖息地通常是宝可梦可出现的不同地形,也可能是稀有宝可梦的专属区域...
pokeapi-pp-cli pokemon-habitat retrieve
pokemon-shape — 管理宝可梦外形
- — 用于在图鉴中对宝可梦进行分类的外形。
pokeapi-pp-cli pokemon-shape list - — 用于在图鉴中对宝可梦进行分类的外形。
pokeapi-pp-cli pokemon-shape retrieve
pokemon-species — 管理宝可梦物种
- — 宝可梦物种是至少一只宝可梦的基础,同一物种的所有宝可梦共享物种属性...
pokeapi-pp-cli pokemon-species list - — 宝可梦物种是至少一只宝可梦的基础,同一物种的所有宝可梦共享物种属性...
pokeapi-pp-cli pokemon-species retrieve
region — 管理地区
- — 地区是宝可梦世界中的有组织区域,不同地区的主要区别在于包含的宝可梦物种...
pokeapi-pp-cli region list - — 地区是宝可梦世界中的有组织区域,不同地区的主要区别在于包含的宝可梦物种...
pokeapi-pp-cli region retrieve
stat — 管理种族值
- — 种族值决定了对战的某些方面。每只宝可梦的每项种族值都会随等级提升而增长...
pokeapi-pp-cli stat list - — 种族值决定了对战的某些方面。每只宝可梦的每项种族值都会随等级提升而增长...
pokeapi-pp-cli stat retrieve
super-contest-effect — 管理超级华丽大赛效果
- — 超级华丽大赛效果指技能在超级华丽大赛中使用时产生的效果。
pokeapi-pp-cli super-contest-effect list - — 超级华丽大赛效果指技能在超级华丽大赛中使用时产生的效果。
pokeapi-pp-cli super-contest-effect retrieve
type — 管理属性
- — 属性是宝可梦及其技能的特性,每种属性具有三个特性:克制哪些属性的宝可梦、被哪些属性克制、对哪些属性无效...
pokeapi-pp-cli type list - — 属性是宝可梦及其技能的特性,每种属性具有三个特性:克制哪些属性的宝可梦、被哪些属性克制、对哪些属性无效...
pokeapi-pp-cli type retrieve
version — 管理游戏版本
- — 游戏版本,例如红、蓝或黄。
pokeapi-pp-cli version game-list - — 游戏版本,例如红、蓝或黄。
pokeapi-pp-cli version game-retrieve
version-group — 管理版本组
- — 版本组用于对高度相似的游戏版本进行分类。
pokeapi-pp-cli version-group list - — 版本组用于对高度相似的游戏版本进行分类。
pokeapi-pp-cli version-group retrieve
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
pokeapi-pp-cli which "<capability in your own words>"which02--help当你知道要做什么但不知道对应的命令时,可直接询问CLI:
bash
pokeapi-pp-cli which "<用你自己的语言描述功能>"which02--helpRecipes
使用示例
What does my team leave exposed?
我的队伍存在哪些属性短板?
bash
pokeapi-pp-cli team gaps pikachu,charizard,blastoise --jsonReturns every type your team has neither resistance nor super-effective answer for. One local join.
bash
pokeapi-pp-cli team gaps pikachu,charizard,blastoise --json返回队伍既无抗性也无克制的所有属性,仅需一次本地关联查询。
Reverse-search by effect
按效果反向搜索技能
bash
pokeapi-pp-cli move find --effect paralyze --type-target steel --json --select name,type,power,accuracyFind paralyzing moves that hit Steel — using --select to keep the response narrow for agent context.
bash
pokeapi-pp-cli move find --effect paralyze --type-target steel --json --select name,type,power,accuracy查找可麻痹钢属性宝可梦的技能,使用参数缩小响应范围,便于智能体处理上下文。
--selectTrim a profile to just what an agent needs
精简宝可梦信息至智能体所需内容
bash
pokeapi-pp-cli pokemon profile pikachu --json --select name,types,stats.hp,stats.attack,abilitiesUse --select with dotted paths to pluck only high-gravity fields out of a deeply nested response — keeps the agent's context light.
bash
pokeapi-pp-cli pokemon profile pikachu --json --select name,types,stats.hp,stats.attack,abilities使用和点路径从深层嵌套的响应中提取关键字段,减轻智能体的上下文负担。
--selectCompare two regional forms
比较两种地区形态
bash
pokeapi-pp-cli pokemon diff-learnset vulpix vulpix-alola --jsonSide-by-side learnset diff between Vulpix and Alolan Vulpix. One local query instead of two full API fetches.
bash
pokeapi-pp-cli pokemon diff-learnset vulpix vulpix-alola --json对比六尾与阿罗拉六尾的技能学习列表差异,仅需一次本地查询,无需两次完整的API请求。
Custom join via SQL
通过SQL自定义关联查询
bash
pokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon-species' ORDER BY id LIMIT 10" --jsonDrop down to raw SQL when there's no first-class command — read-only, direct local-store access.
bash
pokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon-species' ORDER BY id LIMIT 10" --json当没有专用命令时,可直接使用原生SQL查询,提供对本地存储的只读直接访问权限。
Auth Setup
认证设置
No authentication required.
Run to verify setup.
pokeapi-pp-cli doctor无需认证。
执行验证设置是否正确。
pokeapi-pp-cli doctorAgent Mode
智能体模式
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:
--selectbashpokeapi-pp-cli ability list --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,这是缩小上下文范围的关键:
--selectbashpokeapi-pp-cli ability list --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还是本地存储。当标准输出为终端时,仅会在标准错误输出打印人类可读的摘要;管道传输或智能体消费时,标准输出仅返回纯JSON。
.results.meta.sourceN results (live)Agent Feedback
智能体反馈
When you (or the agent) notice something off about this CLI, record it:
pokeapi-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
pokeapi-pp-cli feedback --stdin < notes.txt
pokeapi-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.
~/.pokeapi-pp-cli/feedback.jsonlPOKEAPI_FEEDBACK_ENDPOINT--sendPOKEAPI_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或智能体)发现本CLI存在问题时,可记录反馈:
pokeapi-pp-cli feedback "--since参数是包含性的,但文档说是排他性的"
pokeapi-pp-cli feedback --stdin < notes.txt
pokeapi-pp-cli feedback list --json --limit 10反馈条目存储在本地文件中,仅当设置了且传递了参数或设置时,才会发送反馈。默认仅存储在本地。
~/.pokeapi-pp-cli/feedback.jsonlPOKEAPI_FEEDBACK_ENDPOINT--sendPOKEAPI_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.
pokeapi-pp-cli profile save briefing --json
pokeapi-pp-cli --profile briefing ability list
pokeapi-pp-cli profile list --json
pokeapi-pp-cli profile show briefing
pokeapi-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”模式)。
pokeapi-pp-cli profile save briefing --json
pokeapi-pp-cli --profile briefing ability list
pokeapi-pp-cli profile list --json
pokeapi-pp-cli profile show briefing
pokeapi-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--helpoutputpokeapi-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的输出pokeapi-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/media-and-entertainment/pokeapi/cmd/pokeapi-pp-mcp@latest - Register with Claude Code:
bash
claude mcp add pokeapi-pp-mcp -- pokeapi-pp-mcp - Verify:
claude mcp list
- 安装MCP服务器:
bash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/pokeapi/cmd/pokeapi-pp-mcp@latest - 在Claude Code中注册:
bash
claude mcp add pokeapi-pp-mcp -- pokeapi-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 pokeapi-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashpokeapi-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
pokeapi-pp-cli <command> --help
- 检查是否安装:若未找到,提供安装选项(参考顶部的前提条件部分)。
which pokeapi-pp-cli - 将用户查询与上述独特功能和命令参考中最匹配的命令对应。
- 添加参数执行命令:
--agentbashpokeapi-pp-cli <command> [subcommand] [args] --agent - 若存在歧义,查看子命令帮助:。
pokeapi-pp-cli <command> --help