Skip to main content

Market Settings via CLI

Manage market-wide configuration parameters using the Kamino Manager CLI.
Before starting, complete the CLI Installation & Setup guide. Commands require a .env file with ADMIN and RPC configured.

Download Market Configuration

Export the current market configuration for review or backup.
yarn kamino-manager download-lending-market-config \
  --lending-market <MARKET_ADDRESS>
The config is saved automatically to:
./configs/{MARKET_ADDRESS}/market-{MARKET_ADDRESS}.json
To download the market config together with all associated reserve configs in one command:
yarn kamino-manager download-lending-market-config-and-all-reserves-configs \
  --lending-market <MARKET_ADDRESS>

Update Market Settings

Apply changes to market-level parameters.
1

Download Current Config

yarn kamino-manager download-lending-market-config \
  --lending-market <MARKET_ADDRESS>
2

Edit Config File

Modify the downloaded JSON file at ./configs/{MARKET_ADDRESS}/market-{MARKET_ADDRESS}.json with your desired changes.
3

Preview Changes

yarn kamino-manager update-lending-market-from-config \
  --lending-market <MARKET_ADDRESS> \
  --lending-market-config-path ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json \
  --mode inspect
4

Apply Changes

yarn kamino-manager update-lending-market-from-config \
  --lending-market <MARKET_ADDRESS> \
  --lending-market-config-path ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json \
  --mode execute

Get Complete Market Data

Retrieve a comprehensive view of the market including all reserves, TVL, and current state.
yarn kamino-manager get-market-data \
  --market <MARKET_ADDRESS>

Transfer Market Ownership

Transfer market ownership to a multisig account. See Initial Setup for the full two-step ownership transfer process.

Multisig Mode

For multisig-controlled markets, use --mode multisig on any command:
yarn kamino-manager update-lending-market-from-config \
  --lending-market <MARKET_ADDRESS> \
  --lending-market-config-path ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json \
  --mode multisig

Learn More

For the complete CLI reference, see Market Operations — CLI.