[cli] Fix: api calls work over HTTPS