I cannot tell which shifter model you have but one of these instructions should get you close:
https://microshift.com/wp-content/up...erSH003002.pdf page 10
https://microshift.com/wp-content/up...stallation.pdf
Basically, you want the shifter to be in its mostly paid-out cable position to be able to install/remove the cable head from its cavity.