Check whether Redis responds
Build a paste-ready command, then review its compatibility and effects before running it.
redis-cli -h <host> -p 6379 PINGComplete required fields to copy the generated command.
Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsredis-cliredis-cli must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportredis-cli Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsPONGRepresentative successful output; values vary with the selected target and system state.
Known errorsredis-cli: command not foundredis-cli is missing or is not available on PATH.
Verifyredis-cli -h {{host}} -p 6379 PINGThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01redis-cliCommandRuns the redis-cli stage of this one-liner.
02-hOptionRequests human-readable units or command help, depending on the tool.
03<host>ParameterA value supplied in the Fill parameters section.
04-pOptionSelects the command-specific port, process, or print mode.
056379ArgumentPasses 6379 to redis-cli.
06PINGArgumentPasses PING to redis-cli.
Example input
redis-cli -h example.com -p 6379 PING
Illustrative output — exact values vary by system and data.
Official sources