@poldex/cli
v0.0.1
Published
Command-line interface for PolDex agent and developer workflows
Maintainers
Readme
PolDex CLI
Agent-friendly command-line interface for PolDex commercial insurance extraction.
Install
npm install -g @poldex/cliEnvironment
export POLDEX_API_KEY="pd_live_..."
export POLDEX_API_BASE_URL="https://poldex-api.plain-water-cd0f.workers.dev"POLDEX_API_BASE_URL is optional. The production API is used by default.
Commands
poldex schemas --json
poldex schema commercial_gl --json
poldex init --org "Acme Brokerage" --email [email protected] --intended-use "agent extraction"
poldex credits
poldex estimate policy.pdf --schema commercial_gl
poldex extract policy.pdf --schema commercial_gl --yes --json
poldex batch batch_123 --json
poldex job job_123 --json
poldex events --limit 10 --json
poldex download batch_123 combined.csv --out ./combined.csvextract requires --yes because it can spend PolDex credits.
Agent-safe flow
poldex schemas --json
poldex estimate policy.pdf --schema commercial_gl
poldex extract policy.pdf --schema commercial_gl --yes --json
poldex batch batch_123 --json
poldex download batch_123 results.zip --out ./results.zipUse poldex init only when an agent has permission to create a new PolDex API key for an organization.
