[enh] Autocompletion, init script and other CLI enhancements

PR in progress, need tests