Move toolbox code to cli.