Skip to main content

Reserve Management via CLI

Manage individual reserve configurations within your lending market.
Before starting, complete the CLI Installation & Setup guide. Commands require a .env file with ADMIN and RPC configured.

Download Reserve Configuration

Download the current configuration for an existing reserve to review or modify.
yarn kamino-manager download-reserve-config \
  --market <MARKET_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --output ./configs/reserve_config.json \
  --mode inspect

Update Reserve Configuration

Apply changes to a reserve’s parameters.
1

Download Current Config

yarn kamino-manager download-reserve-config \
  --market <MARKET_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --output ./configs/reserve_config.json \
  --mode inspect
2

Edit Config File

Modify the downloaded JSON with your desired changes. See Reserve Parameters for a full parameter reference.
3

Preview Changes

yarn kamino-manager update-reserve-config \
  --market <MARKET_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --reserve-config ./configs/updated_reserve_config.json \
  --mode inspect
4

Apply Changes

yarn kamino-manager update-reserve-config \
  --market <MARKET_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --reserve-config ./configs/updated_reserve_config.json \
  --mode execute
You can choose between a full config replacement or differential updates that only change specific fields. Check the command help for update options.

View Reserve Details

Get detailed information about a specific reserve including current utilization, rates, and TVL.
yarn kamino-manager get-reserve-data \
  --market <MARKET_ADDRESS> \
  --reserve <RESERVE_ADDRESS>

Get Oracle Mappings

Retrieve oracle IDs for configuring a reserve’s price feed. Use this when setting up the tokenInfo section of a reserve config.
yarn kamino-manager get-oracle-mappings
Returns Scope, Pyth, and Switchboard oracle addresses. Use the appropriate IDs in the reserve config’s tokenInfo.scopePriceChain, tokenInfo.pythPrice, or tokenInfo.switchboardPriceAggregator fields.

Multisig Mode

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

Learn More

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