Skip to main content

Environment

View Environment Setup

Display the current CLI configuration including connected wallet, RPC endpoint, and active vault.
glam-cli env

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)
glam-cli vault list [--owner-only] [--all] [--type <type>]

Set Active Vault

Set the active GLAM vault for subsequent CLI operations. Saves the vault state to the config file.
glam-cli vault set <state>

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
glam-cli vault view [--compact] [state]

Create a Vault

Create a new GLAM vault from a JSON template file.
glam-cli vault create <path-to-template.json>

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
glam-cli vault close [state] [--yes]

Update Owner

Transfer vault ownership to a new owner.
  • --name, -n: Optionally set a new portfolio manager name
  • --yes, -y: Skip confirmation prompt
glam-cli vault update-owner <new-owner> [--name <name>] [--yes]

Enable/Disable Vault

Enable or disable a GLAM vault.
glam-cli vault set-enabled <true|false> [--yes]

Extend State Account

Extend the GLAM state account by additional bytes.
glam-cli vault extend <bytes> [--yes]

Asset Management

View Balances

Get token balances for the vault.
  • --all, -a: Show all assets including token accounts with 0 balance
glam-cli vault balances [--all]

View Holdings

Get all vault holdings including positions across integrated protocols.
glam-cli vault holdings

List Asset Allowlist

List the vault’s asset allowlist and corresponding token accounts.
glam-cli vault list-assets

Add Asset to Allowlist

Add an asset to the vault’s allowlist.
glam-cli vault allowlist-asset <asset> [--yes]

Remove Asset from Allowlist

Remove an asset from the vault’s allowlist.
glam-cli vault remove-asset <asset> [--yes]

SOL Wrapping

Wrap SOL

Wrap SOL into wSOL.
glam-cli vault wrap <amount> [--yes]

Unwrap wSOL

Unwrap all wSOL back to SOL.
glam-cli vault unwrap [--yes]