The PokerWorks CLI is internal / coming soon for external developers. It currently ships as a
repo-owned operator command for PokerWorks proof and support workflows, not as a public npm or
npx package.
Closed-beta developers should use the Console and documented HTTP/OpenAPI contracts. Do not clone
the private PokerWorks monorepo as part of a beta integration.
Which key do I use?
pw_test_…Calculation API — Test calculation calls.
pw_live_…Calculation API — Live calculation calls.
pw_mgmt_…Automation & management — Service-account automation and management HTTP contracts. Never calculation calls.
Install
Internal operators run:
Code
pnpm ops:developer-api -- --help
That command requires the private monorepo and repo toolchain. Public CLI packaging is a fast-follow
after closed-beta proof.
Authenticate
Set your management token in the environment. The CLI never touches product calculation keys.
There is no public CLI login flow in closed beta. Create a service-account token in the console, store it in a
secret manager or ignored env file, and pass --operator-env-file <path> for local runs when you do
not want to export it in your shell. Project scoping is enforced by the token's project
restrictions; commands that accept --project-id further narrow the operation.
Common commands
Code
# Read account state visible to the tokenpnpm ops:developer-api -- account# List or create projectspnpm ops:developer-api -- projects listpnpm ops:developer-api -- projects create \ --name "Discord bot sandbox" \ --allowed-origin "https://example.com"# Update project allowed originspnpm ops:developer-api -- projects update \ --project-id devproj_... \ --allowed-origin "https://example.com" \ --allowed-origin "https://admin.example.com"# List, create, and revoke product API keyspnpm ops:developer-api -- keys listpnpm ops:developer-api -- keys create \ --project-id devproj_... \ --environment test \ --label "CI smoke key" \ --scope calculations:readpnpm ops:developer-api -- keys revoke --key-id devkey_...# Read usage, billing, and audit evidencepnpm ops:developer-api -- usage --environment test --project-id devproj_... --limit 25pnpm ops:developer-api -- billingpnpm ops:developer-api -- audit-events --actor-type service_account --target-type developer_api_key# List approved embed products and create a spectator embed sessionpnpm ops:developer-api -- embeds productspnpm ops:developer-api -- embeds sessions create \ --project-id devproj_... \ --environment test \ --product-key pokerdeck-club-demo \ --origin https://club.example.com# Manage webhook endpoints and delivery evidencepnpm ops:developer-api -- webhooks endpoints create \ --project-id devproj_... \ --environment test \ --label "Discord announcements" \ --url https://bot.example.com/pokerworks/webhookspnpm ops:developer-api -- webhooks deliveries list --project-id devproj_... --environment test
Proof commands intentionally require --confirm-billable-call because they create a temporary
product key and run one metered calculation: