Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

icp-cli-usageICP CLI 使用

Agent Skill

icp-cli-usage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

99

周安装

4

GitHub Stars

公开资料未说明

下载量

31
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:icp-cli-usage(ICP CLI 使用)
来源仓库:https://github.com/jorgenbuilder/icp-cli
仓库路径:skills/icp-cli-usage
安装命令:
npx skills add jorgenbuilder/icp-cli --skill "icp-cli-usage"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add jorgenbuilder/icp-cli --skill "icp-cli-usage"

简介

用于查找、检索和筛选 ICP CLI 使用相关信息。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的开发支持。
  • 可结合关键词快速定位命令行工具用法。icp-cli-usage 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 使用前应核对来源仓库和 README,确认功能边界。
  • 注意权限范围和维护状态,避免误用高风险操作。

SKILL.md

ICP CLI Usage

Quick start workflow

Default to these steps unless the user asks for a specific command:

  1. Create a project: icp new my-project
  2. Start local network: icp network start -d
  3. Deploy (builds automatically): icp deploy
  4. Call a method: icp canister call <canister> <method> '(...)'
  5. Verify if needed: icp network status, icp canister status <canister>

Use -e/--environment when the user specifies a target (deploy uses environments; network start uses a network name or -e).

Non-interactive project creation

icp new may prompt for template values and can fail in non-TTY contexts. Use explicit template settings to avoid prompts:

icp new my-project --subfolder hello-world \
  --define backend_type=rust \
  --define frontend_type=react \
  --define network_type=Default

Preflight checks

Use these to confirm the environment quickly:

  • icp --version
  • icp network list
  • icp network status (or icp network ping --wait-healthy)

Command map (common tasks)

  • Project lifecycle: icp new, icp build, icp deploy, icp sync
  • Local network: icp network start|status|ping|stop
  • Canister ops: icp canister create|install|call|status|settings
  • Identities: icp identity new|list|default|principal|import
  • Cycles/tokens: icp cycles balance|mint|transfer, icp token balance|transfer
  • Project config: icp project show

Decision points

  • Local vs mainnet: default to local if unspecified; ask for environment or network if needed.
  • Identity: suggest --identity when multiple identities exist.
  • Install mode: use --mode install|reinstall|upgrade only when user requests it.
  • Arguments: if canister call args are unknown, recommend interactive prompt (omit args).
  • Network conflicts: icp network start accepts a network name or -e; icp deploy uses -e (no -n flag).
  • Environment variables: mention ICP_ENVIRONMENT when the user wants a default.

Troubleshooting local network

  • Port 8000 already in use: local PocketIC binds to localhost:8000. If icp network start fails, check and stop the other process with lsof -i:8000 and kill <PID>.
  • Shutdown: icp network stop (use when finished with local testing).
  • Verify network: icp network status or icp network ping --wait-healthy

Tool calls

Use tool calls to validate the latest CLI help and documentation.

CLI help (preferred when available locally):

{ "tool": "Shell", "command": "icp --help" }
{ "tool": "Shell", "command": "icp canister --help" }
{ "tool": "Shell", "command": "icp network --help" }

Docs pages (when the CLI isn’t available or for citations):

{
  "tool": "WebFetch",
  "url": "https://dfinity.github.io/icp-cli/reference/cli/"
}
{
  "tool": "WebFetch",
  "url": "https://dfinity.github.io/icp-cli/guides/local-development/"
}
{
  "tool": "WebFetch",
  "url": "https://dfinity.github.io/icp-cli/guides/installation/"
}

Repo context (for changes or deeper details):

{ "tool": "WebFetch", "url": "https://github.com/dfinity/icp-cli" }

Responses

When replying to users:

  • Provide the smallest set of commands to accomplish the task.
  • Include flags only when necessary to meet the user’s environment or identity needs.
  • Offer a short "verify" step (e.g., icp network status, icp canister status).
  • Cite official docs or the CLI help when explaining flags or behavior.
  • Ask for missing details only when required: environment/network, canister name, method, and args.

Self-test prompts

Use these to sanity-check outputs:

  • "Start a local network and deploy" → quick start workflow + verify step.
  • "Call a canister method but I don't know args" → omit args to trigger prompt.
  • "Deploy to staging" → use -e staging, avoid -n.
  • "Check cycles and top up" → icp cycles balance + icp canister top-up.

Examples

Create and deploy a project locally

Commands:

icp new hello-icp
cd hello-icp
icp network start -d
icp network status
icp deploy
icp canister call backend greet '("World")'

Create a project non-interactively (CI/non-TTY)

Commands:

icp new hello-icp --subfolder hello-world \
  --define backend_type=rust \
  --define frontend_type=react \
  --define network_type=Default
cd hello-icp
icp network start -d
icp deploy

Check cycles and top up

Commands:

icp cycles balance
icp canister top-up --amount 2t backend

Deploy to a named environment

Commands:

icp deploy -e staging
icp canister status -e staging

Sources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

63.69%
按下载量换算20

Claude Code

24.61%
按下载量换算8

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills