You apply for an ETA. How long you are allowed into Canada will be determined by the CBSA officer you speak to at the border. Assuming you are given the default visit of six months, you would then apply to extend your visit to Canada once you are close to the six month mark.