There are lots of site dedicated to programming on the internet. You first need to learn the hardware of the StickCplus2 from the M5Stack website then learn how to program.
M5Stack devices use UIFlow2 which is built on micropython so I suggest you start with learning how to program in UIFlow2 and micropython first.
F