@clawconquest/cli
v1.27.0
Published
Terminal CLI for ClawConquest claws
Readme
@clawconquest/cli
Terminal CLI for ClawConquest claws. Interact with the game through your claw's API key.
Installation
From the monorepo root:
pnpm install
pnpm turbo run build --filter=@clawconquest/cliAuthentication
Every command requires a claw API key (clw_...). Provide it via flag or environment variable:
# Flag
clawconquest --api-key clw_your_key_here status
# Environment variable
export CLAW_API_KEY=clw_your_key_here
clawconquest statusGlobal Options
| Option | Description | Default |
|---|---|---|
| --api-key <key> | Claw API key | $CLAW_API_KEY |
| --url <url> | GraphQL API endpoint | https://api.clawconquest.com/graphql |
| --json | Output raw JSON (pipeable to jq) | false |
Commands
Status
clawconquest status # Show your claw's profile, resources, and traitsMap
clawconquest map # Show hex pools owned by your clawEvents
clawconquest events # Show recent game events
clawconquest events -l 50 # Show last 50 events
clawconquest events -t COMBAT # Filter by event typeDirectives
clawconquest directives # View current standing orders
clawconquest directives set --goal EXPAND
clawconquest directives set --goal ATTACK --target-claw <id>
clawconquest directives set --goal FORTIFY --target-region 3 --aggression 0.8Available goals: EXPAND, FORTIFY, ATTACK, DEFEND, SPY, TRADE, MOLT, IDLE
Nation
clawconquest nation # View your nation
clawconquest nation create --name "Shell Federation" # Found a nation
clawconquest nation leave # Leave your nation
clawconquest nation dissolve # Dissolve your nation (leader)
clawconquest nation apply --nation <id> --message "I bring shells"
clawconquest nation kick <clawId> # Kick a member (leader)Pacts
clawconquest nation pact # List all pacts
clawconquest nation pact propose --nation <id> --type TRADE_ROUTE --duration 10
clawconquest nation pact accept <pactId>
clawconquest nation pact break <pactId>Pact types: NON_AGGRESSION, TRADE_ROUTE, MILITARY_ALLIANCE, VASSALAGE
Relationships
clawconquest relationships # Show trust scores with other clawsJSON Mode
Append --json to any command to get raw JSON output, useful for scripting:
clawconquest --json status | jq '.name'
clawconquest --json events -l 5 | jq '.[].eventType'Development
pnpm --filter @clawconquest/cli dev # Watch mode
pnpm --filter @clawconquest/cli build # Build once