add localtrain command.