Skip to content

docs(chain): the CLI binary is citrate-cli, not citrate - #50

Merged
SaulBuilds merged 4 commits into
mainfrom
docs/cli-binary-name
Nov 29, 2026
Merged

SaulBuilds merged 4 commits into
mainfrom
docs/cli-binary-name

Conversation

@SaulBuilds

Copy link
Copy Markdown
Contributor

cargo build -p citrate-cli produces target/release/citrate-cli, and the release tarball ships it under that name. citrate is the node binary. /chain/cli and the deploy-a-contract tutorial told readers to run citrate <subcommand>, and said the build "produces the citrate binary".

Every invocation and mention on those two pages now says citrate-cli, including the page title. content/_generated/content.ts was regenerated with build-content.mjs.

Checks, after a rebase onto main (#49) and npm ci: npm run content-lint -- --strict is OK, and vitest gives 156 passed, 4 skipped.

Not in this PR: the tutorial still describes contract deploy and call as eth_sendTransaction with --account. That changes when citrate-chain#471 (local signer) merges, and I'll update the page then.

Found by the r1007 CLI QA pass (citrate-chain#470).

Signed-off-by: Larry Klosowski larryklosowski@proton.me

🤖 Generated with Claude Code

https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi

`cargo build -p citrate-cli` produces `target/release/citrate-cli`; the
release tarball ships it under that name too. `citrate` is the node
binary. /chain/cli and the deploy-a-contract tutorial told readers to run
`citrate <subcommand>`. Every invocation and mention now says
`citrate-cli`. Generated content regenerated with build-content.mjs.

Signed-off-by: Larry Klosowski <larryklosowski@proton.me>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cgBjDQkjCEEZwG1zJNnQi
@SaulBuilds
SaulBuilds requested a review from a team as a code owner November 12, 2026 19:28
Matr0xshka
Matr0xshka previously approved these changes Nov 12, 2026

@Matr0xshka Matr0xshka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAC independent reviewer agent, not Codex, not DGX. Reviewed head 0ecd37e.

This is docs only: content/chain/cli.md and the CLI deploy tutorial (+34/-34), plus the regenerated content.ts. Every citrate <subcommand> becomes citrate-cli <subcommand>, and the build note now says target/release/citrate-cli. Both match citrate-chain main's cli/Cargo.toml, which has [[bin]] name = "citrate-cli". There are no other wording changes.

No citrate <cli-subcommand> is left in content/**/*.md. The one remaining citrate contract in content/sdks/python.md is the Python SDK's own citrate console script (citrate_sdk.cli:main), which is correct as written.

P3, follow-up: the tutorial and reference still describe contract deploy and call as eth_sendTransaction. That is accurate for main today, but it will need updating when citrate-chain #471 (the local signer) lands.

No P1. CI is green. Approved.

BerryManifold
BerryManifold previously approved these changes Nov 12, 2026

@BerryManifold BerryManifold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAC independent reviewer agent, not Codex, not DGX. Reviewed head 0ecd37e.

One commit on top of main (which includes #49).

  • content/chain/cli.md, tutorials/deploy-a-contract-with-the-cli.md and the regenerated content bundle change the binary name citrate to citrate-cli, the [[bin]] name in citrate-chain cli/Cargo.toml. The build note now reads target/release/citrate-cli.
  • No bare citrate <subcommand> invocation remains in content/.
  • Nothing else changed (+36/-36).

P3, follow-up when chain #471 merges: these pages still describe contract deploy/call --account as submitting eth_sendTransaction, and list deploy --args. After #471, writes sign locally (--account is a keystore key, plus --password-file, --yes, fee caps), and a non-empty --args is refused.

CI is green. No P1/P2.

Conflict in content/_generated/content.ts resolved by regenerating it
with scripts/build-content.mjs on the merged tree.

Signed-off-by: Larry Klosowski <larryklosowski@proton.me>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FPJzHNqGLdTVoFzde3Sxbw
@SaulBuilds
SaulBuilds dismissed stale reviews from BerryManifold and Matr0xshka via e56f9d5 November 28, 2026 21:49
Signed-off-by: Larry Klosowski <larryklosowski@proton.me>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FPJzHNqGLdTVoFzde3Sxbw

@SaulBuilds SaulBuilds left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent agent review (sweeper D): APPROVE

Checked:

  • Binary name against citrate-chain main (72c8e02): cli/Cargo.toml is package citrate-cli with [[bin]] name = "citrate-cli"; node/Cargo.toml has [[bin]] name = "citrate" (the node). release.yml builds -p citrate-cli and copies citrate-cli$EXE into the tarball. So citrate-cli is correct and citrate was wrong for these pages.
  • Diff: content/chain/cli.md and the deploy-a-contract tutorial, every citrate <subcommand> becomes citrate-cli <subcommand>, title updated, the cargo comment now says it produces target/release/citrate-cli. Subcommands and flags unchanged. content/_generated/content.ts is a regenerated +2/-2. Docs only, no code, CI, or dependency changes.
  • Remaining citrate <cmd> mentions on the head are the Python SDK's own citrate command (sdks/python.md, python-quickstart) and citrate devnet in start/local-workspace.md, which are different tools and correctly left alone.
  • All three commits GitHub-verified; main is an ancestor of the head; CI green. Not superseded.

Notes, non-blocking:

  • cli/src/main.rs still sets clap #[command(name = "citrate", ...)], so citrate-cli --help prints usage as citrate. That is a chain-side fix, not a docs one; worth an issue on citrate-chain.
  • Conflicts with docs #53 on content/_generated/content.ts (single-line generated file). Whichever lands second needs a rebase and a re-run of build-content.mjs.

content/_generated/content.ts conflicted with #53 (tokenomics TBD);
resolved by regenerating it with scripts/build-content.mjs from the
merged sources.

Signed-off-by: Larry Klosowski <larryklosowski@proton.me>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FPJzHNqGLdTVoFzde3Sxbw

@SaulBuilds SaulBuilds left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent agent review (sweeper D): APPROVE

Re-review after the main merge, reviewed head c2a79b5. This covers only the merge, since the content was approved earlier. CI note: Analyze (rust) and ci were still in progress when I reviewed. check, build, chain-sync, guardrail and secret-scan are green.

Checked:

  • The merge commit c2a79b5 has parents f47b8d5 (the previously reviewed head) and 9fe63ce (current docs main).
  • The automatic merge conflicts only in content/_generated/content.ts, and that file was regenerated.
  • Against main, the PR still changes only 3 files: content/chain/cli.md, content/chain/tutorials/deploy-a-contract-with-the-cli.md and content/_generated/content.ts.
  • Both markdown files have the same blobs at the merge as at the original PR commit 0ecd37e (b0c024a9, 8743b024), and their main-side blobs equal those of the original base. The authored change is therefore unchanged.
  • Generated file: I checked out the merge in a read-only clone and ran node scripts/build-content.mjs (109 pages, 13 sections). git status is clean afterwards, so content/_generated/content.ts (and content-bodies.ts) match exactly what the script produces from the merged sources.
  • No other change was introduced. The larger diff from f47b8d5 to the merge is entirely main's content (economics, rewards, lint scripts and others) arriving through the merge.

@SaulBuilds
SaulBuilds merged commit 4e87f1b into main Nov 29, 2026
10 checks passed
@SaulBuilds
SaulBuilds deleted the docs/cli-binary-name branch November 29, 2026 01:21
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.

3 participants