crowbot/cli
Composer 安装命令:
composer create-project crowbot/cli
包简介
Standalone Crow CLI for reading events, listening for handoffs, and fetching implementation plans.
README 文档
README
Crow CLI is a standalone command-line companion for Crow developer handoffs. It reads queued Crow events, listens for live forwarded events, and fetches implementation-plan handoffs in formats that are ready to paste into an AI coding agent or use directly in a terminal workflow.
The app is built with Laravel Zero and ships as a PHAR-backed crow executable.
Installation
Once the package is published, install it globally with Composer:
composer global require crowbot/cli
Make sure Composer's global bin directory is on your PATH, then verify the install:
crow list
For local development from this repository:
composer install php crow list
The checked-in PHAR build is available at:
./builds/crow list
Authentication
Run the login command and paste a Crow API token:
crow auth login
Credentials are stored at:
~/.crow/config.json
The config file is written with restrictive permissions where the platform supports it. Environment variables remain supported for automation and CI.
Configuration precedence is:
- Explicit command options, such as
--api-tokenor--api-url - Environment variables
~/.crow/config.json- Built-in defaults
Supported environment variables:
CROW_API_URL=https://crow.test/api/v1 CROW_API_TOKEN=your_token_here CROW_APP_ID= CROW_LISTEN_PUBLIC_URL= CROW_LISTEN_HOST=127.0.0.1 CROW_LISTEN_PORT=8787 CROW_LISTEN_SECRET=
The current default API URL is https://crow.test/api/v1.
Commands
Fetch Implementation Plans
List active implementation plans:
crow plan
Fetch a specific plan handoff:
crow plan <plan-id>
Print raw JSON:
crow plan <plan-id> --json
Write output to a file:
crow plan <plan-id> --output=handoff.md
Read Crow Events
Read the latest unread event:
crow read
Read a specific event:
crow read <event-id>
Leave the event unread after printing:
crow read <event-id> --leave-unread
Filter unread lookup by app or event types:
crow read --app-id=123 --events=dispatch.received --events=recon.ready
Listen For Live Events
Start a local listener:
crow listen --public-url=https://your-public-url.example
The listener binds to 127.0.0.1:8787 by default and receives events at:
POST /crow/events
GET /health
Override the bind address:
crow listen --host=127.0.0.1 --port=8787
Start the listener without registering it with Crow:
crow listen --no-register
When registering with Crow, expose the local listener first and set CROW_LISTEN_PUBLIC_URL or pass --public-url.
Compatibility Aliases
The old Artisan-style command names are still available as aliases:
crow crow:plan crow crow:read crow crow:listen
The preferred CLI interface is:
crow plan
crow read
crow listen
Development
Install dependencies:
composer install
Run the test suite:
composer test
Inspect available commands:
php crow list
Build the PHAR:
php crow app:build crow --build-version=unreleased
Smoke-test the built artifact:
./builds/crow plan --help
Release Notes
This repository is now the standalone Crow CLI. It is no longer a Laravel installable package that auto-registers Artisan commands inside a host application.
For Packagist distribution, composer.json points its bin entry at builds/crow, so release builds should include a fresh PHAR artifact.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-07