Implement the init command.