Most of the shocks come compressed, with a band or strap on them.
My routine...I take them out, and measure the compressed and extended eye to eye lengths, compute the travel, write it down...
Then, I put the strap/band back on to hold them compressed...and I install them that way...and after bolting them in, I remove the band and let them free.
It easier than trying to squeeze and bolt before they extend again.
Taking the tires off helps access.
Use jack stands once jacked, chock the truck to prevent movement.
A jack can be used to raise/lower the axle ends once the rest of the truck is supported.
Its also a good time to inspect the trucks guts....look at the lines and plumbing, what goes where, look for rub/contact marks, kinks, dents, corrosion, etc.
For example, back when I did mine, I noticed a dent in the p-side shock...after looking at it, it became obvious that the thing that dented it would likely be my sway bar when that side was drooped..and convinced me that the bar needed to come off for even light wheeling, not so much for performance, but to avoid damage as well.
I also noticed that salt was eating my exhaust system....and that I would need a new one in a few years....etc.
I also took before/after pics of the truck's undercarriage...it helps to remember what's under there/have a pic to post when there's a question.