How do you get Grapple in Ori and the Will of the Wisps?

Quick answer: Learn it at the Spirit Tree inside the Wellspring water mill. You reach it in the first part of the mill, after getting the wheels turning past several locked doors.
Show walkthrough
Reach the Wellspring
Go to the Wellspring Glades and head left and up to the water mill. Opher stands outside and tells you the door is stuck. Destroy the bug jammed in the cogs below the entrance to open it.
Through the first section
Inside, destroy the infections on the wheels to set them turning and ride them upward. Keep going past several locked doors. The Spirit Tree is in this first section of the mill, so you get Grapple before you can leave it.
What Grapple does
Grapple pulls Ori to blue flowers, blue moss and blue hooks. Use it right away on the lever above the locked door to open it. Combined with the turning cogs, it is how you climb the rest of the mill.
Upgrade it
The Ultra Grapple shard, found after the Wellspring’s Spirit Trial, lets you grapple to enemies too. See The Wellspring walkthrough for the rest of the area.
