> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glam.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# Kamino Lending

### Initialize User

```bash theme={null}
glam-cli klend init
```

### List Market Accounts (aka Obligations)

```bash theme={null}
glam-cli klend list
```

### Deposit

* Deposits asset into a lending market

* `market`: Lending market pubkey

* `asset`: Asset mint

* `amount`: Amount to deposit

```bash theme={null}
glam-cli klend deposit <market> <asset> <amount>
```

### Withdraw

* Withdraws asset from a lending market

* `market`: Lending market pubkey

* `asset`: Asset mint

* `amount`: Amount to withdraw

```bash theme={null}
glam-cli klend withdraw <market> <asset> <amount>
```

### Borrow

* Borrows asset from a lending market

* `market`: Lending market pubkey

* `asset`: Asset mint

* `amount`: Amount to borrow

```bash theme={null}
glam-cli klend borrow <market> <asset> <amount>
```

### Repay

* Repays a borrow

* `market`: Lending market pubkey

* `asset`: Asset mint

* `amount`: Amount to repay

```bash theme={null}
glam-cli klend repay <market> <asset> <amount>
```
