@nests-0406445/group-a-cli
v0.3.0
Published
CLI for Group A Open API integrations
Downloads
90
Readme
Group A CLI
Command-line wrapper for Group A Open API integration calls.
Install
Install before using the task commands:
npm install -g @nests-0406445/group-a-cli
# or
npx @nests-0406445/group-a-cli@latest doctorFor local development before publishing, install from this repository:
npm install -g ./cli/group-a-cliConfiguration
Create an env file instead of exporting process environment variables:
GROUPA_BASE_URL=http://localhost:6820
GROUPA_OPEN_API_KEY=laf_xxx
GROUPA_ADMIN_TOKEN=eyJ...
GROUPA_TIMEOUT_MS=30000Use it with --env-file:
groupa --env-file ./groupa.env open agents list --json
groupa --env-file ./groupa.env open tasks list --room-id ROOM_ID --status in_progress --json
groupa --env-file ./groupa.env open agents chat AGENT_ID --message "你好" --jsonDefault config lookup order:
--env-file./.groupa.env./.config/groupa.env~/.config/group-a-cli/env
Release
The release script runs tests, previews the npm package, starts npm login when the current registry is not logged in, then publishes.
cd cli/group-a-cli
npm run release:dry-run
npm run release
npm run release -- --otp 123456