Skip to content

Correct Stellar CLI binding languages and spec command - #3153

Open
stellar-doxie[bot] wants to merge 3 commits into
mainfrom
docs-agent/3151-cli-binding-languages
Open

stellar-doxie[bot] wants to merge 3 commits into
mainfrom
docs-agent/3151-cli-binding-languages

Conversation

@stellar-doxie

@stellar-doxie stellar-doxie Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Closes #3151

Working this because the raven label called me in on a Raven finding (sd-110).

The Lab Contract Explorer page said the Stellar CLI generates bindings in TypeScript, JSON, Rust, Python, and Java. The CLI has no JSON bindings, and Python and Java need an external plugin. This PR corrects the list. It also fixes two pages that sent readers to stellar contract bindings for the JSON contract spec, which the CLI no longer does.

Why this matters

A reader runs stellar contract bindings json or python and gets an error. Readers of the other two pages look for a spec command in the wrong place.

Changes

  • docs/tools/lab/smart-contracts/contract-explorer.mdx: Rust from the CLI; TypeScript from the JavaScript Stellar SDK generator (the CLI command is deprecated); Python, Java, and others through a plugin. The two relative links on that line are now root-relative.
  • docs/learn/fundamentals/contract-development/overview.mdx:123 and docs/build/guides/dapps/frontend-guide.mdx:370: point to stellar contract info interface, which outputs the spec. The second line also had the typo "genrated".

Sweep

  • docs/build/guides/dapps/working-with-contract-specs.mdx:73 and :86 teach stellar contract bindings json. Left out: CLI commands on 8 pages fail with the current CLI: removed flags and subcommands #2973 already tracks that page, and it needs a rewrite (the JSON shape differs), not a command swap.
  • docs/tools/cli/stellar-cli.mdx is already correct.
  • Search terms: "bindings json", "bindings python", "bindings java", "TypeScript, JSON", "JSON, Rust", "Rust, Python, and Java", "#stellar-contract-bindings". No other hits in docs/, snippets/, openapi/, openrpc/ or .mintlify/skills/.
  • Upstream, not in this repo: the Lab Bindings tab has the same sentence, stellar/laboratory src/app/(sidebar)/smart-contracts/contract-explorer/components/Bindings.tsx:8-11.

Verified

Verified against stellar-cli 30.0.1, the newest release. The issue cited 30.0.1 too. The page pins none.

  • stellar contract bindings --help: rust; typescript marked deprecated; python, java, flutter, swift, php, kmp "(requires external plugin)".
  • stellar contract bindings python: "not implemented in the stellar-cli" and points to lightsail-network/stellar-contract-bindings.
  • stellar contract bindings json: "unrecognized subcommand 'json'".
  • stellar contract info interface --wasm hello_world.wasm --output json-formatted printed the function_v0 spec of a fresh stellar contract init contract.
  • The JS SDK README has the ## CLI heading that #cli links to (stellar/js-stellar-sdk main README.md:291).
  • pnpm format:mdx, pnpm check and pnpm check:links pass locally.

Not verified

  • Nothing.

Overlaps

For the Raven recheck (sd-110)

@mintlify

mintlify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 24, 2026, 5:03 PM

@stellar-doxie

stellar-doxie Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Automated message from the Stellar Triage Bot.

Reviewing because this is my own PR for Raven issue #3151.

Verified: the binding list and the contract info interface flags match stellar-cli 30.0.1, the newest release. The issue cited 30.0.1 too; the pages pin none. The preview renders. Ready to merge.

What I checked

…inding-languages

# Conflicts:
#	docs/build/guides/dapps/frontend-guide.mdx
@stellar-doxie

stellar-doxie Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Automated message from Doxie.

Back on this because #3158 landed on frontend-guide.mdx and this branch no longer merged cleanly.

  • I merged main into the branch. No force-push.
  • docs: fix typos and duplicate words #3158 fixed the "genrated" typo on line 370. This PR rewrites that sentence, so I kept the PR line. It has no typo.
  • The diff against main is still the same 3 lines. CI reruns at the new head.

Ready to merge.

What I checked
  • git diff --stat origin/main HEAD: 3 files, 3 insertions, 3 deletions, same as before the merge.
  • pnpm format:mdx is not allowed in this lane. The resolved line is the same as at 30d7da8, where checks passed.

@ElliotFriend ElliotFriend 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.

Looks good, one suggestion inline.

Sometimes, you may not have access to the contract's source code or the ability to compile it. In such cases, you must use the [`stellar contract fetch`](../../../tools/cli/stellar-cli#stellar-contract-fetch) command to download the contract's Wasm binary and generate the spec.

Finally, we use the [`stellar bindings`](/docs/tools/cli/stellar-cli#stellar-contract-bindings) command to generate the contract spec from the Wasm binary.
Finally, we use the [`stellar contract info interface`](/docs/tools/cli/stellar-cli#stellar-contract-info-interface) command to output the contract spec from the Wasm binary.

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.

info interface prints Rust by default, so this needs the flag for the JSON spec.

Suggested change
Finally, we use the [`stellar contract info interface`](/docs/tools/cli/stellar-cli#stellar-contract-info-interface) command to output the contract spec from the Wasm binary.
Finally, we use the [`stellar contract info interface`](/docs/tools/cli/stellar-cli#stellar-contract-info-interface) command with `--output json` to output the contract spec from the Wasm binary.

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.

🤖 Automated message from Doxie.

Applied in 26bdf26. Confirmed: stellar-cli 30.0.1 contract info interface --help gives [default: rust]. frontend-guide.mdx:370 already names --output json.

@stellar-doxie

stellar-doxie Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Automated message from Doxie.

Back on this because @ElliotFriend reviewed.

Applied the --output json suggestion. It is the only change since the approval at 3fd28c2. Checks pass and the preview shows the new line.

Ready to merge.

What I checked
  • stellar contract info interface --help (stellar-cli 30.0.1, the newest): --output default is rust, so the flag is needed for the JSON spec.
  • Sweep for info interface: frontend-guide.mdx:370 already has --output json. build-your-own.mdx:84 labels the spec as "Contract Meta": filed build-your-own.mdx: Contract Spec section says "Contract Meta" #3195.
  • git merge-tree against current main: clean.
  • Checks at 26bdf26: all pass. Preview overview.md line 126 has the new text.

This branch was successfully deployed

1 active deployment
staging — 26bdf26b Deployed Nov 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lab Contract Explorer page lists JSON, Python, and Java as Stellar CLI binding languages

1 participant