Add clicommandout factory method.