Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rotaercz's avatar

When using Homestead how do you run a query in Redis using the console?

So when I want to run a MySQL query in Homestead I just type mysql and I'm in MySQL mode where I can just run queries.

How does it work for Redis?

Like what do I have to do to run a query in the console window for Redis?

0 likes
1 reply
lostdreamer_nl's avatar
Level 53

You'd use redis-clifor that:

https://redis.io/topics/rediscli

ie: redis-cli monitor will start listening on your redis server for any command it's handling so you can see in the console how laravel is communicating with redis.

or simply redis-cli to go into interactive mode as you would by using mysql

Please or to participate in this conversation.