linker-agent-cli
v0.1.5
Published
agentforce CLI for Linker Agent Factory (Agent-first, JSON-native)
Readme
linker-agent-cli — agentforce CLI
Linker Agent Factory 的命令行客户端,用于管理和调用平台上的 AI Agent。
安装
npm install -g linker-agent-cli要求 Node.js >= 20。
快速开始
# 从 Web 端创建 API Key 后登录
agentforce auth login --api-url https://agentforce.item.pub --token laf_xxx
# 查身份
agentforce auth whoami
# 列出所有 Agent
agentforce agent list
# 查看完整配置
agentforce agent get <id> --full
# 声明式更新
agentforce agent get <id> --full > a.yaml
# 编辑 a.yaml 后
agentforce agent apply -f a.yaml
# 流式对话
echo '{"text":"hi"}' | agentforce agent chat <id>输出格式
- 默认输出 JSON / NDJSON,适合脚本和 Agent 调用
--human切换为可读表格- 错误走 stderr,格式为 JSON,带退出码
