Skip to content

Make the kvforge quickstart runnable as written - #8

Merged
sahilkalgutkar merged 1 commit into
mainfrom
fix/quickstart-cli-path
Sep 1, 2026
Merged

sahilkalgutkar merged 1 commit into
mainfrom
fix/quickstart-cli-path

Conversation

@sahilkalgutkar

Copy link
Copy Markdown
Owner

Following the same audit that produced sahilkalgutkar/modelforge#18, I ran this repo's quickstart top to bottom. Everything worked except the CLI invocations:

$ cargo build --release
$ kvforge-cli SET greeting "hello world"
bash: kvforge-cli: command not found

The section ran the server as ./target/release/kvforge-server and then called kvforge-cli bare, so it contradicted itself two lines apart. CI never caught it because CI runs cargo test, not the README.

This switches the quickstart to cargo install --path crates/server / crates/cli, which puts both binaries on PATH, and keeps the build-only path documented for anyone who would rather not install. I also marked the two output-only blocks as console instead of bash and noted that the CLI's default address (127.0.0.1:6390) already matches the server's, so nothing has to be passed.

Verified by running the whole section verbatim from a clean clone: install, start the server against an AOF file, SET/GET over the wire, kill the server, restart it against the same file, and read the value back after replay.

The quickstart said `cargo build --release` and then invoked `kvforge-cli`
as a bare command, which is not on PATH after a plain build -- the server in
the line above was already being run as `./target/release/kvforge-server`, so
the two halves of the same section disagreed with each other.

Install both binaries with `cargo install --path` instead, so every command
below it runs verbatim, and note the build-only alternative for anyone who
would rather not install. Also mark the two output-only blocks as `console`
rather than `bash`, and state that the CLI's default address already matches
the server's.
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sahilkalgutkar
sahilkalgutkar merged commit c665f92 into main Sep 1, 2026
2 checks passed
@sahilkalgutkar
sahilkalgutkar deleted the fix/quickstart-cli-path branch September 1, 2026 19:26
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