Skip to content

Env: Read VALKEYCLI_HOST and VALKEYCLI_PORT environment variables#3402

Open
Dietr1ch wants to merge 1 commit intovalkey-io:unstablefrom
Dietr1ch:dev/cli_env
Open

Env: Read VALKEYCLI_HOST and VALKEYCLI_PORT environment variables#3402
Dietr1ch wants to merge 1 commit intovalkey-io:unstablefrom
Dietr1ch:dev/cli_env

Conversation

@Dietr1ch
Copy link
Copy Markdown

This allows setting the host and port using environment variables, which makes using valkey-cli way easier in some development environments. No need to recall the right host/port, just let your .env do the work.


Built locally and tested with,

VALKEY_PORT=36379 ./src/valkey-cli
127.0.0.1:36379>

And using both,

VALKEYCLI_HOST=(hostname).local VALKEYCLI_PORT=36379 ./src/valkey-cli
<HOSTNAME>.local:36379>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant