Skip to main content
The LI.FI CLI exposes the following commands, organized by category. Each command maps to a corresponding LI.FI API endpoint.

Token Information

tokens

Retrieve tokens supported by LI.FI on a specific chain.

token

Get details about a specific token including price, decimals, and contract address.

Chain Information

chains

List all supported blockchain networks.

chain

Get details for a specific chain by ID or name.

Quote & Swap

quote

Get the best route for a swap. Returns the optimal route, fees, estimated time, and a transactionRequest object ready for signing.
Run without flags to enter interactive mode:
The response includes a transactionRequest object with to, data, value, gasLimit, and chainId fields, ready to sign and broadcast with any wallet.

routes

Get multiple route options for comparison.

Transaction Status

status

Track the progress of a cross-chain transfer.

Connections

connections

Check available swap routes between chains.

Tools (Bridges & DEXes)

tools

List available bridges and DEXes.

Gas

gas

Get current gas prices and suggestions.

API Key Management

auth show

Display the currently configured API key (masked).

auth test

Validate the configured API key against the API.
The API key is read from the LIFI_API_KEY environment variable. See Installation for setup instructions.

Health Check

health

Check API connectivity and latency.
No arguments required.