Implement init command.