I also would like to add that rlwrap is sometimes useful in these situations if you don’t want a fully interactive shell
rlwrap