I searched around how to extract XIP archive using command line with no luck so I am leaving my own solution, as a bash function, here.
bash
I found my inspirati
Use unxip. You can install it with Homebrew:
brew install thii/unxip/unxip
To extract a .xip file:
.xip
unxip path/to/.xip