Skip to content

Connect to your instance

After installing, open a shell of your choice and connect to your database. The redis-cli command does support the connection string format. You need the connection string and the endpoint of your instance to provide the necessary flags. You can lookup all these parameters in the Credentials tab of your instance. You need to extract the endpoint from the connection string.

Terminal window
redis-cli -u <Connection String> --tls --sni <Endpoint>

If you don’t want to expose the password to the command line directly, you need to use this connection format:

Terminal window
redis-cli -h <Endpoint> -p <Port> --user <Username> --sni <Endpoint> --askpass --tls

WThe console will show something like this:

red601d47-master-1.data.eu01.onstackit.cloud:53137>

Now type ping to see, if you are connected successfully:

Terminal window
red601d47-master-1.data.eu01.onstackit.cloud:53137> ping

If you are connected properly, the databse will answer with:

PONG

Now you can start using the database. Press CTRL + D to close the connection.

Press Control + D to close the connection and return to your command prompt.