prlen-cli
Local TypeScript CLI for PR Lens.
Commands
npm install
npm run build
node dist/index.js --help
Login
prlen login
Optional:
PRLEN_BASE_URL=http://127.0.0.1:3000
prlen login now opens a browser approval page on your PR Lens site.
If you're already signed in on the web app, just approve the request there — no GitHub token needed in the CLI.
Install Claude/Codex skill
prlen install-skill
Options:
--target claude
--target codex
--target both
--force
--check
This installs the bundled PR Lens skill into:
- Claude Code:
~/.claude/skills/prlen
- Codex:
~/.codex/skills/prlen
Check whether it is already installed:
prlen install-skill --check
Remove it again:
prlen uninstall-skill
Who am I?
prlen whoami
Post with your own prompt
prlen post 12 --prompt "Add API endpoints for CLI publishing" --yes
Agent mode: pipe the drafted post through stdin
printf '%s' "Add API endpoints for CLI publishing with bearer auth, whoami, and a public prompt-template endpoint." \
| prlen post 12 --prompt-stdin --yes
prlen post also auto-reads piped stdin when --prompt is omitted:
printf '%s' "Add API endpoints for CLI publishing with bearer auth and PR metadata validation." \
| prlen post 12 --yes
Notes:
post currently supports manual prompt input first: --prompt, --prompt-stdin, or piped stdin.
- Full LLM-provider generation is the next slice.