For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI

The Arenas CLI scripts the same flows as the API and SDK from a terminal or CI — useful for market operations, monitoring, and automation.


Configuration

The CLI is scoped to an arena the same way the API is — with an arenaKey — plus a signer for write operations:

Setting
Purpose

ARENA_KEY

Scopes reads/writes to your arena.

ARENAS_API

API base URL (see your arena’s /swagger).

Signer key / keystore

Required only for write commands (transactions).

Keep signer material in environment variables or a keystore — never commit it.


What you can do

Read operations mirror the API surface:

  • List markets, pools, financings, and per-account positions.

  • Inspect requests and their status, and pending intents.

  • Check indexer sync (last-synced-blocks) after writes.

Write operations mirror the role flows (each is an on-chain transaction):

Role
Actions

Borrower

request · modify · close · receive · repay

Approver

approve · decline

LP

deposit · create-withdraw · execute-withdraw

See Embed Credit, Launch a Market, and Fund Markets for what each action does.


Typical use

Command names above are illustrative. For the exact commands and flags available in your environment, run the CLI’s built-in help, and use the MCP as the authoritative source for flow logic.

Last updated