@adventurer-tech/guild-cli
v2.0.2
Published
Guild CLI for milestones, iterations, and tickets
Readme
@adventurer-tech/guild-cli
Guild CLI for milestones, iterations, and tickets. Talks to the Adventurer Public API (apps/api) over HTTPS with x-api-key authentication.
Install
Published to npm as @adventurer-tech/guild-cli on each guild-cli release.
# Global
npm install -g @adventurer-tech/guild-cli
# or
pnpm add -g @adventurer-tech/guild-cli
# One-off
npx @adventurer-tech/guild-cli auth statusMonorepo development
pnpm install
pnpm --filter @adventurer-tech/guild-cli run build
cd packages/guild-cli && pnpm link --globalAuthentication
Option A — username/password (local dev, CI, and production CLI automation):
guild auth login --username po --password '<password>'
# or
export GUILD_PASSWORD='<password>'
guild auth login --username poFixture users (po, pm, dev1, …) use password Aa123456! after pnpm db:seed (Stargate auth seed). Production users use their Guild account password. Stargate applies per-account login lockout after repeated failures.
Option B — existing API key from Guild Web (Settings → API Keys):
guild auth login --api-key <key>guild auth status
guild auth logout # 仅清除本机 ~/.config/guild/credentials.json
guild auth logout --revoke # 本机清除 + 服务端注销当前 API keyDefault API URL: https://api.adventurer-next.36node.com. For local API, add --api-url http://localhost:3002.
Credentials are stored at ~/.config/guild/credentials.json (mode 600). Never commit API keys.
Project config
guild config init --project-id <projectId>
guild config showProject config lives in .guild/config.json (safe to commit; no secrets).
Config priority: CLI flags → env vars → .guild/config.json → ~/.config/guild/credentials.json.
| Environment | API URL |
| --- | --- |
| Default (no override) | https://api.adventurer-next.36node.com |
| Local dev | --api-url http://localhost:3002 |
Commands
guild milestone list --json
guild iteration create --title "Sprint 1" --start-at 2026-01-01 --deadline 2026-01-14 --points 40
guild ticket create --type BUG --title "Login failed" --content-file ./bug.md
guild ticket action --no 42 --name takeAPI: POST …/@publish|close|… for ticket state; POST …/actions/@take|submit|… for workflow; PUT …/level|stage|… for associations. See apps/api/docs/custom-verbs.md.
Run guild --help, guild ticket --help, or guild ticket create --help for full option lists.
Output is JSON by default: { "ok": true, "data": ... } or { "ok": false, "error": { "code", "message" } }.
Skills (Cursor Agent)
Skills live in the public repository adventurer-tech/guild-skills:
npx skills add adventurer-tech/guild-skills -y -gMonorepo developers: scripts/setup-guild-skills.sh from the repo root.
Release
Version tags: guild-cli-v1.0.0 → @adventurer-tech/[email protected] on npm.
CLI major versions are independent from the API; see CHANGELOG for compatibility notes.
