A CLI tool for managing Morpho vaults and markets.
yarn installTo add a vault to the list, use the following command:
yarn tsx cli.ts add vault <chain> <vault-address>Example:
yarn tsx cli.ts add vault ethereum 0x777791C4d6DC2CE140D00D2828a7C93503c67777This command will:
- Fetch the vault configuration from the blockchain
- Retrieve all associated markets for the vault
- Add any new markets to the local configuration
- Save the vault and market data
Note: If a market already exists, the CLI will notify you. Use --force flag to overwrite existing markets if needed.