Skip to main content
A flat reference of every kamino-manager command that touches a Kamino lending market or reserve. For workflow guidance — when to use each command, what to set, why — see the Curator Markets tab.
Before running any command, complete the Installation & Setup guide. The CLI requires ADMIN, RPC, KLEND_PROGRAM_ID_MAINNET, and KLEND_PROGRAM_ID_STAGING in .env.

Conventions

Execution modes

Every command supports --mode <value>:
ModeWhat it does
inspectPrints a Solana Explorer URL where you can simulate the transaction in your browser
simulateRuns simulation server-side and prints the result
executeSigns with the admin keypair and lands the transaction
multisigOutputs a base58-encoded transaction for submission to a Squads proposal
Multisig mode requires --multisig <SQUADS_PUBKEY> to identify the multisig.

Network selection

FlagTargetProgram ID env var
(none)MainnetKLEND_PROGRAM_ID_MAINNET
--stagingStaging program on Solana mainnetKLEND_PROGRAM_ID_STAGING
--devnetSolana devnet(Devnet program ID resolved from env)

Market lifecycle

create-market

Initialize a new LendingMarket account.
yarn kamino-manager create-market --mode execute
FlagRequiredDescription
--modeYesinspect / simulate / execute / multisig
--multisigIf --mode multisigPubkey of the multisig that will own the market
--staging / --devnetNoNetwork selection

update-lending-market-from-config

Apply a full market config update from a JSON file.
yarn kamino-manager update-lending-market-from-config \
  --lending-market <MARKET_ADDRESS> \
  --lending-market-config-path ./configs/<MARKET>/market-<MARKET>.json \
  --mode execute
FlagRequiredDescription
--lending-marketYesMarket address
--lending-market-config-pathYesPath to the JSON config file
--modeYesExecution mode

update-lending-market-name

Focused command to rename a market.
yarn kamino-manager update-lending-market-name \
  --lending-market <MARKET_ADDRESS> \
  --new-name "My Market" \
  --mode execute
FlagRequired
--lending-marketYes
--new-nameYes
--modeYes

update-lending-market-owner

Promote lending_market_owner_cached to active owner. Final step of the two-step ownership transfer.
yarn kamino-manager update-lending-market-owner \
  --lending-market <MARKET_ADDRESS> \
  --mode multisig \
  --multisig <NEW_OWNER_MULTISIG>
FlagRequired
--lending-marketYes
--modeYes
--multisigIf --mode multisig

download-lending-market-config

Export the current market config to a JSON file (read-only).
yarn kamino-manager download-lending-market-config \
  --lending-market <MARKET_ADDRESS>
Saves to ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json.

download-lending-market-config-and-all-reserves-configs

Download the market config plus every reserve’s config in a single call.
yarn kamino-manager download-lending-market-config-and-all-reserves-configs \
  --lending-market <MARKET_ADDRESS>

get-market-or-vault-admin-info

Query admin metadata (owner, cached owner, emergency council).
yarn kamino-manager get-market-or-vault-admin-info \
  --address <MARKET_ADDRESS>

Reserve lifecycle

add-asset-to-market

Add a new reserve to a market with an initial config.
yarn kamino-manager add-asset-to-market \
  --market <MARKET_ADDRESS> \
  --mint <TOKEN_MINT> \
  --mint-program-id TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA \
  --reserve-config-path ./configs/my_reserve_config.json \
  --mode execute
FlagRequiredDescription
--marketYesMarket address
--mintYesToken mint address
--mint-program-idYesTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA for SPL Token, TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb for Token-2022
--reserve-config-pathYesPath to the reserve config JSON
--modeYesExecution mode

update-reserve-config

Apply a full reserve config update from a JSON file.
yarn kamino-manager update-reserve-config \
  --reserve <RESERVE_ADDRESS> \
  --reserve-config-path ./configs/<RESERVE>.json \
  --mode execute
FlagRequired
--reserveYes
--reserve-config-pathYes
--modeYes

update-reserve-config-debt-cap

Focused update of just the borrow cap. Faster to review than a full config update.
yarn kamino-manager update-reserve-config-debt-cap \
  --reserve <RESERVE_ADDRESS> \
  --mode multisig \
  --multisig <SQUADS_PUBKEY>
FlagRequired
--reserveYes
--modeYes
--multisigIf --mode multisig

download-reserve-config

Export the current reserve config to a JSON file.
yarn kamino-manager download-reserve-config \
  --reserve <RESERVE_ADDRESS> \
  --output ./configs/<RESERVE_ADDRESS>.json
FlagRequired
--reserveYes
--outputNo (defaults to a path under ./configs/)

simulate-reserve-apy

Compute the live supply and borrow APY for a reserve from on-chain state.
yarn kamino-manager simulate-reserve-apy \
  --reserve <RESERVE_ADDRESS>

Oracles

get-oracle-mappings

List Scope, Pyth, and Switchboard oracle addresses for known mints.
yarn kamino-manager get-oracle-mappings
Use the output to populate tokenInfo.scopeConfiguration.priceFeed, tokenInfo.pythConfiguration.price, or tokenInfo.switchboardConfiguration.priceAggregator in a reserve config.

Farms

get-reserve-farms-apy

Reward APY for a reserve’s collateral and debt farms.
yarn kamino-manager get-reserve-farms-apy \
  --reserve <RESERVE_ADDRESS>
For farm initialization, funding, and emission configuration, use the KFarms tooling.

Reserve config schema

The reserve config JSON schema is documented at Reserve config reference. A starter file ships with klend-sdk: klend-sdk/configs/reserve_config_example.json Some fields in older example files (assetTier, multiplierSideBoost, multiplierTagBoost) are deprecated and ignored by the program. The canonical schema is in the reference page above.

Market config schema

The market config JSON schema is documented at Market config reference.

Workflow guides

These pages walk through the curator workflow that uses the commands above:

Create a market

create-market

Add reserves

add-asset-to-market

Configure oracles

get-oracle-mappings, tokenInfo setup

Transfer to multisig

update-lending-market-from-config, update-lending-market-owner

Updating reserves

update-reserve-config, update-reserve-config-debt-cap

Market settings

update-lending-market-from-config, update-lending-market-name

Next

Vault Operations

Create and manage Kamino vaults

Installation & Setup

Review installation and configuration