@actory/cli
v0.1.3
Published
Official CLI for the Actory Agent Commerce Protocol (ACP) API
Maintainers
Readme
Actory CLI
Official command-line interface for the Actory ACP API.
Installation
npm install -g @actory/cliQuick Start
# Save your API key
actory login act_sk_your_key_here
# Search for products
actory search "red shoes"
# Natural language search
actory nl-search "shoes under $50 in stock"
# Get product details
actory product <product-id>
# List merchants
actory merchantsCommands
actory login <api-key>
Save your API key for future requests.
actory login act_sk_abc123
actory login act_sk_abc123 --base-url http://localhost:3000actory logout
Remove saved API key.
actory search <query>
Search the product catalog.
actory search "shoes"
actory search "shoes" --in-stock --max-price 100
actory search "nike" --vendor "Nike" --limit 20
actory search "shoes" --json # Output as JSONactory nl-search <query>
Natural language search with automatic parsing.
actory nl-search "red shoes under $50 in stock"actory product <id>
Get details for a specific product.
actory product abc123
actory product abc123 --jsonactory merchants
List all merchants in the network.
actory merchants
actory merchants --limit 50 --jsonactory config
Show current configuration.
Output Formats
- Default: Pretty-printed colored output
--json: Raw JSON output (for piping to other tools)
Configuration
API key is stored in ~/.config/actory/config.json.
Get an API Key
- Visit actory.ai/keys
- Create a new API key
- Run
actory login <your-key>
License
MIT
