Prepare Cli view add tree method.