Skip to main content

Top-level commands

  • assets
  • bridge
  • chains
  • lend
  • protocols
  • providers
  • schema
  • swap
  • version
  • yield
  • completion

Global flags

FlagTypeDescription
--jsonboolOutput JSON (default)
--plainboolOutput plain text
--results-onlyboolOutput only data payload on success
--selectstringSelect fields from payload
--strictboolFail on partial results
--timeoutduration stringProvider request timeout
--retriesintRetries per provider request
--max-staleduration stringMax stale fallback window
--no-staleboolDisable stale fallback
--no-cacheboolDisable cache reads/writes
--enable-commandsCSV stringCommand allowlist policy
--configstringConfig file path

Usage pattern

defi <command> <subcommand> [flags] [global flags]
Examples:
defi lend markets --protocol aave --chain 1 --asset USDC --results-only
defi bridge quote --from 1 --to 8453 --asset USDC --amount 1000000 --timeout 12s --retries 2 --results-only
defi swap quote --chain solana --from-asset USDC --to-asset SOL --amount 1000000 --results-only