Using the Hyperlane CLI
After deploying your Hyperlane Warp Route (HWR), you may want to extend it to a new chain. Extending a HWR involves deploying a new token contract on the target chain and enrolling existing tokens with it. You can extend an existing HWR using the Hyperlane CLI. If you already have the warp config, skip to Step 1. To generate the HWR config using the Hyperlane CLI, locate your token symbol on the chain on which it is deployed: You can then choose the HWR to extend. After runninghyperlane warp read, the CLI will display a config similar to the following:
Warp route configs are stored in your local registry at
$HOME/.hyperlane/deployments/warp_routes/<warpRouteId>/. The warp read command outputs the current on-chain config, which you can use as a reference when making updates.Step 1: Configuration
Edit the warp route deployment config in your local registry (e.g.,$HOME/.hyperlane/deployments/warp_routes/ETH/sepolia-basesepolia/warp-route-deployment.yaml) to add a new chain.
warp-route-deployment.yaml
Step 2: Apply
Using the CLI, execute the command applicable to your HWR owner setup:Step 3: Confirm
To confirm that the HWR was successfully extended using the Hyperlane CLI, run the following command with your token symbol on the chain it is deployed on: After runningwarp read, confirm that the HWR has been extended: