Add generate command.