use command xargs which will reads items from the standard input, delimited by blanks or newlines, and executes the command one or more times with any initial-argumetns followed by itmes read from standard input.
xargs [opitons] [command [initial-arguments]]
like:
redis-cli keys * | args redis-cli del