Stake key delegation

The stake key delegation can also be done by connecting the hardware wallet to a wallet like Eternl, Yoroi, Adalite.io etc. and delegating from there. To do it in the command line, follow the instructions below.
Save as hw-stake-delegation.sh and execute the following script, in order to create the certificate required to delegate the hardware wallet stake key to the stake pool:
#!/bin/bash
​
​
source ./env
​
cardano-cli stake-address delegation-certificate \
--stake-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
--cold-verification-key-file ${NODE_HOME}/pool-keys/cold.vkey \
--out-file ${NODE_HOME}/pool-certificates/hw-stake-delegation.cert