valkey-io / valkey

A flexible distributed key-value datastore that supports both caching and beyond caching workloads.
https://valkey.io
Other
16.95k stars 632 forks source link

[NEW] `valkey-cli` decoupled binaries #1127

Open stockholmux opened 3 weeks ago

stockholmux commented 3 weeks ago

The problem/use-case that the feature addresses

I'm sometimes in situations where I just need the CLI and nothing else (e.g. for connecting to another machine with the server running).

However, if you just need valkey-cli you need to do something like:

While everything in Valkey isn't huge, it's more what I need and everything counts on low-spec machines or VMs.

As an example the binaries for 8.0.1 are 84mb in total and the valkey-cli is 17.5mb: the rest is excess.

Description of the feature

I would like a pre-built linux binary that is just valkey-cli available to download from the website for each version.

A nice to have: I believe that OpenSSL is a big component of the size of valkey-cli's total footprint, so maybe even have two versions: one with OpenSSL and one without.

Alternatives you've considered

Building and hosting the binary myself somewhere but that requires additional work and hassle. It seems like this should be uncoupled from the server.

Additional information

n/a

hpatro commented 2 weeks ago

This makes sense.

  • download the entire repo and build the server just to get valkey-cli (and have all build tooling)

We do have a Makefile target to build just the valkey-cli https://github.com/valkey-io/valkey/blob/cd8de095c4dc6687dabaa194a0fff4473c52299f/src/Makefile#L519-L521