I didn't want to reply to a specific post so I thought I'd just send one in general (and by no means I'm an expert but basing it on my own experience and based on what I've read).
Look in an ideal world, yes you will be in Canada, take the test there....take the interview there (if required) and finally the Oath....oh and then apply for the passport.
Myself I was outside of Canada when asked to take the test, originally (before it was allowed), I informed them back in April 2021 that I was outside of the country and I was told to let them know when I returned and that they could hold my application on hold for a maximum of 6 months before it would essentially be returned back to myself.
In June/July (I believe) of 2021 the rules relaxed and applicants were able to take the test outside of Canada, so my wife was able to do that by replying straight back to the email and also I then sent them an email directly, to my surprise they replied and allowed me to do it....usually with their track record they take their time in replying to any query.
So we were both successful in taking out tests outside of Canada in July 2021 and passed the tests, after that we were expecting the lottery of interviews.
The request for interviews did not come, quite possibly because our application was straight forward (not sure what constitutes as being straight forward but UK born, provided passports copies with initial application, degree certs, ties to Canada i.e. mortgage and home docs etc).
However I was asked for a 2nd set of FPrints in Nov which I sent from the UK to an agency in Vancouver who digitally sorted them for me and forwarded then to the RCMP who then forwarded them on to IRCC.
I then took me a few emails to confirm that IRCC had received them as RCMP were not replying and neither were IRCC (initially), they confirmed receipt via an email in December.
Every status was then changed in early Jan and a request was made to attend an Oath in Mid-Feb, which meant flying in from the UK.
Citizenship certs have been received but a passport application will be done from the UK, which is where I am currently back in, now yes I will be moving back to Canada but unsure as to exact date....could be summer or xmas of this year.
Going back to the original question, look tests can be done....interviews have been shown more recently in a handful of replies that they're also possible but yes the Oath is strictly on Canadian soil....again barring one post I've seen here.
Ultimately each case is different and we come here for that re-assurance I guess or the clarity that we require, especially when some of us are abroad for whatever reason that we may be, so take it as it comes, if you're outside then yes currently tests allowed, interviews yes (but again you'll need a good reason I assume as to why)...Oaths....as far as I know 99.9% 'not allowed.'