Environment
View Environment Setup
Display the current CLI configuration including connected wallet, RPC endpoint, and active vault.
Vault Management
List Vaults
List GLAM vaults accessible to the connected wallet.
--owner-only, -o: Only show vaults owned by the connected wallet
--all, -a: Show all GLAM vaults
--type, -t: Filter by type (vault or tokenizedVault)
Set Active Vault
Set the active GLAM vault for subsequent CLI operations. Saves the vault state to the config file.
View Vault Details
View a GLAM vault by its state pubkey.
--compact, -c: Output as compact JSON
state: If not provided, the current active vault is used
Create a Vault
Create a new GLAM vault from a JSON template file.
Close a Vault
Close a GLAM vault. Only the owner can close a vault. Tokenized vaults cannot be closed if mint supply is greater than 0.
state: If not provided, the current active vault is used
--yes, -y: Skip confirmation prompt
Update Owner
Transfer vault ownership to a new owner.
--name, -n: Optionally set a new portfolio manager name
--yes, -y: Skip confirmation prompt
Enable/Disable Vault
Enable a GLAM vault.
Disable a GLAM vault.
Extend State Account
Extend the GLAM state account by additional bytes. Useful when the state account needs more space.
Asset Management
View Balances
Get token balances for the vault.
--all, -a: Show all assets including token accounts with 0 balance
View Holdings
Get all vault holdings including token balances and positions across integrated protocols.
Close Token Accounts
Close vault token accounts by specifying mint addresses, or use --empty to close all zero-balance token accounts.
mints: One or more mint addresses of token accounts to close
Token programs prevent closing token accounts with non-zero balances.
List Asset Allowlist
List the vault’s asset allowlist and corresponding token accounts.
Add Asset to Allowlist
Add an asset to the vault’s allowlist.
Remove Asset from Allowlist
Remove an asset from the vault’s allowlist.
SOL Wrapping
Wrap SOL
Wrap SOL into wSOL.
Unwrap wSOL
Unwrap all wSOL back to SOL.
Vault Templates
When creating a vault with glam-cli vault create <template>, the template is a JSON file that defines the vault configuration. Templates are available in the CLI templates directory.
Template Structure
A vault template has two top-level sections:
StateModel Fields
| Field | Type | Description |
|---|
accountType | "vault" | "tokenizedVault" | "singleAssetVault" | Vault type |
name | string | Vault display name |
enabled | boolean | Whether the vault is active |
baseAssetMint | string | Base asset mint address |
assets | string[] | Allowlisted asset mint addresses |
uri | string | Vault metadata URI |
portfolioManagerName | string | Display name of the portfolio manager |
borrowable | string[] | Assets allowed for borrowing |
reduceOnly | boolean | If true, vault can only reduce positions |
anyLst | boolean | If true, any LST is accepted for staking |
timelockDuration | number | Timelock duration in seconds |
MintModel Fields (Tokenized Vaults)
| Field | Type | Description |
|---|
name | string | Token metadata name |
symbol | string | Token metadata symbol (max 32 chars) |
baseAssetMint | string | Base asset mint address |
maxCap | number | Maximum vault capacity in base units |
minSubscription | number | Minimum subscription amount in base units |
minRedemption | number | Minimum redemption amount in base units |
lockupPeriod | number | Lockup period for new shares in seconds |
defaultAccountStateFrozen | boolean | If true, new token accounts are frozen by default |
feeStructure | object | Fee configuration (see below) |
notifyAndSettle | object | Notice and settlement periods |
allowlist | string[] | Allowlisted subscriber addresses |
blocklist | string[] | Blocklisted subscriber addresses |
Example: Vault
Example: Single Asset Vault