What part of California did Captain James Cook explore and why?

James Cook explored Alta, California. He was looking for the northwest passage around America. He also made landfall in Kauai, Hawaii and in Oregon.